Ver código fonte

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

ZhaoJun 1 ano atrás
pai
commit
071e1228c7
1 arquivos alterados com 6 adições e 1 exclusões
  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),