From 8f4859daf4bb672410220c3075c453539f355f44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=9C=E6=A3=9A?= <849005670@qq.com> Date: Tue, 14 Dec 2021 14:55:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=90=9C=E7=B4=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=AF=B9=E5=BA=94=E9=A1=B5=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/exchangepage/main/main.js | 5 +++-- src/pages/exchangepage/mytemplate/main.js | 10 +++++++--- src/pages/system/systemMould/main.js | 10 +++++++--- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/src/pages/exchangepage/main/main.js b/src/pages/exchangepage/main/main.js index 45ae5ead..e96ca55f 100644 --- a/src/pages/exchangepage/main/main.js +++ b/src/pages/exchangepage/main/main.js @@ -277,8 +277,8 @@ export default class acclist extends React.Component { console.log("回车") console.log(this.state.key_word) let data={ - page: this.state.page, - limit:this.state.limit, + page: 1, + limit:10, title:this.state.key_word } @@ -370,6 +370,7 @@ export default class acclist extends React.Component { spliteColor = { '#fff' } + page={this.state.page} maxheight={this.state.tableHeight} tableData = { this.state.distdata diff --git a/src/pages/exchangepage/mytemplate/main.js b/src/pages/exchangepage/mytemplate/main.js index 8f62f1d3..fe4ffe49 100644 --- a/src/pages/exchangepage/mytemplate/main.js +++ b/src/pages/exchangepage/mytemplate/main.js @@ -84,9 +84,13 @@ export default class acclist extends React.Component{ } //敲回车查询 sureFn(){ + + this.setState({page:1}); + this.setState({limit:10}) + let data = { - page:this.state.page, - limit:this.state.limit, + page:1, + limit:10, title:this.state.key_word } this.getTableList(data); @@ -228,7 +232,7 @@ delFn(e,row){ maxheight={this.state.tableHeight} countbarVisible={false} isSwitch={false} - + page={this.state.page} dataCount={this.state.dataCount} isMultiple={false} pageChange={(e)=>{ diff --git a/src/pages/system/systemMould/main.js b/src/pages/system/systemMould/main.js index d4ad3cfb..abf9f01f 100644 --- a/src/pages/system/systemMould/main.js +++ b/src/pages/system/systemMould/main.js @@ -92,9 +92,13 @@ export default class acclist extends React.Component{ } //敲回车查询 sureFn(){ + + this.setState({page:1}) + this.setState({limit:10}) + let data = { - page:this.state.page, - limit:this.state.limit, + page:1, + limit:10, title:this.state.key_word } this.getTableList(data); @@ -242,7 +246,7 @@ delFn(e,row){ maxheight={this.state.tableHeight} countbarVisible={false} isSwitch={false} - + page={this.state.page} dataCount={this.state.dataCount} isMultiple={false} pageChange={(e)=>{