fix: role create update 没有刷新
This commit is contained in:
parent
e5edaf1b3c
commit
cbcde10f80
|
@ -169,18 +169,17 @@
|
||||||
this.isSaveing = true;
|
this.isSaveing = true;
|
||||||
let res;
|
let res;
|
||||||
if(this.type==='add'){
|
if(this.type==='add'){
|
||||||
res = this.$API.system.role.create.req(that.addForm);
|
this.$API.system.role.create.req(that.addForm).then(res=>{
|
||||||
|
this.isSaveing = false;
|
||||||
|
this.limitedVisible = false;
|
||||||
|
this.$refs.table.refresh();
|
||||||
|
}).catch(e=>{this.isSaveing = false;})
|
||||||
}else{
|
}else{
|
||||||
res = this.$API.system.role.update.req(that.addForm.id,that.addForm);
|
this.$API.system.role.update.req(that.addForm.id,that.addForm).then(res=>{
|
||||||
}
|
this.isSaveing = false;
|
||||||
console.log(res);
|
this.limitedVisible = false;
|
||||||
debugger;
|
this.$refs.table.refresh();
|
||||||
if(res.err_msg){
|
}).catch(e=>{this.isSaveing = false;})
|
||||||
this.$message.error(res.err_msg);
|
|
||||||
}else{
|
|
||||||
this.isSaveing = false;
|
|
||||||
this.limitedVisible = false;
|
|
||||||
this.$refs.table.refresh();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in New Issue