Commit da6fbc73 authored by xinzhedeai's avatar xinzhedeai

add:clearMeasureVal

parent 3894b0be
...@@ -34,6 +34,11 @@ const store = createStore({ ...@@ -34,6 +34,11 @@ const store = createStore({
version: 'shuishen' // 系统版本 默认水深 version: 'shuishen' // 系统版本 默认水深
}, },
mutations: { mutations: {
clearMeasureVal(state, testRes){
state.actualDepth = ''
state.actualWaterLevel= ''
state.actualHeat = ''
},
setMeasureVal(state, testRes){ setMeasureVal(state, testRes){
if(testRes.power1){ // 仪器电量 if(testRes.power1){ // 仪器电量
state.power1 = testRes.power1 state.power1 = testRes.power1
...@@ -51,7 +56,7 @@ const store = createStore({ ...@@ -51,7 +56,7 @@ const store = createStore({
if(testRes.actualWaterLevel){ // 实测孔深 if(testRes.actualWaterLevel){ // 实测孔深
state.actualWaterLevel = testRes.actualWaterLevel state.actualWaterLevel = testRes.actualWaterLevel
} }
if(testRes.actualHeat){ // 实测孔深 if(testRes.actualHeat){ // 实测温度
state.actualHeat = testRes.actualHeat state.actualHeat = testRes.actualHeat
} }
}, },
......
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