|
@@ -2,7 +2,7 @@
|
2
|
2
|
* @Author: ysh
|
3
|
3
|
* @Date: 2024-03-19 09:24:06
|
4
|
4
|
* @LastEditors: Please set LastEditors
|
5
|
|
- * @LastEditTime: 2024-09-12 10:08:01
|
|
5
|
+ * @LastEditTime: 2025-01-08 10:12:31
|
6
|
6
|
-->
|
7
|
7
|
<template>
|
8
|
8
|
<div class="app-container">
|
|
@@ -199,8 +199,21 @@ export default {
|
199
|
199
|
handleChangeDept(deptId) {
|
200
|
200
|
this.peopleForm.userId = '';
|
201
|
201
|
this.$set(this.peopleForm, 'deptId', deptId)
|
202
|
|
- listUser({ pageSize: 999999, deptId }).then(res => {
|
|
202
|
+ listUser({ pageSize: 999999, deptId: deptId }).then(res => {
|
203
|
203
|
this.peopleForm.userList = res.rows
|
|
204
|
+ for (let a of res.rows) {
|
|
205
|
+ this.peopleForm.allDeptUserList.push(a)
|
|
206
|
+ }
|
|
207
|
+ // 去重
|
|
208
|
+ const seenIds = new Set();
|
|
209
|
+ const uniqueArray = [];
|
|
210
|
+ this.peopleForm.allDeptUserList.forEach(item => {
|
|
211
|
+ if (!seenIds.has(item.userId)) {
|
|
212
|
+ seenIds.add(item.userId);
|
|
213
|
+ uniqueArray.push(item);
|
|
214
|
+ }
|
|
215
|
+ });
|
|
216
|
+ this.peopleForm.allDeptUserList = uniqueArray
|
204
|
217
|
})
|
205
|
218
|
},
|
206
|
219
|
// 确定项目负责人
|