fix(): 月报表bug修复
parent
3199168dd5
commit
8ee3a95119
|
|
@ -201,8 +201,7 @@ const Page = () => {
|
|||
useEffect(() => {
|
||||
if (searchVal && searchVal.type1 != 1 && searchVal.type1 != 2) {
|
||||
const params = { ...searchVal }
|
||||
setRequsetUrlObj(getUrl(searchVal.type, searchVal.type1))
|
||||
requsetUrlObjRef.current = getUrl(searchVal.type, searchVal.type1)
|
||||
|
||||
getData(params)
|
||||
}
|
||||
if (searchVal.type1 == 1) {
|
||||
|
|
@ -212,6 +211,8 @@ const Page = () => {
|
|||
if (searchVal.type1 == 2) {
|
||||
getMonthData(searchVal)
|
||||
}
|
||||
setRequsetUrlObj(getUrl(searchVal.type, searchVal.type1))
|
||||
requsetUrlObjRef.current = getUrl(searchVal.type, searchVal.type1)
|
||||
}, [searchVal])
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ const Tabledata = ({tableData}) => {
|
|||
{ title: '序号', key: 'inx', dataIndex: 'inx', align: "center", render: (v, r, i) => <span>{i + 1}</span> },
|
||||
{ title: '监测点', key: 'stationCode', dataIndex: 'stationCode' },
|
||||
{ title: '缝开度(mm)', key: 'value', dataIndex: 'value'},
|
||||
{ title: '温度(°℃)', key: 'temp', dataIndex: 'temp'},
|
||||
{ title: '温度(℃)', key: 'temp', dataIndex: 'temp'},
|
||||
{ title: '模数(F)', key: 'modulus', dataIndex: 'modulus'},
|
||||
{title: '监测时间', key: 'tm', dataIndex: 'tm'},
|
||||
];
|
||||
|
|
|
|||
|
|
@ -93,7 +93,7 @@ const Page = () => {
|
|||
<BasicCrudModal
|
||||
width={1000}
|
||||
ref={refModal}
|
||||
title="验收记录"
|
||||
title="维护项目验收"
|
||||
component={ModalForm}
|
||||
onCrudSuccess={successCallback}
|
||||
/>
|
||||
|
|
|
|||
Loading…
Reference in New Issue