Commit d148bea9 authored by xinzhedeai's avatar xinzhedeai

深度值 接收

parent a1d318e8
...@@ -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('setPower', { this.$store.commit('setMeasureVal', {
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 {
......
...@@ -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(['actualDepth', 'actualWaterLevel'])
}, },
methods: { methods: {
gobackDeal(){ gobackDeal(){
......
...@@ -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:'',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment