Browse Source

fix: 安全自检总结显示错误

ZhaoJun 1 year ago
parent
commit
071e1228c7
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/pages/EqSelfInspection/components/Detail.js

+ 6 - 1
src/pages/EqSelfInspection/components/Detail.js

@@ -71,7 +71,12 @@ function Detail(props) {
           else if (index === 1) label = '工艺自检';
           else {
             label = '安全自检';
-            value = data?.secureStatus === 0 ? '正常' : '异常';
+            value =
+              data?.secureStatus === 0
+                ? itemSplit[1] !== '异常'
+                  ? '正常'
+                  : '异常'
+                : '异常';
           }
           resultArr.push({
             ...getTextColor(value),