From ce364f17621d8d3e65471f2b3eb8c4e766fd99c2 Mon Sep 17 00:00:00 2001 From: sige Date: Fri, 24 May 2024 17:38:25 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=A1=B5=E9=9D=A2=E5=8E=8B?= =?UTF-8?q?=E5=8A=9B=E4=BF=A1=E6=81=AF=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 | 30 ++++++++++++++++++++++++++++-- src/store/modules/test.js | 6 ++++++ src/store/modules/websocket.js | 6 ++++-- 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/src/components/Test.vue b/src/components/Test.vue index 7f21c8f..b7d5397 100644 --- a/src/components/Test.vue +++ b/src/components/Test.vue @@ -182,14 +182,14 @@
-

水浸1

+

设备底部水浸

{{ testStore.waterImmersionSensor1 ? '有水' : '没水' }}

更新读取水浸状态
-

水浸2

+

蒸发仓水浸

{{ testStore.waterImmersionSensor2 ? '有水' : '没水' }}

更新读取水浸状态 @@ -227,6 +227,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..be1d8a0 100644 --- a/src/store/modules/test.js +++ b/src/store/modules/test.js @@ -21,10 +21,16 @@ 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 4395b44..fc1b6a9 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) @@ -161,7 +162,8 @@ export const useWebSocketStore = defineStore({ testStore.updateHeatingStripObj(heatingStrip) testStore.updateSprinklerPump(sprinklerPump) testStore.updateChargingPump(chargingPump) - settingStore.updateDeviceIp('192.168.8.10') + testStore.updateAllPressure(pressure) + settingStore.updateDeviceIp('192.168.8.11') deviceStore.updateDisinfectantCapacity(disinfectant_volume) deviceStore.updateBinTemperature(temp_1) deviceStore.updateBinHumidity(humid_1) @@ -401,7 +403,7 @@ export const useWebSocketStore = defineStore({ testStore.updateHeatingStripObj(heatingStrip) testStore.updateSprinklerPump(sprinklerPump) testStore.updateChargingPump(chargingPump) - settingStore.updateDeviceIp('192.168.8.10') + settingStore.updateDeviceIp('192.168.8.11') deviceStore.updateDisinfectantCapacity(disinfectant_volume) deviceStore.updateBinTemperature(temp_1) deviceStore.updateBinHumidity(humid_1)