解决bug

This commit is contained in:
red-deng-deng 2021-11-28 18:34:00 +08:00
parent 537690bfb4
commit a1fc432ba5
5 changed files with 20 additions and 10 deletions

View File

@ -262,8 +262,7 @@ export default class acclist extends React.Component{
const reseller_data=response.data; const reseller_data=response.data;
const {total}=response; const {total}=response;
_self.setState({resellerList:reseller_data,total}); _self.setState({resellerList:reseller_data,total});
Notify.clear();
Notify.success(msg);
},err=>{ },err=>{
}); });
}).catch(err=>{ }).catch(err=>{

View File

@ -303,8 +303,7 @@ export default class acclist extends React.Component{
const codeList_data=response.data; const codeList_data=response.data;
const {total}=response; const {total}=response;
_self.setState({codeList:codeList_data,total}); _self.setState({codeList:codeList_data,total});
Notify.clear();
Notify.success(msg);
},(err)=>{ },(err)=>{
}) })

View File

@ -127,13 +127,27 @@ componentWillMount(){
} }
this.getTableList(data); this.getTableList(data);
} }
//limit
countChange(e){
this.setState({page:1,limit:e});
let data = {
page:e,
limit:this.state.limit
}
this.getTableList(data);
}
pageChange(e){ pageChange(e){
this.setState({page:e}) this.setState({page:e})
let data = { let data = {
page:e, page:e,
limit:this.state.limit limit:this.state.limit
}
} if(this.state.key_word){
data.title=this.state.key_word;
}
this.getTableList(data); this.getTableList(data);
} }

View File

@ -219,8 +219,7 @@ export default class acclistDom extends React.Component{
const accList_data=response.data; const accList_data=response.data;
const {total}=response; const {total}=response;
_self.setState({accList:accList_data,total}); _self.setState({accList:accList_data,total});
Notify.clear();
Notify.success(msg);
},(err)=>{ },(err)=>{
}) })

View File

@ -53,8 +53,7 @@ export default class acclist extends React.Component{
const roleList_data=response.data; const roleList_data=response.data;
const {total}=response; const {total}=response;
_self.setState({roleList:roleList_data,total}); _self.setState({roleList:roleList_data,total});
Notify.clear();
Notify.success(msg);
}) })
}) })
} }