From 79ced3254020e4e44e74775fc05021018f77e2c6 Mon Sep 17 00:00:00 2001 From: lishenfeng Date: Wed, 26 Mar 2025 15:17:21 +0800 Subject: [PATCH] =?UTF-8?q?feat():=20=E6=97=A5=E6=9C=9F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/Gcyx/InformationSearch/StaticTable/index.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/views/Gcyx/InformationSearch/StaticTable/index.js b/src/views/Gcyx/InformationSearch/StaticTable/index.js index 0fd5640..3468896 100644 --- a/src/views/Gcyx/InformationSearch/StaticTable/index.js +++ b/src/views/Gcyx/InformationSearch/StaticTable/index.js @@ -51,7 +51,7 @@ const Page = () => { {title: '监测值', key: 'data', dataIndex: 'data', width: 120, align: "center",} ]; const yearColumns = [ - { title: '日期', key: 'date', dataIndex: 'date', width: 120, align: "center", fixed: "left" }, + // { title: '日期', key: 'date', dataIndex: 'date', width: 120, align: "center", fixed: "left" }, ...Array(12).fill(0).map((item, index) => ({ title: `${index + 1}月`, key: `drpM${index + 1}`, @@ -199,6 +199,8 @@ const Page = () => { } useEffect(() => { + setRequsetUrlObj(getUrl(searchVal.type, searchVal.type1)) + requsetUrlObjRef.current = getUrl(searchVal.type, searchVal.type1) if (searchVal && searchVal.type1 != 1 && searchVal.type1 != 2) { const params = { ...searchVal } @@ -211,8 +213,7 @@ const Page = () => { if (searchVal.type1 == 2) { getMonthData(searchVal) } - setRequsetUrlObj(getUrl(searchVal.type, searchVal.type1)) - requsetUrlObjRef.current = getUrl(searchVal.type, searchVal.type1) + }, [searchVal])