From 96d07caccddadbf3a4b50971ce298b6f62704d48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Wed, 22 Dec 2021 17:55:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=90=A5=E9=94=80=E8=AE=A1?= =?UTF-8?q?=E5=88=92=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/plan/list/list.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js index c30fee68..00fd9425 100644 --- a/src/pages/plan/list/list.js +++ b/src/pages/plan/list/list.js @@ -160,7 +160,7 @@ export default class acclist extends React.Component{ this.setState({page:1,limit:e}) setTimeout(()=>{ this.getpageFn(); - },0); + },200); } getpageFn(){ let data = { @@ -478,7 +478,7 @@ export default class acclist extends React.Component{ params[prop] = e this.setState(params) } - // this.getPlanList(data) + this.getPlanList(data) console.log(this.state) } @@ -499,9 +499,7 @@ export default class acclist extends React.Component{ componentDidUpdate(prevProps,prevState){ // 参数分别为改变之前的数据状态对象 if(prevState.search!=this.state.search &&!this.state.search){ - this.iptsureFn(); - } - if(prevState.status!=this.state.status){ + console.log(666) this.iptsureFn(); } } @@ -563,14 +561,14 @@ export default class acclist extends React.Component{ console.log(data) this.setState(data) - + this.setState({page:1}) + this.setState({limit:10}) let params = { page:1, limit:10, - status:this.state.status, key_word: this.state.search } - // this.getPlanList(params) + this.getPlanList(params) }