Commit d8fa4e78 authored by xinzhedeai's avatar xinzhedeai

fix:首页电量字段更换 、 精度改为cm

parent dc9b0add
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 {
......
......@@ -346,12 +346,12 @@ const blueToothMixin = {
}
// 设置测试值:
if(recBlueResData.ks){
const temp4ks = recBlueResData.ks/1000
const temp4ss = recBlueResData.ss/1000
const temp4ks = recBlueResData.ks/100
const temp4ss = recBlueResData.ss/100
this.$store.commit('setMeasureVal', {
actualDepth: parseFloat(temp4ks.toFixed(3)), // 默认回传单位为mm
actualWaterLevel: parseFloat(temp4ss.toFixed(3)),
actualDepth: parseFloat(temp4ks.toFixed(2)), // 默认回传单位为cm
actualWaterLevel: parseFloat(temp4ss.toFixed(2)),
})
commonStateCodeDeal(2, '监听到设备反馈信息->测量深度'+JSON.stringify(recBlueResData))
......
......@@ -17,8 +17,8 @@
<div class="top">
<h2>设备电量</h2>
<p>
小球 <image src="/static/image/paokong/qiu-dl.png">{{ connected && power1 || '-'}} %
仪器 <image src="/static/image/paokong/shebei-dl.png">{{ connected && power2 || '-'}} %
小球 <image src="/static/image/paokong/qiu-dl.png">{{ connected && power2 || '-'}} %
仪器 <image src="/static/image/paokong/shebei-dl.png">{{ connected && power1 || '-'}} %
</p>
</div>
<div class="bottom">
......
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