fix: team 编辑后未刷新
This commit is contained in:
parent
cce2c8e395
commit
c8bde428a8
|
@ -136,16 +136,21 @@
|
|||
this.isSaveing = true;
|
||||
let res;
|
||||
if(this.type==='add'){
|
||||
res = this.$API.mtm.team.create.req(that.form);
|
||||
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{
|
||||
res = this.$API.mtm.team.update.req(that.form.id,that.form);
|
||||
}
|
||||
if(res.err_msg){
|
||||
this.$message.error(res.err_msg);
|
||||
}else{
|
||||
this.isSaveing = false;
|
||||
this.limitedVisible = false;
|
||||
this.$refs.table.refresh();
|
||||
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;
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
|
@ -154,7 +159,7 @@
|
|||
//编辑班组
|
||||
handleEdit(row){
|
||||
this.type='edit';
|
||||
this.form=row;
|
||||
this.form=Object.assign({},row);
|
||||
this.limitedVisible = true;
|
||||
},
|
||||
//删除班组
|
||||
|
|
Loading…
Reference in New Issue