|
@ -98,6 +98,8 @@ import { |
|
|
someAirSwitchJSON, |
|
|
someAirSwitchJSON, |
|
|
airCompressor_setStateJSON, |
|
|
airCompressor_setStateJSON, |
|
|
airCompressor_channelCtrlJSON, |
|
|
airCompressor_channelCtrlJSON, |
|
|
|
|
|
AirInletProportionalValve_setStateJSON, |
|
|
|
|
|
AirOutletProportionalValve_setStateJSON, |
|
|
} from '@/mock/command' |
|
|
} from '@/mock/command' |
|
|
import { useSealStore, useTestStore, useWebSocketStore } from '@/store' |
|
|
import { useSealStore, useTestStore, useWebSocketStore } from '@/store' |
|
|
|
|
|
|
|
@ -243,6 +245,11 @@ const changeAirStatus = flag => { |
|
|
} |
|
|
} |
|
|
} else { |
|
|
} else { |
|
|
if (!testStore.airCompressor) { |
|
|
if (!testStore.airCompressor) { |
|
|
|
|
|
// 开始充气时关闭两个阀门 |
|
|
|
|
|
websocketStore.sendCommandMsg(AirInletProportionalValve_setStateJSON([0])) |
|
|
|
|
|
websocketStore.sendCommandMsg( |
|
|
|
|
|
AirOutletProportionalValve_setStateJSON([0]), |
|
|
|
|
|
) |
|
|
websocketStore.sendCommandMsg(airCompressor_setStateJSON([1])) |
|
|
websocketStore.sendCommandMsg(airCompressor_setStateJSON([1])) |
|
|
testStore.updateAirCompressor(true) |
|
|
testStore.updateAirCompressor(true) |
|
|
} |
|
|
} |
|
|