feat(performance、workReport、workbench): 添加绩效表预填功能并优化工作台组件
This commit is contained in:
@@ -252,7 +252,7 @@ const TASK_ACTION_ICONS: Partial<Record<Api.Project.ProjectTaskActionCode, Compo
|
||||
cancel: markRaw(IconMdiCloseCircleOutline)
|
||||
};
|
||||
|
||||
function normalizeTaskTodoDeadline(deadline: string | null) {
|
||||
function normalizeTodoDeadline(deadline: string | null) {
|
||||
if (!deadline) return null;
|
||||
|
||||
if (/^\d{4}-\d{2}-\d{2}$/.test(deadline)) {
|
||||
@@ -831,7 +831,7 @@ async function loadMyTaskItems() {
|
||||
category: 'task' as const,
|
||||
title: task.taskTitle,
|
||||
createdTime: task.createTime,
|
||||
deadline: normalizeTaskTodoDeadline(task.plannedEndDate),
|
||||
deadline: normalizeTodoDeadline(task.plannedEndDate),
|
||||
source: task.projectName,
|
||||
progressRate: task.progressRate,
|
||||
priority: mapTaskTodoPriority(task.priority),
|
||||
@@ -861,7 +861,7 @@ async function loadPersonalTodoItems() {
|
||||
category: 'personal',
|
||||
title: item.taskTitle,
|
||||
createdTime: item.createTime,
|
||||
deadline: item.plannedEndDate,
|
||||
deadline: normalizeTodoDeadline(item.plannedEndDate),
|
||||
source: '我的事项',
|
||||
progressRate: item.progressRate,
|
||||
routeKey: 'personal-center_my-item'
|
||||
|
||||
Reference in New Issue
Block a user