diff --git a/src/components/AddPreSetting.vue b/src/components/AddPreSetting.vue
index 3438829..975ab7e 100644
--- a/src/components/AddPreSetting.vue
+++ b/src/components/AddPreSetting.vue
@@ -449,6 +449,11 @@ const handleInput = (value, index) => {
continued_humi.value = value + ''
})
}
+ if (index == 12) {
+ setTimeout(() => {
+ draughtFanValue.value = value + ''
+ })
+ }
isFirstClick.value = false
}
}
diff --git a/src/components/UpdatePreSetting.vue b/src/components/UpdatePreSetting.vue
index 1671870..11d0621 100644
--- a/src/components/UpdatePreSetting.vue
+++ b/src/components/UpdatePreSetting.vue
@@ -98,6 +98,20 @@
/>
+
Log等级
@@ -217,6 +231,16 @@
:show="continued_humiShow"
@blur="continued_humiShow = false"
/>
+ handleInput(val, 12)"
+ close-button-text="配置"
+ @close="setDraughtFanValue"
+ v-model="draughtFanValue"
+ :title="draughtFanValue"
+ :show="draughtFanShow"
+ @blur="draughtFanShow = false"
+ />
{
continued_satur: parseInt(continued_satur.value),
stoped_humi: parseInt(stoped_humi.value),
continued_humi: parseInt(continued_humi.value),
+ draughtFanValue: parseInt(draughtFanValue.value),
}
console.log(data)
webSocketStore.sendCommandMsg(updateAllFormulaJSON(data))
@@ -397,6 +424,9 @@ const hideClickKey = flag => {
if (flag == 10) {
continued_humiShow.value = true
}
+ if (flag == 12) {
+ draughtFanShow.value = true
+ }
}
const handleInput = (value, index) => {
@@ -451,6 +481,11 @@ const handleInput = (value, index) => {
continued_humi.value = value + ''
})
}
+ if (index == 12) {
+ setTimeout(() => {
+ draughtFanValue.value = value + ''
+ })
+ }
isFirstClick.value = false
}
}
@@ -579,6 +614,27 @@ const formatter6 = value => {
return value.replace(/^0+/gi, '')
}
+const formatter12 = value => {
+ if (parseInt(value) == 0) {
+ return '0'
+ }
+ let arr = settingStore.allSettingList.filter(
+ item => item.name == 'draughtFanValue',
+ )
+ if (arr && arr.length > 0) {
+ if (parseInt(value) > arr[0].val_upper_limit) {
+ return arr[0].val_upper_limit + ''
+ }
+ if (parseInt(value) < arr[0].val_lower_limit) {
+ return arr[0].val_lower_limit + ''
+ }
+ }
+ if (value == '') {
+ return '0'
+ }
+ return value.replace(/^0+/gi, '')
+}
+
const formatter7 = value => {
if (parseInt(value) == 0) {
return '0'
@@ -671,6 +727,14 @@ const setAddliquidVal = () => {
}
}
+const setDraughtFanValue = () => {
+ const val = parseInt(draughtFanValue.value)
+ if (isNaN(val)) {
+ showFailToast('设置失败,请填写正确参数')
+ return
+ }
+}
+
const setStopedGsVal = () => {
const val = parseInt(stoped_gs.value)
if (isNaN(val)) {