解决分销商状态
This commit is contained in:
parent
37863e4a69
commit
04746ac453
|
@ -249,10 +249,13 @@ export default class acclist extends React.Component{
|
||||||
//获取分销商列表
|
//获取分销商列表
|
||||||
getReseller(){
|
getReseller(){
|
||||||
let _self=this;
|
let _self=this;
|
||||||
let {page,limit,key_word}=_self.state;
|
let {page,limit,key_word,status}=_self.state;
|
||||||
let data={page,limit}
|
let data={page,limit}
|
||||||
if(key_word){
|
if(key_word){
|
||||||
data.key_word=key_word;
|
data.key_word=key_word;
|
||||||
|
}
|
||||||
|
if(status){
|
||||||
|
data.status=status;
|
||||||
}
|
}
|
||||||
getResellerList(data).then(res=>{
|
getResellerList(data).then(res=>{
|
||||||
handelResponse(res,(response,msg)=>{
|
handelResponse(res,(response,msg)=>{
|
||||||
|
@ -276,6 +279,9 @@ componentDidUpdate(prevProps,prevState){
|
||||||
if(prevState.key_word!=this.state.key_word &&!this.state.key_word){
|
if(prevState.key_word!=this.state.key_word &&!this.state.key_word){
|
||||||
this.getReseller();
|
this.getReseller();
|
||||||
}
|
}
|
||||||
|
if(prevState.status!=this.state.status){
|
||||||
|
this.getReseller();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
render(){
|
render(){
|
||||||
const { current, pageSize } = this.state;
|
const { current, pageSize } = this.state;
|
||||||
|
|
Loading…
Reference in New Issue