From 780a0886420c0c5e16a5bce72c3052ec469f28b7 Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 31 Dec 2024 09:20:39 +0800 Subject: [PATCH] =?UTF-8?q?fix:bx=E9=A1=B5=E9=9D=A2=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E5=8F=98=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlogb_form.vue | 5 +++-- src/views/wpm_bx/mtask.vue | 20 ++++++++++---------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/src/views/wpm_bx/mlogb_form.vue b/src/views/wpm_bx/mlogb_form.vue index 1844e5bd..91019691 100644 --- a/src/views/wpm_bx/mlogb_form.vue +++ b/src/views/wpm_bx/mlogb_form.vue @@ -98,6 +98,7 @@ export default { mounted() { this.getMtask(); this.getMaterial(); + this.form.mlog = this.mlog; }, methods: { open() { @@ -135,8 +136,7 @@ export default { }); if (arr.length > 0) { that.form.wm_in = arr[0].id; - that.form.mlog = that.mlog; - that.form.mtask = that.mtask; + // that.form.mtask = that.mtask; //提交 that.submit(); }else{ @@ -150,6 +150,7 @@ export default { that.form.mlog = that.mlog; that.$API.wpm.mlogb.in.req(that.form).then((res) => { that.$message.success("添加成功"); + that.$emit("success"); that.wm_in = ''; }).catch((err) => {}); }, diff --git a/src/views/wpm_bx/mtask.vue b/src/views/wpm_bx/mtask.vue index 469cd07e..23025f15 100644 --- a/src/views/wpm_bx/mtask.vue +++ b/src/views/wpm_bx/mtask.vue @@ -143,15 +143,15 @@ export default { }; }, watch: { - mgroupName: { - handler: function (newval,odlval) { - let that = this; - that.params.mgroup = ""; - that.apiObj = null; - that.mgroup_name = newval; - that.getMgroupInfo(); - }, - }, + // mgroupName: { + // handler: function (newval,odlval) { + // let that = this; + // that.params.mgroup = ""; + // that.apiObj = null; + // that.mgroup_name = newval; + // that.getMgroupInfo(); + // }, + // }, }, mounted() { this.getMgroupInfo(); @@ -160,7 +160,7 @@ export default { getMgroupInfo(){ let that = this; that.$API.mtm.mgroup.list - .req({ page: 0, name: that.mgroup_name }) + .req({ page: 0, name: that.mgroupName }) .then((res) => { if(res.length>0){ that.mgroupId = res[0].id;