解决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 {total}=response;
_self.setState({resellerList:reseller_data,total});
Notify.clear();
Notify.success(msg);
},err=>{
});
}).catch(err=>{

View File

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

View File

@ -127,12 +127,26 @@ componentWillMount(){
}
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){
this.setState({page:e})
let data = {
page:e,
limit:this.state.limit
}
if(this.state.key_word){
data.title=this.state.key_word;
}
this.getTableList(data);
}

View File

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

View File

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