From a8cd681e333211ff672394c1efb7ff7308c0d503 Mon Sep 17 00:00:00 2001 From: caoqianming Date: Fri, 22 Dec 2023 09:40:18 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=8F=AD=E7=BB=84=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=90=8E=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/hrm/team_photon.vue | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/views/hrm/team_photon.vue b/src/views/hrm/team_photon.vue index 60066829..859a70e4 100644 --- a/src/views/hrm/team_photon.vue +++ b/src/views/hrm/team_photon.vue @@ -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); + 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;}) } } })