From 5e77c0b8102f013c9ef430469d9b3b2bdaf52798 Mon Sep 17 00:00:00 2001 From: sige Date: Fri, 24 May 2024 16:57:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=A1=B5=E9=9D=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=8E=8B=E5=8A=9B=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Test.vue | 26 ++++++++++++++++++++++++++ src/store/modules/test.js | 5 +++++ src/store/modules/websocket.js | 3 +++ 3 files changed, 34 insertions(+) diff --git a/src/components/Test.vue b/src/components/Test.vue index 2df2036..110e189 100644 --- a/src/components/Test.vue +++ b/src/components/Test.vue @@ -231,6 +231,17 @@

湿度 {{ deviceStore.envirHumidity2 }} ℃

过氧化氢浓度 {{ deviceStore.envirHP2 }} PPM

+
+

+ 气路压力计 {{ testStore.allPressure[1] }} +

+

+ 加液压力计 {{ testStore.allPressure[2] }} +

+

+ 喷液压力计 {{ testStore.allPressure[3] }} +

+
{ } } } + .pressure { + display: flex; + align-items: center; + justify-content: space-evenly !important; + .title { + display: flex; + line-height: 30px; + justify-content: center !important; + flex-direction: column; + align-items: center; + span { + font-size: 26px; + } + } + } .switch_wrap { padding: 0 17px 0 17px; justify-content: space-between; diff --git a/src/store/modules/test.js b/src/store/modules/test.js index 7e88f21..323ea2b 100644 --- a/src/store/modules/test.js +++ b/src/store/modules/test.js @@ -21,10 +21,15 @@ export const useTestStore = defineStore({ heatingStripObj: {}, waterImmersionSensor1: false, waterImmersionSensor2: false, + + allPressure: [0, 0, 0, 0], } }, // actions actions: { + updateAllPressure(allPressure) { + this.allPressure = allPressure + }, updateWaterImmersionSensor1(waterImmersionSensor1) { this.waterImmersionSensor1 = waterImmersionSensor1 }, diff --git a/src/store/modules/websocket.js b/src/store/modules/websocket.js index b47eafd..1ad3366 100644 --- a/src/store/modules/websocket.js +++ b/src/store/modules/websocket.js @@ -129,6 +129,7 @@ export const useWebSocketStore = defineStore({ chargingPumpRPM, sprinklerPumpRPM, sprinklerPumpGPM, + pressure, } = sensor_data const { nowlog, targetlog } = disinfectionState || {} deviceStore.updateTargetLog(targetlog) @@ -149,6 +150,7 @@ export const useWebSocketStore = defineStore({ operatorStore.updateReplenishingFluidsWorkState( replenishingFluidsWorkState, ) + testStore.updateWaterImmersionSensor1( waterImmersionSensor1 == 0 ? false : true, ) @@ -161,6 +163,7 @@ export const useWebSocketStore = defineStore({ testStore.updateHeatingStripObj(heatingStrip) testStore.updateSprinklerPump(sprinklerPump) testStore.updateChargingPump(chargingPump) + testStore.updateAllPressure(pressure) settingStore.updateDeviceIp('192.168.8.10') deviceStore.updateDisinfectantCapacity(disinfectant_volume) deviceStore.updateBinTemperature(temp_1)