Merge branch 'master' of codeup.aliyun.com:5f9118049cffa29cfdd3be1c/marketing/frontend

This commit is contained in:
姜棚 2021-11-25 16:25:14 +08:00
commit 6926fa0a81
1 changed files with 20 additions and 23 deletions

View File

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