|
|
@@ -881,8 +881,9 @@
|
|
|
this.addForm.executeIdList = this.addForm.executeUsers.map(
|
|
|
(item) => item.userId
|
|
|
);
|
|
|
- this.addForm.groupId = this.addForm.executeUsers?.map((i) => i.groupId).join(',') || '';
|
|
|
- this.searchDeptNodeClick(this.addForm.groupId);
|
|
|
+ this.addForm.groupId = this.addForm.executeUsers[0]?.groupId || '';
|
|
|
+ const groupIds = this.addForm.executeUsers?.map((i) => i.groupId).join(',');
|
|
|
+ this.searchDeptNodeClick(groupIds);
|
|
|
} else {
|
|
|
// 班组
|
|
|
this.addForm.teamId = this.addForm.executeUsers[0]?.teamId || '';
|
|
|
@@ -985,11 +986,11 @@
|
|
|
if (params) {
|
|
|
data = Object.assign(data, params);
|
|
|
}
|
|
|
- const res = await getUserByGroupIds([params.groupId]);
|
|
|
+ const res = await getUserByGroupIds(params.groupId.split(','));
|
|
|
if (params) {
|
|
|
- this.executorList = res.list;
|
|
|
+ this.executorList = res;
|
|
|
} else {
|
|
|
- this.uerList = res.list;
|
|
|
+ this.uerList = res;
|
|
|
}
|
|
|
} catch (error) {}
|
|
|
},
|