From 148584b8aa16627d5a34bc4da6f3623993f9e18f Mon Sep 17 00:00:00 2001 From: shijing Date: Tue, 3 Dec 2024 09:45:01 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E6=97=A5=E5=BF=97=E4=B8=AD=E5=B7=A5?= =?UTF-8?q?=E6=AE=B5=E9=97=AE=E9=A2=98=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/wpm_gx/mtask.vue | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/views/wpm_gx/mtask.vue b/src/views/wpm_gx/mtask.vue index 6fd2d0e4..4223eb7a 100644 --- a/src/views/wpm_gx/mtask.vue +++ b/src/views/wpm_gx/mtask.vue @@ -146,16 +146,17 @@ export default { that.$API.mtm.mgroup.list .req({ page: 0, name: that.mgroupName }) .then((res) => { - if(res.length != 1){ + if(res.length>0){ + that.mgroupId = res[0].id; + that.deptId = res[0].belong_dept; + that.processId = res[0].process; + that.processCate = res[0].process_cate; + that.params.mgroup = res[0].id; + that.apiObj = this.$API.pm.mtask.list; + }else{ that.$message.error("获取工段错误"); return; } - that.mgroupId = res[0].id; - that.deptId = res[0].belong_dept; - that.processId = res[0].process; - that.processCate = res[0].process_cate; - that.params.mgroup = res[0].id; - that.apiObj = this.$API.pm.mtask.list; }); }, methods: {