feat: 宏观状态动态从主干任务获取+任务树assignee中文姓名映射(后端+前端)

This commit is contained in:
2026-08-10 11:25:44 +08:00
parent c0fe7c94bb
commit b43bded0ef
4 changed files with 65 additions and 2 deletions

View File

@ -413,6 +413,7 @@ export default function AdminTasksPage() {
tasks={tree.task_tree}
onAction={setModalTarget}
currentUser={currentUser}
assigneeNames={tree.assignee_names}
/>
) : (
<div className="flex flex-col items-center justify-center py-12 text-gray-400">

View File

@ -99,4 +99,6 @@ export interface ProductScanResponse {
top_level_tasks: TaskSummary[];
/** 完整递归任务树 — 供十字矩阵树状图渲染 */
task_tree: TaskResponse[];
/** 🔧 username→中文姓名映射 */
assignee_names: Record<string, string>;
}