解决切换页码bug

This commit is contained in:
red-deng-deng 2021-11-25 16:18:48 +08:00
parent 712d39224f
commit be5d9edc13
1 changed files with 20 additions and 23 deletions

View File

@ -41,14 +41,11 @@ export default class acclist extends React.Component{
}
//分页
onPageChange(e){
let data = {
page:e,
limit:this.state.limit,
status:this.state.status,
key_word:this.state.key_word
}
this.setState({page:e});
setTimeout(()=>{
this.getpageFn();
},0);
this.getPlanList(data);
}
componentDidMount(e){
@ -59,11 +56,6 @@ export default class acclist extends React.Component{
})
});
let data = {
page:1,
limit:10
@ -88,10 +80,15 @@ export default class acclist extends React.Component{
})
}
onCountChange(e){
this.setState({limit:e})
this.setState({page:1,limit:e})
setTimeout(()=>{
this.getpageFn();
},0);
}
getpageFn(){
let data = {
page:1,
limit:e,
page:this.state.page,
limit:this.state.limit,
status:this.state.status,
key_word:this.state.key_word
}