From 1f2cd35dd0724e859dbba52bf35299f9c2985d63 Mon Sep 17 00:00:00 2001 From: dengyinhuan Date: Fri, 4 Aug 2023 19:31:34 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B7=AF=E6=94=BF=E7=AE=A1=E7=90=86=E5=88=A0?= =?UTF-8?q?=E9=99=A4=E8=B7=B3=E8=BD=AC=E5=88=B0=E7=AC=AC=E4=B8=80=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/client/src/sections/fillion/containers/luzheng.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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