fix(): 月报表bug修复

master
李神峰 2025-01-19 17:30:20 +08:00
parent 3199168dd5
commit 8ee3a95119
3 changed files with 5 additions and 4 deletions

View File

@ -201,8 +201,7 @@ const Page = () => {
useEffect(() => { useEffect(() => {
if (searchVal && searchVal.type1 != 1 && searchVal.type1 != 2) { if (searchVal && searchVal.type1 != 1 && searchVal.type1 != 2) {
const params = { ...searchVal } const params = { ...searchVal }
setRequsetUrlObj(getUrl(searchVal.type, searchVal.type1))
requsetUrlObjRef.current = getUrl(searchVal.type, searchVal.type1)
getData(params) getData(params)
} }
if (searchVal.type1 == 1) { if (searchVal.type1 == 1) {
@ -212,6 +211,8 @@ 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])

View File

@ -8,7 +8,7 @@ const Tabledata = ({tableData}) => {
{ title: '序号', key: 'inx', dataIndex: 'inx', align: "center", render: (v, r, i) => <span>{i + 1}</span> }, { title: '序号', key: 'inx', dataIndex: 'inx', align: "center", render: (v, r, i) => <span>{i + 1}</span> },
{ title: '监测点', key: 'stationCode', dataIndex: 'stationCode' }, { title: '监测点', key: 'stationCode', dataIndex: 'stationCode' },
{ title: '缝开度(mm)', key: 'value', dataIndex: 'value'}, { title: '缝开度(mm)', key: 'value', dataIndex: 'value'},
{ title: '温度(°℃)', key: 'temp', dataIndex: 'temp'}, { title: '温度(℃)', key: 'temp', dataIndex: 'temp'},
{ title: '模数(F)', key: 'modulus', dataIndex: 'modulus'}, { title: '模数(F)', key: 'modulus', dataIndex: 'modulus'},
{title: '监测时间', key: 'tm', dataIndex: 'tm'}, {title: '监测时间', key: 'tm', dataIndex: 'tm'},
]; ];

View File

@ -93,7 +93,7 @@ const Page = () => {
<BasicCrudModal <BasicCrudModal
width={1000} width={1000}
ref={refModal} ref={refModal}
title="验收记录" title="维护项目验收"
component={ModalForm} component={ModalForm}
onCrudSuccess={successCallback} onCrudSuccess={successCallback}
/> />