perf(health): 随访列表内联负责人名称 — 消除 N+1 查询
Some checks failed
CI / rust-check (push) Has been cancelled
CI / rust-test (push) Has been cancelled
CI / frontend-build (push) Has been cancelled
CI / security-audit (push) Has been cancelled

follow_up list_tasks 批量查询 users 表获取 assigned_to_name,
前端移除 doctorLabels 逐条请求缓存,直接使用后端内联字段。
This commit is contained in:
iven
2026-04-27 13:22:46 +08:00
parent 2519ad8fee
commit a5646ddbb3
4 changed files with 36 additions and 30 deletions

View File

@@ -7,6 +7,7 @@ export interface FollowUpTask {
patient_id: string;
assigned_to?: string;
patient_name?: string;
assigned_to_name?: string;
follow_up_type: string;
planned_date: string;
status: string;