feat(performance、workReport、workbench): 添加绩效表预填功能并优化工作台组件

This commit is contained in:
dk
2026-07-08 20:08:04 +08:00
parent 62b97a2fd7
commit e2094831e4
7 changed files with 187 additions and 26 deletions

View File

@@ -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'