更新营销计划列表

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