From 8ee3a951190af6c7b7655c800a3c54a5770afb8a Mon Sep 17 00:00:00 2001 From: lishenfeng Date: Sun, 19 Jan 2025 17:30:20 +0800 Subject: [PATCH] =?UTF-8?q?fix():=20=E6=9C=88=E6=8A=A5=E8=A1=A8bug?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Gcyx/InformationSearch/StaticTable/index.js | 5 +++-- src/views/SafeWatch/TransformWatch/TableData.js | 2 +- src/views/Sbwh/Whxmys/index.js | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/views/Gcyx/InformationSearch/StaticTable/index.js b/src/views/Gcyx/InformationSearch/StaticTable/index.js index e3e0d08..0fd5640 100644 --- a/src/views/Gcyx/InformationSearch/StaticTable/index.js +++ b/src/views/Gcyx/InformationSearch/StaticTable/index.js @@ -201,8 +201,7 @@ const Page = () => { useEffect(() => { if (searchVal && searchVal.type1 != 1 && searchVal.type1 != 2) { const params = { ...searchVal } - setRequsetUrlObj(getUrl(searchVal.type, searchVal.type1)) - requsetUrlObjRef.current = getUrl(searchVal.type, searchVal.type1) + getData(params) } if (searchVal.type1 == 1) { @@ -212,6 +211,8 @@ const Page = () => { if (searchVal.type1 == 2) { getMonthData(searchVal) } + setRequsetUrlObj(getUrl(searchVal.type, searchVal.type1)) + requsetUrlObjRef.current = getUrl(searchVal.type, searchVal.type1) }, [searchVal]) diff --git a/src/views/SafeWatch/TransformWatch/TableData.js b/src/views/SafeWatch/TransformWatch/TableData.js index 4b0380b..110394a 100644 --- a/src/views/SafeWatch/TransformWatch/TableData.js +++ b/src/views/SafeWatch/TransformWatch/TableData.js @@ -8,7 +8,7 @@ const Tabledata = ({tableData}) => { { title: '序号', key: 'inx', dataIndex: 'inx', align: "center", render: (v, r, i) => {i + 1} }, { title: '监测点', key: 'stationCode', dataIndex: 'stationCode' }, { title: '缝开度(mm)', key: 'value', dataIndex: 'value'}, - { title: '温度(°℃)', key: 'temp', dataIndex: 'temp'}, + { title: '温度(℃)', key: 'temp', dataIndex: 'temp'}, { title: '模数(F)', key: 'modulus', dataIndex: 'modulus'}, {title: '监测时间', key: 'tm', dataIndex: 'tm'}, ]; diff --git a/src/views/Sbwh/Whxmys/index.js b/src/views/Sbwh/Whxmys/index.js index 1e5596c..d754a4f 100644 --- a/src/views/Sbwh/Whxmys/index.js +++ b/src/views/Sbwh/Whxmys/index.js @@ -93,7 +93,7 @@ const Page = () => {