From b42da8415e2ef0aa45f0a9e32baa82e06ef533b0 Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Mon, 13 Nov 2023 17:53:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 8 +-- src/components/SealTest.vue | 29 +++++++-- src/components/Test.vue | 140 ++++++++++++++++++++++++++++++----------- src/store/modules/seal.js | 16 ++++- src/store/modules/websocket.js | 3 +- 5 files changed, 147 insertions(+), 49 deletions(-) diff --git a/.env b/.env index c4ae906..fe3f0dd 100644 --- a/.env +++ b/.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/ \ No newline at end of file +# VITE_BASE_WS1_URL=ws://127.0.0.1:19001/ +# VITE_BASE_WS2_URL=ws://127.0.0.1:19002/ \ No newline at end of file diff --git a/src/components/SealTest.vue b/src/components/SealTest.vue index 0f3b25e..6358b90 100644 --- a/src/components/SealTest.vue +++ b/src/components/SealTest.vue @@ -32,6 +32,18 @@ :src="StopTest" alt="" /> + +
水浸
-{{ testStore.waterImmersionSensor1 ? '有水' : '没水' }}
-+ {{ testStore.waterImmersionSensor1 ? '有水' : '没水' }} +
++ {{ + deviceStore.disinfectantCapacity <= 0 + ? 0 + : deviceStore.disinfectantCapacity + }} + g +
液位
-- {{ - deviceStore.disinfectantCapacity <= 0 - ? 0 - : deviceStore.disinfectantCapacity - }} - g -
-仓内
温度 {{ deviceStore.binTemperature }} ℃
湿度 {{ deviceStore.binHumidity }} ℃
过氧化氢浓度 {{ deviceStore.binHP }} PPM