rollback
xy 10 months ago
parent 542471c0a3
commit 9b7deffec2

@ -171,13 +171,15 @@ export default {
nodePick() { nodePick() {
this.pickUsers = this.node2Users.get(this.form.next_node_id) this.pickUsers = this.node2Users.get(this.form.next_node_id)
this.form.user_id = ''
if (!this.isJointlySign) { if (!this.isJointlySign) {
this.form.user_id = ''
if (this.pickUsers.length === 1) { if (this.pickUsers.length === 1) {
if (this.pickUsers[0].users?.length === 1) { if (this.pickUsers[0].users?.length === 1) {
this.form.user_id = this.pickUsers[0].users[0].id this.form.user_id = this.pickUsers[0].users[0].id
} }
} }
} else {
this.form.user_id = []
} }
}, },
handleCheckAllChange(val) { handleCheckAllChange(val) {
@ -185,6 +187,7 @@ export default {
this.isIndeterminate = false; this.isIndeterminate = false;
}, },
handleCheckedUsersChange(value) { handleCheckedUsersChange(value) {
console.log(value)
let checkedCount = value.length; let checkedCount = value.length;
let dataLength = this.pickUsers?.map(i => i.users.map(j => j.id))?.flat()?.length ?? 0; let dataLength = this.pickUsers?.map(i => i.users.map(j => j.id))?.flat()?.length ?? 0;
this.checkAll = checkedCount === dataLength this.checkAll = checkedCount === dataLength
@ -248,6 +251,7 @@ export default {
}, },
async submit() { async submit() {
console.log(this.form)
try { try {
if(this.isLastNode) { if(this.isLastNode) {
if (this.multiple) { if (this.multiple) {
@ -279,7 +283,7 @@ export default {
this.$emit('update:visible', false) this.$emit('update:visible', false)
this.$emit('refresh') this.$emit('refresh')
} catch(err) { } catch(err) {
console.error(err)
} }
} }
}, },

Loading…
Cancel
Save