From e133dc7cf809bc4b0677c6de9ef1a672247afeec Mon Sep 17 00:00:00 2001 From: shijing Date: Thu, 26 Dec 2024 09:39:19 +0800 Subject: [PATCH] =?UTF-8?q?fix:bx=E6=97=A5=E5=BF=97=E7=9B=B8=E5=85=B3?= =?UTF-8?q?=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_bx/mlogs.vue | 30 +++++++++++++++++------------- 1 file changed, 17 insertions(+), 13 deletions(-) diff --git a/src/views/wpm_bx/mlogs.vue b/src/views/wpm_bx/mlogs.vue index 53ab5740..b0395724 100644 --- a/src/views/wpm_bx/mlogs.vue +++ b/src/views/wpm_bx/mlogs.vue @@ -171,6 +171,10 @@ export default { type: String, default: "", }, + mgroupId:{ + type: String, + default: "", + } }, name: "mlog", components: { @@ -203,31 +207,31 @@ export default { that.params.mgroup = ""; that.apiObj = null; that.mgroup_name = newval; - console.log("mgroup_name",this.mgroup_name); - console.log("newval",newval); - console.log("odlval",odlval); - that.getMgroupInfo(); + // that.getMgroupInfo(); }, }, }, mounted() { - this.mgroup_name = this.mgroupName; - this.getMgroupInfo(); - console.log("mgroupName",this.mgroupName); + let that = this; + that.params.mgroup =that.mgroupId; + that.apiObj = that.$API.wpm.mlog.list; + // this.mgroup_name = this.mgroupName; + // this.getMgroupInfo(); + // console.log("mgroupName",this.mgroupName); }, methods: { getMgroupInfo(){ let that = this; - that.$API.mtm.mgroup.list.req({ page: 0, name: that.mgroup_name }).then((res) => { + that.$API.mtm.mgroup.item.req(that.mgroupId).then((res) => { if (res.length < 1) { that.$message.error("获取工段错误"); return; } - that.mgroupId = res[1].id; - that.deptId = res[1].belong_dept; - that.processId = res[1].process; - that.processCate = res[1].process_cate; - that.params.mgroup = res[1].id; + that.mgroupId = res.id; + that.deptId = res.belong_dept; + that.processId = res.process; + that.processCate = res.process_cate; + that.params.mgroup = res.id; that.apiObj = that.$API.wpm.mlog.list; that.$refs.table.refresh(); });