瀏覽代碼

删除液位

Renxy 1 年之前
父節點
當前提交
4467d3666c
共有 1 個文件被更改,包括 5 次插入6 次删除
  1. 5 6
      src/models/eqSelfInspection.js

+ 5 - 6
src/models/eqSelfInspection.js

@@ -198,15 +198,15 @@ export default {
           arr?.filter((item) => item.Status === 1)?.length || 0;
 
         //获取液位检测异常数量
-        const errorNum = data.FluidLevelList?.filter(
-          (item) => item.status == 1,
-        );
+        // const errorNum = data.FluidLevelList?.filter(
+        //   (item) => item.status == 1,
+        // );
         let num = 0;
         if (data?.extendWarningData?.length > 0) num += 1;
         if (data?.sensorWaringNum > 0) num += 1;
         if (data?.dumuList?.length > 0) num += 1;
         if (data?.FaultAnalysis?.length > 0) num += 1;
-        if (errorNum?.length > 0) num += errorNum;
+        // if (errorNum?.length > 0) num += errorNum;
         data.warningTotalNum = num;
 
         if (data.extendWarningNum > 0) {
@@ -222,8 +222,7 @@ export default {
         data.faultAnalysisStatus = data?.FaultAnalysis?.length > 0 ? 1 : 0;
         // data.secureStatus =
         //   data?.dumuList?.length > 0 || data?.sensorWaringNum > 0 ? 1 : 0;
-        data.secureStatus =
-          data?.dumuList?.length > 0 || errorNum?.length > 0 ? 1 : 0;
+        data.secureStatus = data?.dumuList?.length > 0 ? 1 : 0;
         let secureChild = [];
         let dumuStatus = 0;
         if (data?.dumuList?.length > 0) {