Explorar o código

修改自检不显示巡检项问题

Renxy hai 1 ano
pai
achega
5d9ef57def
Modificáronse 1 ficheiros con 1 adicións e 6 borrados
  1. 1 6
      src/pages/EqSelfInspection/components/Detail.js

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

@@ -595,7 +595,6 @@ export function WarningTable(props) {
   const [errVisible, setErrVisible] = useState(false);
   const [currentItem, setCurrentItem] = useState({});
   const isSensor = type == 'sensor';
-  console.log('--------------', items);
 
   const onClickThreshold = (record) => {
     setCurrentItem(record);
@@ -635,11 +634,7 @@ export function WarningTable(props) {
       title: '设定值范围',
       width: '30%',
       render: (record) => (
-        <ThresholdDetail
-          current={record.Value || 0}
-          data={record || {}}
-          // onClick={() => onClickThreshold(record)}
-        />
+        <ThresholdDetail current={record.Value || 0} data={record || {}} />
       ),
     },
     {