Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yanshouyi-Minipro
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xinzhedeai
yanshouyi-Minipro
Commits
d8fa4e78
Commit
d8fa4e78
authored
Feb 19, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:首页电量字段更换 、 精度改为cm
parent
dc9b0add
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
config.js
common/config.js
+2
-1
mixin.js
common/mixin.js
+4
-4
home.vue
pages/home/home.vue
+2
-2
No files found.
common/config.js
View file @
d8fa4e78
const
BASEURL
=
'
http://192.168.2.14:8080
'
;
// const BASEURL = 'http://192.168.2.14:8080';
const
BASEURL
=
'
https://ltpk.kuangshanzhixing.cn:8088
'
;
const
REQUESTIMEOUT
=
30000
;
export
{
...
...
common/mixin.js
View file @
d8fa4e78
...
...
@@ -346,12 +346,12 @@ const blueToothMixin = {
}
// 设置测试值:
if
(
recBlueResData
.
ks
){
const
temp4ks
=
recBlueResData
.
ks
/
100
0
const
temp4ss
=
recBlueResData
.
ss
/
100
0
const
temp4ks
=
recBlueResData
.
ks
/
100
const
temp4ss
=
recBlueResData
.
ss
/
100
this
.
$store
.
commit
(
'
setMeasureVal
'
,
{
actualDepth
:
parseFloat
(
temp4ks
.
toFixed
(
3
)),
// 默认回传单位为m
m
actualWaterLevel
:
parseFloat
(
temp4ss
.
toFixed
(
3
)),
actualDepth
:
parseFloat
(
temp4ks
.
toFixed
(
2
)),
// 默认回传单位为c
m
actualWaterLevel
:
parseFloat
(
temp4ss
.
toFixed
(
2
)),
})
commonStateCodeDeal
(
2
,
'
监听到设备反馈信息->测量深度
'
+
JSON
.
stringify
(
recBlueResData
))
...
...
pages/home/home.vue
View file @
d8fa4e78
...
...
@@ -17,8 +17,8 @@
<div
class=
"top"
>
<h2>
设备电量
</h2>
<p>
小球
<image
src=
"/static/image/paokong/qiu-dl.png"
>
{{
connected
&&
power
1
||
'
-
'
}}
%
仪器
<image
src=
"/static/image/paokong/shebei-dl.png"
>
{{
connected
&&
power
2
||
'
-
'
}}
%
小球
<image
src=
"/static/image/paokong/qiu-dl.png"
>
{{
connected
&&
power
2
||
'
-
'
}}
%
仪器
<image
src=
"/static/image/paokong/shebei-dl.png"
>
{{
connected
&&
power
1
||
'
-
'
}}
%
</p>
</div>
<div
class=
"bottom"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment