Browse Source

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

Renxy 1 year ago
parent
commit
5d9ef57def
1 changed files with 1 additions and 6 deletions
  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 [errVisible, setErrVisible] = useState(false);
   const [currentItem, setCurrentItem] = useState({});
   const [currentItem, setCurrentItem] = useState({});
   const isSensor = type == 'sensor';
   const isSensor = type == 'sensor';
-  console.log('--------------', items);
 
 
   const onClickThreshold = (record) => {
   const onClickThreshold = (record) => {
     setCurrentItem(record);
     setCurrentItem(record);
@@ -635,11 +634,7 @@ export function WarningTable(props) {
       title: '设定值范围',
       title: '设定值范围',
       width: '30%',
       width: '30%',
       render: (record) => (
       render: (record) => (
-        <ThresholdDetail
-          current={record.Value || 0}
-          data={record || {}}
-          // onClick={() => onClickThreshold(record)}
-        />
+        <ThresholdDetail current={record.Value || 0} data={record || {}} />
       ),
       ),
     },
     },
     {
     {