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
d148bea9
Commit
d148bea9
authored
Jan 04, 2025
by
xinzhedeai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
深度值 接收
parent
a1d318e8
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
10 deletions
+7
-10
mixin.js
common/mixin.js
+2
-5
blueMeasure.vue
pages/home/blueMeasure.vue
+3
-3
index.js
store/index.js
+2
-2
No files found.
common/mixin.js
View file @
d148bea9
...
@@ -434,10 +434,9 @@ const blueToothMixin = {
...
@@ -434,10 +434,9 @@ const blueToothMixin = {
qiuId
:
recBlueResData
.
id
qiuId
:
recBlueResData
.
id
})
})
commonStateCodeDeal
(
2
,
'
监听到设备反馈信息->电量
'
+
JSON
.
stringify
(
recBlueResData
))
commonStateCodeDeal
(
2
,
'
监听到设备反馈信息->电量
'
+
JSON
.
stringify
(
recBlueResData
))
return
}
}
if
(
recBlueResData
.
ks
){
if
(
recBlueResData
.
ks
){
this
.
$store
.
commit
(
'
set
Power
'
,
{
this
.
$store
.
commit
(
'
set
MeasureVal
'
,
{
actualDepth
:
recBlueResData
.
ks
,
actualDepth
:
recBlueResData
.
ks
,
actualWaterLevel
:
recBlueResData
.
ss
,
actualWaterLevel
:
recBlueResData
.
ss
,
})
})
...
@@ -457,8 +456,6 @@ const blueToothMixin = {
...
@@ -457,8 +456,6 @@ const blueToothMixin = {
console
.
log
(
'
writeBLECharacteristicValue-failHEART:res=>
'
,
res
)
console
.
log
(
'
writeBLECharacteristicValue-failHEART:res=>
'
,
res
)
},
},
});
});
return
}
}
});
});
}
else
{
}
else
{
...
...
pages/home/blueMeasure.vue
View file @
d148bea9
...
@@ -80,7 +80,7 @@
...
@@ -80,7 +80,7 @@
</uni-col>
</uni-col>
<uni-col
:span=
"15"
>
<uni-col
:span=
"15"
>
<view
class=
"_content"
>
<view
class=
"_content"
>
{{
form
[
'
actualDepth
'
]
||
'
-
'
}}
{{
actualDepth
||
'
-
'
}}
</view>
</view>
</uni-col>
</uni-col>
</uni-row>
</uni-row>
...
@@ -93,7 +93,7 @@
...
@@ -93,7 +93,7 @@
</uni-col>
</uni-col>
<uni-col
:span=
"15"
>
<uni-col
:span=
"15"
>
<view
class=
"_content"
>
<view
class=
"_content"
>
<view>
{{
form
[
'
actualWaterLevel
'
]
||
'
-
'
}}
</view>
<view>
{{
actualWaterLevel
||
'
-
'
}}
</view>
</view>
</view>
</uni-col>
</uni-col>
</uni-row>
</uni-row>
...
@@ -204,7 +204,7 @@
...
@@ -204,7 +204,7 @@
// this.initLink()
// this.initLink()
},
},
computed
:{
computed
:{
...
mapState
([
'
actualWaterLevel
'
])
...
mapState
([
'
actual
Depth
'
,
'
actual
WaterLevel
'
])
},
},
methods
:
{
methods
:
{
gobackDeal
(){
gobackDeal
(){
...
...
store/index.js
View file @
d148bea9
...
@@ -23,8 +23,8 @@ const store = createStore({
...
@@ -23,8 +23,8 @@ const store = createStore({
// activeOpen: '',
// activeOpen: '',
// menu: [],
// menu: [],
// univerifyErrorMsg: ''
// univerifyErrorMsg: ''
actualDepth
:
'
2222
'
,
// 孔深
actualDepth
:
0
,
// 孔深
actualWaterLevel
:
'
111
'
,
// 水深
actualWaterLevel
:
0
,
// 水深
power1
:
0
,
power1
:
0
,
power2
:
0
,
power2
:
0
,
qiuId
:
''
,
qiuId
:
''
,
...
...
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