Commit ef6801fb authored by alwayOnlie's avatar alwayOnlie

修改合同协同合同执行

parent c8d80a89
...@@ -44,7 +44,7 @@ const situationList: React.FC<Iprops> = ({ contractId }) => { ...@@ -44,7 +44,7 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
startTime: "", startTime: "",
endTime: "", endTime: "",
current: 1, current: 1,
pageSize: 5, pageSize: size,
} }
getContracInfoList(data) getContracInfoList(data)
} }
...@@ -204,16 +204,29 @@ const situationList: React.FC<Iprops> = ({ contractId }) => { ...@@ -204,16 +204,29 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
getContracInfoList(data) getContracInfoList(data)
}; };
/* 重置 */
const Reset = () => {
setPage(1);
const data = {
contractId,
orderNo: '',
orderAbstract: '',
startTime: "",
endTime: "",
current: page,
pageSize: size,
}
getContracInfoList(data)
}
useEffect(() => { useEffect(() => {
if (contractId) { if (contractId) {
let data = { let data = {
contractId, contractId,
current: 1, current: page,
pageSize: 8 pageSize: size
} }
getContracInfoList(data) getContracInfoList(data)
} }
console.log(data, '13132131')
}, [contractId]) }, [contractId])
return ( return (
<div id='docking' className='ant-card ant-card-bordered'> <div id='docking' className='ant-card ant-card-bordered'>
...@@ -229,7 +242,7 @@ const situationList: React.FC<Iprops> = ({ contractId }) => { ...@@ -229,7 +242,7 @@ const situationList: React.FC<Iprops> = ({ contractId }) => {
allowClear allowClear
onSearch={onSearch} onSearch={onSearch}
/> />
<Button style={{ paddingLeft: 10, paddingRight: 10, marginLeft: 10, marginRight: 10 }}> 重置 </Button> <Button style={{ paddingLeft: 10, paddingRight: 10, marginLeft: 10, marginRight: 10 }} onClick={Reset}> 重置 </Button>
</div> </div>
</div> </div>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment