|
|
@ -194,31 +194,44 @@ |
|
|
|
<div class="btn_wrap"> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
testStore.airCompressorChannel |
|
|
|
sealStore.airCompressorChannelSelectVal == '2' |
|
|
|
? 'open style-btn mg' |
|
|
|
: 'close style-btn mg' |
|
|
|
" |
|
|
|
@click="changeChannel(1)" |
|
|
|
> |
|
|
|
打开 |
|
|
|
空气 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
!testStore.airCompressorChannel |
|
|
|
sealStore.airCompressorChannelSelectVal == '1' |
|
|
|
? 'open style-btn' |
|
|
|
: 'close style-btn' |
|
|
|
" |
|
|
|
@click="changeChannel(2)" |
|
|
|
> |
|
|
|
关闭 |
|
|
|
内管道 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="common_set update_wrap"> |
|
|
|
<p class="title">水浸</p> |
|
|
|
<p class="num">{{ testStore.waterImmersionSensor1 ? '有水' : '没水' }}</p> |
|
|
|
<div class="btn_wrap style-btn" @click="handleUpdate" style="opacity: 0"> |
|
|
|
更新读取水浸状态 |
|
|
|
<div class="common_set update_wrap pressure"> |
|
|
|
<div class="title"> |
|
|
|
水浸 |
|
|
|
<p class="num"> |
|
|
|
{{ testStore.waterImmersionSensor1 ? '有水' : '没水' }} |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="title"> |
|
|
|
液位 |
|
|
|
<p class="num"> |
|
|
|
{{ |
|
|
|
deviceStore.disinfectantCapacity <= 0 |
|
|
|
? 0 |
|
|
|
: deviceStore.disinfectantCapacity |
|
|
|
}} |
|
|
|
g |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="common_set update_wrap pressure"> |
|
|
@ -235,38 +248,60 @@ |
|
|
|
压力4 <span>{{ sealStore.allPressure[3] }}</span> |
|
|
|
</p> |
|
|
|
</div> |
|
|
|
<div class="common_set update_wrap"> |
|
|
|
<p class="title">液位</p> |
|
|
|
<p class="num"> |
|
|
|
{{ |
|
|
|
deviceStore.disinfectantCapacity <= 0 |
|
|
|
? 0 |
|
|
|
: deviceStore.disinfectantCapacity |
|
|
|
}} |
|
|
|
g |
|
|
|
</p> |
|
|
|
<div class="btn_wrap style-btn" @click="handleUpdate" style="opacity: 0"> |
|
|
|
更新读取液位状态 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="common_set info_wrap"> |
|
|
|
<p class="title">仓内</p> |
|
|
|
<p class="info">温度 {{ deviceStore.binTemperature }} ℃</p> |
|
|
|
<p class="info">湿度 {{ deviceStore.binHumidity }} ℃</p> |
|
|
|
<p class="info">过氧化氢浓度 {{ deviceStore.binHP }} PPM</p> |
|
|
|
</div> |
|
|
|
<!-- <div class="common_set info_wrap"> |
|
|
|
<p class="title">环境1</p> |
|
|
|
<p class="info">温度 {{ deviceStore.envirTemperature1 }} ℃</p> |
|
|
|
<p class="info">湿度 {{ deviceStore.envirHumidity1 }} ℃</p> |
|
|
|
<p class="info">过氧化氢浓度 {{ deviceStore.envirHP1 }} PPM</p> |
|
|
|
<div class="common_set switch_wrap"> |
|
|
|
<p class="title">空压机阀1</p> |
|
|
|
<div class="btn_wrap"> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
sealStore.airCompressorValve1 == '1' |
|
|
|
? 'open style-btn mg' |
|
|
|
: 'close style-btn mg' |
|
|
|
" |
|
|
|
@click="changeAirValve1(1)" |
|
|
|
> |
|
|
|
打开 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
sealStore.airCompressorValve1 == '0' |
|
|
|
? 'open style-btn' |
|
|
|
: 'close style-btn' |
|
|
|
" |
|
|
|
@click="changeAirValve1(2)" |
|
|
|
> |
|
|
|
关闭 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<p class="title">空压机阀2</p> |
|
|
|
<div class="btn_wrap"> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
sealStore.airCompressorValve2 == '1' |
|
|
|
? 'open style-btn mg' |
|
|
|
: 'close style-btn mg' |
|
|
|
" |
|
|
|
@click="changeAirValve2(1)" |
|
|
|
> |
|
|
|
打开 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
sealStore.airCompressorValve2 == '0' |
|
|
|
? 'open style-btn' |
|
|
|
: 'close style-btn' |
|
|
|
" |
|
|
|
@click="changeAirValve2(2)" |
|
|
|
> |
|
|
|
关闭 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="common_set info_wrap"> |
|
|
|
<p class="title">环境2</p> |
|
|
|
<p class="info">温度 {{ deviceStore.envirTemperature2 }} ℃</p> |
|
|
|
<p class="info">湿度 {{ deviceStore.envirHumidity2 }} ℃</p> |
|
|
|
<p class="info">过氧化氢浓度 {{ deviceStore.envirHP2 }} PPM</p> |
|
|
|
</div> --> |
|
|
|
<van-number-keyboard |
|
|
|
v-model="addLiquidVal" |
|
|
|
@input="val => handleInput(val, 1)" |
|
|
@ -306,9 +341,12 @@ import { |
|
|
|
import { |
|
|
|
someAirSwitchJSON, |
|
|
|
liquidpumpctrlJSON, |
|
|
|
airCompressorChannelSelectJSON, |
|
|
|
airCompressor_channelCtrlJSON, |
|
|
|
getStateJSON, |
|
|
|
addLiquidCtrlJSON, |
|
|
|
airCompressorSetValve1JSON, |
|
|
|
airCompressorSetValve2JSON, |
|
|
|
test_replenishingFluidsPumpCtrJSON, |
|
|
|
sprayLiquidPump_open_for_testJSON, |
|
|
|
} from '@/mock/command' |
|
|
@ -372,6 +410,32 @@ const formatter7 = value => { |
|
|
|
return value |
|
|
|
} |
|
|
|
|
|
|
|
const changeAirValve1 = flag => { |
|
|
|
if (flag == '1') { |
|
|
|
// 打开 |
|
|
|
websocketStore.sendCommandMsg(airCompressorSetValve1JSON([1])) |
|
|
|
sealStore.updateAirCompressorValve1(1) |
|
|
|
} |
|
|
|
if (flag == '2') { |
|
|
|
// 关闭 |
|
|
|
websocketStore.sendCommandMsg(airCompressorSetValve1JSON([0])) |
|
|
|
sealStore.updateAirCompressorValve1(0) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const changeAirValve2 = flag => { |
|
|
|
if (flag == '1') { |
|
|
|
// 打开 |
|
|
|
websocketStore.sendCommandMsg(airCompressorSetValve2JSON([1])) |
|
|
|
sealStore.updateAirCompressorValve2(1) |
|
|
|
} |
|
|
|
if (flag == '2') { |
|
|
|
// 关闭 |
|
|
|
websocketStore.sendCommandMsg(airCompressorSetValve2JSON([0])) |
|
|
|
sealStore.updateAirCompressorValve2(0) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const isFirstClick = ref(true) |
|
|
|
const hideAllKeyboards = flag => { |
|
|
|
isFirstClick.value = true |
|
|
@ -551,11 +615,11 @@ const changeDraughtStatus = flag => { |
|
|
|
|
|
|
|
const changeChannel = flag => { |
|
|
|
if (flag == 1) { |
|
|
|
websocketStore.sendCommandMsg(airCompressor_channelCtrlJSON([1])) |
|
|
|
testStore.updateAirCompressorChannel(true) |
|
|
|
websocketStore.sendCommandMsg(airCompressorChannelSelectJSON([2])) |
|
|
|
sealStore.updateAirCompressorChannelSelectVal(2) |
|
|
|
} else { |
|
|
|
websocketStore.sendCommandMsg(airCompressor_channelCtrlJSON([0])) |
|
|
|
testStore.updateAirCompressorChannel(false) |
|
|
|
websocketStore.sendCommandMsg(airCompressorChannelSelectJSON([1])) |
|
|
|
sealStore.updateAirCompressorChannelSelectVal(1) |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|