GuLiMmo
2024-01-15 98a5aa3ae4aba7302837986f5b3963966d39ddb4
src/views/evaluate/components/selectionDialog.vue
@@ -42,7 +42,8 @@
                this.notParticipateIn = []
                newVal.forEach(item => {
                    const is = this.userList.find(user => user.id === item)
                    this.notParticipateIn.push(is)
                    const { id, name, deptId, deptName, postId, postName } = is
                    this.notParticipateIn.push({ id, name, deptId, deptName, postId, postName })
                })
            }
        },
@@ -69,10 +70,12 @@
            })
        },
        submit() {
            this.participateIn = []
            this.userList.forEach(item => {
                const is = this.notParticipateIn.find(user => user.id === item.id)
                if (!is) {
                    this.participateIn.push(item)
                    const { id, name, deptId, deptName, postId, postName } = item
                    this.participateIn.push({ id, name, deptId, deptName, postId, postName })
                }
            })
            const params = {