瀏覽代碼

feat: 调整报警条件

sunxiao 3 周之前
父節點
當前提交
a4171ef021
共有 1 個文件被更改,包括 4 次插入4 次删除
  1. 4 4
      src/views/control/MedicinalView.vue

+ 4 - 4
src/views/control/MedicinalView.vue

@@ -312,7 +312,7 @@ const onSystemWarning = () => {
 }
 
 const isEmpty = (val) => {
-  return !(val == null || val == undefined || val == '')
+  return !(val === null || val === undefined || val === '')
 }
 
 const waringTips = () => {
@@ -352,13 +352,13 @@ const waringTips = () => {
     threeTips: []
   }
   
-  const qEnum = ['• 好氧池硝酸盐超管控值', '• 好氧池硝酸盐控制目标偏移过大']
+  const qEnum = ['• 好氧池硝酸盐控制目标偏移过大', '• 好氧池硝酸盐超管控值']
 
   const questionCollect = {
     firstItem: [],
     secondItem: [],
   }
-  
+
   if ( isEmpty(hycXsyOne) && isEmpty(htfksdOne) && isEmpty(kzmbplbjz) ) {
     if (( hycXsyOne - htfksdOne ) > kzmbplbjz ) {
       questionCollect.firstItem.push('北池');
@@ -377,7 +377,7 @@ const waringTips = () => {
       questionCollect.secondItem.push('南池');
     }
   }
-
+  
   if ( isEmpty(hycXsyOne) && isEmpty(qycYxyOne) && isEmpty(qycAdOne) ) {
     if (qycYxyOne + qycAdOne - hycXsyOne > xhycbjz) {
       result.twoTips.push('北池');