rollback
xy 10 months ago
parent 542471c0a3
commit 9b7deffec2

@ -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)
}
}
},

Loading…
Cancel
Save