任务详情页面优化

dianlixunjian
刘妍 2024-09-28 14:23:32 +08:00
parent d40ca250dc
commit 1d03241839
1 changed files with 6 additions and 3 deletions

View File

@ -281,7 +281,7 @@
name: task.unitName,
userIds: [],
userNames: [],
des: '正在审核',
des: task.unitName.replace('待', '正在'),
time: `当前-创建时间:${dateFormat(task.createDate)}`,
type: 'blue',
isFinish: false,
@ -297,6 +297,7 @@
des: '正在查阅',
time: `当前-创建时间:${dateFormat(task.createDate)}`,
type: 'blue',
taskType: task.type,
};
taskMap[task.unitId + task.type].userIds.push(task.userId);
taskMap[task.unitId + task.type].userNames.push(task.userName);
@ -324,6 +325,7 @@
des: '正在审核',
time: `当前-创建时间:${dateFormat(task.createDate)}`,
type: 'blue',
taskType: task.type,
};
taskMap[task.unitId].userIds.push(task.userId);
nodeMap[task.unitId][0].userIds.push(task.userId);
@ -362,6 +364,7 @@
des: log.des ? log.des : log.operationName,
time: dateFormat(log.createDate),
type: 'gray',
taskType: log.taskType,
});
nodeMap[log.unitId] = nodeMap[log.unitId] || [];
@ -391,8 +394,8 @@
}
},
);
designerData.logs = res;
console.log(res);
designerData.logs = res.filter((item) => item.taskType == 1 || item.taskType == 7);
designerData.nodeMap = nodeMap;
designerData.userLogs = userLogs.sort(function (a, b) {
return a.time < b.time ? -1 : 1;