更新搜索条件对应页码

This commit is contained in:
姜棚 2021-12-14 14:55:45 +08:00
parent 6fc36d8d57
commit 8f4859daf4
3 changed files with 17 additions and 8 deletions

View File

@ -277,8 +277,8 @@ export default class acclist extends React.Component {
console.log("回车") console.log("回车")
console.log(this.state.key_word) console.log(this.state.key_word)
let data={ let data={
page: this.state.page, page: 1,
limit:this.state.limit, limit:10,
title:this.state.key_word title:this.state.key_word
} }
@ -370,6 +370,7 @@ export default class acclist extends React.Component {
spliteColor = { spliteColor = {
'#fff' '#fff'
} }
page={this.state.page}
maxheight={this.state.tableHeight} maxheight={this.state.tableHeight}
tableData = { tableData = {
this.state.distdata this.state.distdata

View File

@ -84,9 +84,13 @@ export default class acclist extends React.Component{
} }
//敲回车查询 //敲回车查询
sureFn(){ sureFn(){
this.setState({page:1});
this.setState({limit:10})
let data = { let data = {
page:this.state.page, page:1,
limit:this.state.limit, limit:10,
title:this.state.key_word title:this.state.key_word
} }
this.getTableList(data); this.getTableList(data);
@ -228,7 +232,7 @@ delFn(e,row){
maxheight={this.state.tableHeight} maxheight={this.state.tableHeight}
countbarVisible={false} countbarVisible={false}
isSwitch={false} isSwitch={false}
page={this.state.page}
dataCount={this.state.dataCount} dataCount={this.state.dataCount}
isMultiple={false} isMultiple={false}
pageChange={(e)=>{ pageChange={(e)=>{

View File

@ -92,9 +92,13 @@ export default class acclist extends React.Component{
} }
//敲回车查询 //敲回车查询
sureFn(){ sureFn(){
this.setState({page:1})
this.setState({limit:10})
let data = { let data = {
page:this.state.page, page:1,
limit:this.state.limit, limit:10,
title:this.state.key_word title:this.state.key_word
} }
this.getTableList(data); this.getTableList(data);
@ -242,7 +246,7 @@ delFn(e,row){
maxheight={this.state.tableHeight} maxheight={this.state.tableHeight}
countbarVisible={false} countbarVisible={false}
isSwitch={false} isSwitch={false}
page={this.state.page}
dataCount={this.state.dataCount} dataCount={this.state.dataCount}
isMultiple={false} isMultiple={false}
pageChange={(e)=>{ pageChange={(e)=>{