Browse Source

更改开始充气等逻辑 seal

master
maochaoying 2 years ago
parent
commit
65b38a5168
  1. 8
      .env
  2. 15
      src/components/SealTest.vue

8
.env

@ -1,5 +1,5 @@
VITE_BASE_WS1_URL=ws://192.168.8.10:19001/
VITE_BASE_WS2_URL=ws://192.168.8.10:19002/
# VITE_BASE_WS1_URL=ws://192.168.8.10:19001/
# VITE_BASE_WS2_URL=ws://192.168.8.10:19002/
# VITE_BASE_WS1_URL=ws://127.0.0.1:19001/
# VITE_BASE_WS2_URL=ws://127.0.0.1:19002/
VITE_BASE_WS1_URL=ws://127.0.0.1:19001/
VITE_BASE_WS2_URL=ws://127.0.0.1:19002/

15
src/components/SealTest.vue

@ -240,17 +240,23 @@ const timerFunc = () => {
const changeAirStatus = flag => {
if (flag == 1) {
if (testStore.airCompressor) {
//
websocketStore.sendCommandMsg(airCompressor_channelCtrlJSON([1]))
websocketStore.sendCommandMsg(airCompressor_setStateJSON([0]))
websocketStore.sendCommandMsg(AirInletProportionalValve_setStateJSON([0]))
websocketStore.sendCommandMsg(
AirOutletProportionalValve_setStateJSON([0]),
)
testStore.updateAirCompressor(false)
}
} else {
if (!testStore.airCompressor) {
//
//
websocketStore.sendCommandMsg(AirInletProportionalValve_setStateJSON([0]))
websocketStore.sendCommandMsg(
AirOutletProportionalValve_setStateJSON([0]),
)
websocketStore.sendCommandMsg(airCompressor_channelCtrlJSON([1]))
websocketStore.sendCommandMsg(airCompressor_channelCtrlJSON([0]))
websocketStore.sendCommandMsg(airCompressor_setStateJSON([1]))
testStore.updateAirCompressor(true)
}
@ -263,11 +269,10 @@ const handleStartTest = flag => {
// getStatecurrentAirPressure
//
timerFunc()
//
websocketStore.sendCommandMsg(airCompressor_channelCtrlJSON([0]))
//
websocketStore.sendCommandMsg(airCompressor_channelCtrlJSON([1]))
websocketStore.sendCommandMsg(AirInletProportionalValve_setStateJSON([0]))
websocketStore.sendCommandMsg(AirOutletProportionalValve_setStateJSON([0]))
//
websocketStore.sendCommandMsg(airCompressor_setStateJSON([0]))
testStore.updateAirCompressor(false)
sealStore.updateOldAirPressure(sealStore.currentAirPressure)

Loading…
Cancel
Save