diff --git a/web/client/src/sections/fillion/containers/luzheng.js b/web/client/src/sections/fillion/containers/luzheng.js index 57cba564..01fc708b 100644 --- a/web/client/src/sections/fillion/containers/luzheng.js +++ b/web/client/src/sections/fillion/containers/luzheng.js @@ -51,7 +51,8 @@ function Assess(props) { const getData = () => { setLoading(true) - dispatch(getRoadadministration(query)).then(res => { + console.log(query,'query') + dispatch(getRoadadministration({...query})).then(res => { if(res?.success){ setdatasource(res?.payload?.data?.rows) settotal(res?.payload?.data?.count) @@ -146,8 +147,10 @@ function Assess(props) { setLoading(true) dispatch(delRoadadministration(record.id)).then(res => { setLoading(false) + if (res.success) { - getData() + setQuery({...query, page: 1, pageSize: 10, limit: 10}) + // getData(page) } }) }} @@ -165,6 +168,7 @@ function Assess(props) { defaultPageSize: 10, showSizeChanger: false, onChange: (page, pageSize) => { + console.log(page,'page') setQuery({ ...query, page, limit: pageSize