| | |
| | | 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 }) |
| | | }) |
| | | } |
| | | }, |
| | |
| | | }) |
| | | }, |
| | | 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 = { |