From d2f54320951165c79ec0f19bf6ef0f19c8633fff Mon Sep 17 00:00:00 2001 From: shijing Date: Fri, 2 Aug 2024 11:28:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:coding#443=E4=B8=AD=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/enm_rm/stlog_form.vue | 70 ++++++++++++++++++++++----------- 1 file changed, 46 insertions(+), 24 deletions(-) diff --git a/src/views/enm_rm/stlog_form.vue b/src/views/enm_rm/stlog_form.vue index 38e79f0e..ffc5d0ba 100644 --- a/src/views/enm_rm/stlog_form.vue +++ b/src/views/enm_rm/stlog_form.vue @@ -9,7 +9,7 @@ - + - + - + - + + + + + + { + let that = this; + that.$refs.dialogForm.validate(async (valid) => { if (valid) { - this.isSaveing = true; - if (mode == "add") { - this.form.mgroup = this.mgroupId; - this.form.current_sflog = this.current_sflog; - this.form.handler = this.$TOOL.data.get("USER_INFO").id; + that.isSaveing = true; + if (that.mode == "add") { + that.form.mgroup = that.mgroupId; + that.form.current_sflog = that.current_sflog; that.$API.wpm.stlog.create - .req(this.form) + .req(that.form) .then((res) => { - this.isSaveing = false; - this.$emit("success", this.form, this.mode); - this.visible = false; - this.$message.success("操作成功"); + that.isSaveing = false; + that.$emit("success", that.form, that.mode); + that.visible = false; + that.$message.success("操作成功"); }) .catch((err) => { - this.isSaveing = false; + that.isSaveing = false; }); } else { that.$API.wpm.stlog.update - .req(this.form.id, this.form) + .req(that.form.id, that.form) .then((res) => { - this.isSaveing = false; - this.$emit("success", this.form, this.mode); - this.visible = false; - this.$message.success("操作成功"); + that.isSaveing = false; + that.$emit("success", that.form, that.mode); + that.visible = false; + that.$message.success("操作成功"); }) .catch((err) => { - this.isSaveing = false; + that.isSaveing = false; }); } }