更新搜索条件对应页码

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(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

View File

@ -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)=>{

View File

@ -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)=>{