From 02979d3e8c8d958b1e986439e7c7d38d737b9094 Mon Sep 17 00:00:00 2001 From: zhangds Date: Mon, 18 Apr 2022 10:06:41 +0800 Subject: [PATCH] =?UTF-8?q?1)=20=E4=BC=98=E5=8C=96=E6=98=A0=E5=B0=84?= =?UTF-8?q?=E5=88=86=E9=94=80=E5=95=86=E6=90=9C=E7=B4=A2=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../distributor/adddistributorinfo/adddistributorinfo.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/pages/distributor/adddistributorinfo/adddistributorinfo.js b/src/pages/distributor/adddistributorinfo/adddistributorinfo.js index c9206a2f..d3b1cb47 100644 --- a/src/pages/distributor/adddistributorinfo/adddistributorinfo.js +++ b/src/pages/distributor/adddistributorinfo/adddistributorinfo.js @@ -281,18 +281,23 @@ export default class adduserinfo extends React.Component { console.log("e onDirectChange", e); let model2 = this.state.model; model2.direct_reseller_id = e; + this.setState({ + page: 1, + }); this.setState({ model: model2, }); } onChangePageSelect(closeLoading) { let that = this; + let pages = that.state.page; + console.log("pages ==>", pages); this.setState({ - page: that.state.page + 1, + page: pages + 1, }); let params = { limit: this.state.limit, - page: that.state.page + 1, + page: pages + 1, }; this.directList(params); closeLoading && closeLoading();