feat(web): 护理计划 Web UI — Phase 2a-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

新增护理计划管理前端页面,接入后端 8 条孤立路由:
- API 模块: carePlans.ts(计划 + 干预项目 + 预后测量 CRUD)
- 列表页: CarePlanList.tsx(筛选/新建/编辑/删除/跳转详情)
- 详情页: CarePlanDetail.tsx(计划信息 + Items/Outcomes 双 Tab CRUD)
- 路由注册: /health/care-plans + /health/care-plans/:id
- 菜单标题: routeTitleFallback 映射

权限: health.care-plan.list / health.care-plan.manage
This commit is contained in:
iven
2026-05-04 23:26:28 +08:00
parent 2b90db4028
commit 3aa436f872
5 changed files with 885 additions and 0 deletions

View File

@@ -111,6 +111,8 @@ const routeTitleFallback: Record<string, string> = {
'/health/devices': '设备管理',
'/health/dialysis': '透析管理',
'/health/follow-up-templates': '随访模板管理',
'/health/care-plans': '护理计划',
'/health/care-plans/:id': '护理计划详情',
};
function getTitleFromMenus(path: string, menus: MenuInfo[]): string | undefined {