|
|
@ -189,6 +189,31 @@ |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="common_set switch_wrap"> |
|
|
|
<p class="title">空压机通道</p> |
|
|
|
<div class="btn_wrap"> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
testStore.airCompressorChannel |
|
|
|
? 'open style-btn mg' |
|
|
|
: 'close style-btn mg' |
|
|
|
" |
|
|
|
@click="changeChannel(1)" |
|
|
|
> |
|
|
|
打开 |
|
|
|
</div> |
|
|
|
<div |
|
|
|
:class=" |
|
|
|
!testStore.airCompressorChannel |
|
|
|
? 'open style-btn' |
|
|
|
: 'close style-btn' |
|
|
|
" |
|
|
|
@click="changeChannel(2)" |
|
|
|
> |
|
|
|
关闭 |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="common_set update_wrap"> |
|
|
|
<p class="title">水浸1</p> |
|
|
|
<p class="num">{{ testStore.waterImmersionSensor1 ? '有水' : '没水' }}</p> |
|
|
@ -273,6 +298,7 @@ import { |
|
|
|
import { |
|
|
|
someAirSwitchJSON, |
|
|
|
liquidpumpctrlJSON, |
|
|
|
airCompressor_channelCtrlJSON, |
|
|
|
getStateJSON, |
|
|
|
addLiquidCtrlJSON, |
|
|
|
test_replenishingFluidsPumpCtrJSON, |
|
|
@ -513,6 +539,16 @@ const changeDraughtStatus = flag => { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const changeChannel = flag => { |
|
|
|
if (flag == 1) { |
|
|
|
websocketStore.sendCommandMsg(airCompressor_channelCtrlJSON([1])) |
|
|
|
testStore.updateAirCompressorChannel(true) |
|
|
|
} else { |
|
|
|
websocketStore.sendCommandMsg(airCompressor_channelCtrlJSON([0])) |
|
|
|
testStore.updateAirCompressorChannel(false) |
|
|
|
} |
|
|
|
} |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
|