feat(): 日期修改

master
李神峰 2025-03-26 15:17:21 +08:00
parent 73cb86f503
commit 79ced32540
1 changed files with 4 additions and 3 deletions

View File

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