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;