From 20d93ded5848d4486bc7bcd3b32342c5cf20749b Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Mon, 14 Aug 2023 23:09:12 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/Setting/components/Device.vue | 95 ++++++++++++++++++++++++++--
1 file changed, 91 insertions(+), 4 deletions(-)
diff --git a/src/components/Setting/components/Device.vue b/src/components/Setting/components/Device.vue
index 596a90c..f562e6e 100644
--- a/src/components/Setting/components/Device.vue
+++ b/src/components/Setting/components/Device.vue
@@ -8,7 +8,6 @@
v-model="addLiquidConfigVal"
:clickable="true"
:formatter="formatter"
- placeholder="设置加液蠕动泵转速"
/>
设置
@@ -21,11 +20,70 @@
v-model="sprayLiquidConfigVal"
:clickable="true"
:formatter="formatter"
- placeholder="设置喷液蠕动泵转速"
/>
设置
+
+
消毒停止过氧化氢溶度
+
+
+
+
设置
+
+
+
消毒继续过氧化氢溶度
+
+
+
+
设置
+
+
+
消毒停止过氧化氢相对饱和度
+
+
+
+
设置
+
+
+
消毒继续过氧化氢相对饱和度
+
+
+
+
设置
+
+
@@ -38,7 +96,26 @@ import { setSettingValJSON } from '@/mock/command'
const settingStore = useSettingStore()
const webSocketStore = useWebSocketStore()
-const { addLiquidConfigVal, sprayLiquidConfigVal } = storeToRefs(settingStore)
+const {
+ max_humidity,
+ continued_satur,
+ stoped_satur,
+ continued_gs,
+ stoped_gs,
+ addLiquidConfigVal,
+ sprayLiquidConfigVal,
+} = storeToRefs(settingStore)
+
+const humidityFormatter = value => {
+ if (value > 100) {
+ return '100/g'
+ }
+ if (value != 0) {
+ var newVal = value.replace(/\b(0+)/gi, '')
+ return newVal + '/g'
+ }
+ return '0/g'
+}
const formatter = value => {
if (value > 2000) {
@@ -62,6 +139,16 @@ const setAddliquidVal = () => {
showSuccessToast('设置成功')
}
+const setStopedGsVal = () => {}
+
+const setcontinuedGsVal = () => {}
+
+const setstopedSaturVal = () => {}
+
+const setContinuedSaturVal = () => {}
+
+const setMaxHumidityVal = () => {}
+
const setSprayLiquidVal = () => {
const val = parseInt(
sprayLiquidConfigVal.value.substring(
@@ -83,8 +170,8 @@ const setSprayLiquidVal = () => {
width: 100%;
height: 100%;
padding: 20px;
- padding-bottom: 380px;
display: grid;
+ overflow: scroll;
grid-template-rows: repeat(2, 1fr);
grid-template-columns: repeat(1, 1fr);
row-gap: 20px;