更新营销计划列表

This commit is contained in:
姜棚 2021-12-22 17:55:10 +08:00
parent 0e1ff9ca43
commit 96d07caccd
1 changed files with 6 additions and 8 deletions

View File

@ -160,7 +160,7 @@ export default class acclist extends React.Component{
this.setState({page:1,limit:e})
setTimeout(()=>{
this.getpageFn();
},0);
},200);
}
getpageFn(){
let data = {
@ -478,7 +478,7 @@ export default class acclist extends React.Component{
params[prop] = e
this.setState(params)
}
// this.getPlanList(data)
this.getPlanList(data)
console.log(this.state)
}
@ -499,9 +499,7 @@ export default class acclist extends React.Component{
componentDidUpdate(prevProps,prevState){
// 参数分别为改变之前的数据状态对象
if(prevState.search!=this.state.search &&!this.state.search){
this.iptsureFn();
}
if(prevState.status!=this.state.status){
console.log(666)
this.iptsureFn();
}
}
@ -563,14 +561,14 @@ export default class acclist extends React.Component{
console.log(data)
this.setState(data)
this.setState({page:1})
this.setState({limit:10})
let params = {
page:1,
limit:10,
status:this.state.status,
key_word: this.state.search
}
// this.getPlanList(params)
this.getPlanList(params)
}