Browse Source

路政管理删除跳转到第一面

dev
dengyinhuan 1 year ago
parent
commit
1f2cd35dd0
  1. 8
      web/client/src/sections/fillion/containers/luzheng.js

8
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

Loading…
Cancel
Save