From 9b7deffec223931b91ed8ecbf34257a29692edb8 Mon Sep 17 00:00:00 2001 From: xy <271556543@qq.com> Date: Fri, 7 Feb 2025 15:18:37 +0800 Subject: [PATCH] bug --- src/views/flow/components/assign.vue | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/flow/components/assign.vue b/src/views/flow/components/assign.vue index d09ad70..50f8ec4 100644 --- a/src/views/flow/components/assign.vue +++ b/src/views/flow/components/assign.vue @@ -171,13 +171,15 @@ export default { nodePick() { this.pickUsers = this.node2Users.get(this.form.next_node_id) - this.form.user_id = '' if (!this.isJointlySign) { + this.form.user_id = '' if (this.pickUsers.length === 1) { if (this.pickUsers[0].users?.length === 1) { this.form.user_id = this.pickUsers[0].users[0].id } } + } else { + this.form.user_id = [] } }, handleCheckAllChange(val) { @@ -185,6 +187,7 @@ export default { this.isIndeterminate = false; }, handleCheckedUsersChange(value) { + console.log(value) let checkedCount = value.length; let dataLength = this.pickUsers?.map(i => i.users.map(j => j.id))?.flat()?.length ?? 0; this.checkAll = checkedCount === dataLength @@ -248,6 +251,7 @@ export default { }, async submit() { + console.log(this.form) try { if(this.isLastNode) { if (this.multiple) { @@ -279,7 +283,7 @@ export default { this.$emit('update:visible', false) this.$emit('refresh') } catch(err) { - + console.error(err) } } },