fix: 班组管理新增后刷新
This commit is contained in:
parent
ddfc2cb5b5
commit
a8cd681e33
|
@ -153,16 +153,17 @@ import memberDialog from "./team_form.vue";
|
|||
this.isSaveing = true;
|
||||
let res;
|
||||
if(this.type==='add'){
|
||||
res = this.$API.mtm.team.create.req(that.form);
|
||||
}else{
|
||||
res = this.$API.mtm.team.update.req(that.form.id,that.form);
|
||||
}
|
||||
if(res.err_msg){
|
||||
this.$message.error(res.err_msg);
|
||||
}else{
|
||||
this.$API.mtm.team.create.req(that.form).then(res=>{
|
||||
this.isSaveing = false;
|
||||
this.limitedVisible = false;
|
||||
this.$refs.table.refresh();
|
||||
}).catch(e=>{this.isSaveing = false;})
|
||||
}else{
|
||||
this.$API.mtm.team.update.req(that.form.id,that.form).then(res=>{
|
||||
this.isSaveing = false;
|
||||
this.limitedVisible = false;
|
||||
this.$refs.table.refresh();
|
||||
}).catch(e=>{this.isSaveing = false;})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue