From bcbdf947799ae05d40f7f69db62d26e52adb6e6e Mon Sep 17 00:00:00 2001 From: shenyanpei Date: Fri, 24 Dec 2021 16:52:49 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=90=88=E8=A7=84=E8=AF=84?= =?UTF-8?q?=E4=BC=B0=E6=B5=81=E7=A8=8B-=E9=A1=B9=E7=9B=AE=E6=89=8B?= =?UTF-8?q?=E6=9C=BA=E7=AB=AF=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../processCenter/pages/phone/xmpg2/step3.vue | 33 ++++++++++--------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/src/pages/processCenter/pages/phone/xmpg2/step3.vue b/src/pages/processCenter/pages/phone/xmpg2/step3.vue index 06c812fd1..f0242772e 100644 --- a/src/pages/processCenter/pages/phone/xmpg2/step3.vue +++ b/src/pages/processCenter/pages/phone/xmpg2/step3.vue @@ -375,27 +375,28 @@ export default { this.listForm.jgUser = data[0].name } } else { - changeAssigneeNew({ - taskId: this.$route.query.taskIds, // 任务id - assignee: data[0].id, // 被委托人 - userId: this.$store.getters.userInfo.userId, // 委托人 - pId: this.$route.query.prcId // 流程实例 - }).then(res => { - this.isTransfer = false - if (res.success) { - this.$message.success('调整成功') - this.$router.push("/processCenter"); - this.processNum() - } else { - this.$message.warning(res.message) - } - }) + if (data.length > 0) { + changeAssigneeNew({ + taskId: this.$route.query.taskIds, // 任务id + assignee: data[0].id, // 被委托人 + userId: this.$store.getters.userInfo.userId, // 委托人 + pId: this.$route.query.prcId // 流程实例 + }).then(res => { + this.isTransfer = false + if (res.success) { + this.$message.success('调整成功') + this.$router.push("/processCenter"); + this.processNum() + } else { + this.$message.warning(res.message) + } + }) + } } }, }, mounted() { this.getData(); - this.getTree(); } };