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; }); } }