feat(): 日期修改
parent
73cb86f503
commit
79ced32540
|
|
@ -51,7 +51,7 @@ const Page = () => {
|
||||||
{title: '监测值', key: 'data', dataIndex: 'data', width: 120, align: "center",}
|
{title: '监测值', key: 'data', dataIndex: 'data', width: 120, align: "center",}
|
||||||
];
|
];
|
||||||
const yearColumns = [
|
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) => ({
|
...Array(12).fill(0).map((item, index) => ({
|
||||||
title: `${index + 1}月`,
|
title: `${index + 1}月`,
|
||||||
key: `drpM${index + 1}`,
|
key: `drpM${index + 1}`,
|
||||||
|
|
@ -199,6 +199,8 @@ const Page = () => {
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
setRequsetUrlObj(getUrl(searchVal.type, searchVal.type1))
|
||||||
|
requsetUrlObjRef.current = getUrl(searchVal.type, searchVal.type1)
|
||||||
if (searchVal && searchVal.type1 != 1 && searchVal.type1 != 2) {
|
if (searchVal && searchVal.type1 != 1 && searchVal.type1 != 2) {
|
||||||
const params = { ...searchVal }
|
const params = { ...searchVal }
|
||||||
|
|
||||||
|
|
@ -211,8 +213,7 @@ const Page = () => {
|
||||||
if (searchVal.type1 == 2) {
|
if (searchVal.type1 == 2) {
|
||||||
getMonthData(searchVal)
|
getMonthData(searchVal)
|
||||||
}
|
}
|
||||||
setRequsetUrlObj(getUrl(searchVal.type, searchVal.type1))
|
|
||||||
requsetUrlObjRef.current = getUrl(searchVal.type, searchVal.type1)
|
|
||||||
}, [searchVal])
|
}, [searchVal])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue