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])