@@ -145,7 +145,13 @@
minWidth: 110,
formatter: (row) => {
if (row.type == 0) {
- return row.executeUser.map((i) => i.groupName).join(',');
+ return [
+ ...new Set(
+ (row.executeUser || [])
+ .map((i) => i.groupName)
+ .filter((i) => i)
+ )
+ ].join(',');
}
return '';
@@ -115,7 +115,7 @@
if (row.planExecuteType == 0) {
- return row.executeUsers.map((i) => i.groupName).join(',');
+ return Array.from(new Set((row.executeUsers || []).map(i => i.groupName).filter(v => v))).join(',');
@@ -1285,6 +1285,7 @@
} else {
this.addForm.executeUsersIds = [];
+ this.computedDuration();
},
// 计算工时
computedDuration() {