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(); } };