Przeglądaj źródła

fix: 列宽度修改

ZhaoJun 1 rok temu
rodzic
commit
ad84f2efe2
1 zmienionych plików z 8 dodań i 8 usunięć
  1. 8 8
      src/pages/EqSelfInspection/components/Detail.js

+ 8 - 8
src/pages/EqSelfInspection/components/Detail.js

@@ -834,12 +834,12 @@ export function LiquidTable(props) {
       dataIndex: 'origin_value',
     },
     {
-      title: '差值',
+      title: '差值/比值',
       dataIndex: 'value',
     },
     {
       title: '设定值范围',
-      width: '20%',
+      width: '18%',
       render: (record) => (
         <ThresholdDetail
           current={record.value || 0}
@@ -988,7 +988,7 @@ function DosingFlowTable(props) {
     },
     {
       title: '类型',
-      width: '10%',
+      width: '15%',
       key: 'template_item_name',
       dataIndex: 'template_item_name',
     },
@@ -1020,7 +1020,7 @@ function DosingFlowTable(props) {
     {
       title: '状态',
       dataIndex: 'status',
-      width: '1.25rem',
+      width: '20%',
       render: (status) => {
         switch (status) {
           case -1:
@@ -1421,10 +1421,10 @@ function PressureGaugeTable(props) {
 
 function PressureGaugeCom(props) {
   const { sendMessageToUnity, select, allData = [], title } = props;
-  const [activeKey, setActiveKey] = useState('2');
+  const [activeKey, setActiveKey] = useState('1');
 
   const errorData = useMemo(() => {
-    const tempData = allData?.filter((item) => item.status && !item.history);
+    const tempData = allData?.filter((item) => !item.history);
     return tempData;
   }, [allData]);
 
@@ -1595,10 +1595,10 @@ function WaterQualityTable(props) {
 
 function WaterQualityCom(props) {
   const { sendMessageToUnity, select, allData = [], title } = props;
-  const [activeKey, setActiveKey] = useState('2');
+  const [activeKey, setActiveKey] = useState('1');
 
   const errorData = useMemo(() => {
-    const tempData = allData?.filter((item) => item.status && !item.history);
+    const tempData = allData?.filter((item) => !item.history);
     return tempData;
   }, [allData]);