|
@ -86,6 +86,7 @@ import StopTest from '@/assets/img/seal/stoptest.png' |
|
|
import { |
|
|
import { |
|
|
someAirSwitchJSON, |
|
|
someAirSwitchJSON, |
|
|
airCompressor_setStateJSON, |
|
|
airCompressor_setStateJSON, |
|
|
|
|
|
airCompressorGetPressureDirectIntervalJSON, |
|
|
airCompressor_channelCtrlJSON, |
|
|
airCompressor_channelCtrlJSON, |
|
|
AirInletProportionalValve_setStateJSON, |
|
|
AirInletProportionalValve_setStateJSON, |
|
|
AirOutletProportionalValve_setStateJSON, |
|
|
AirOutletProportionalValve_setStateJSON, |
|
@ -300,9 +301,9 @@ const newStartTest = async flag => { |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const timer = ref(null) |
|
|
const timer = ref(null) |
|
|
|
|
|
const timerData = ref(null) |
|
|
onBeforeUnmount(() => { |
|
|
onBeforeUnmount(() => { |
|
|
timer.value = null |
|
|
|
|
|
timerStart.value = null |
|
|
|
|
|
|
|
|
clearInterval(timerData.value) |
|
|
clearInterval(timer.value) |
|
|
clearInterval(timer.value) |
|
|
clearInterval(timerStart.value) |
|
|
clearInterval(timerStart.value) |
|
|
}) |
|
|
}) |
|
@ -379,6 +380,9 @@ onMounted(() => { |
|
|
}, 1000) |
|
|
}, 1000) |
|
|
websocketStore.sendCommandMsg(airInletProportionalValve_getStateJSON) |
|
|
websocketStore.sendCommandMsg(airInletProportionalValve_getStateJSON) |
|
|
websocketStore.sendCommandMsg(AirOutletProportionalValve_getStateJSON) |
|
|
websocketStore.sendCommandMsg(AirOutletProportionalValve_getStateJSON) |
|
|
|
|
|
timerData.value = setInterval(() => { |
|
|
|
|
|
websocketStore.sendCommandMsg(airCompressorGetPressureDirectIntervalJSON) |
|
|
|
|
|
}, 100) |
|
|
}) |
|
|
}) |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|