feat(mp): 医护端告警列表/详情页 + DoctorHome 告警 banner 增强
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

- 新增告警列表页:按状态筛选、分页、严重程度/状态标签
- 新增告警详情页:完整信息展示 + 确认/忽略/恢复操作
- doctor.ts 新增 listAlerts/acknowledgeAlert/dismissAlert/resolveAlert API
- DoctorHome 告警 banner 跳转目标改为告警列表页
- 注册 alerts/index + alerts/detail/index 到 doctor subPackage
This commit is contained in:
iven
2026-04-28 20:05:55 +08:00
parent 1cf5f59d8c
commit 10c79c5e39
7 changed files with 767 additions and 11 deletions

View File

@@ -10,13 +10,12 @@ export default defineAppConfig({
'pages/appointment/index',
'pages/appointment/create/index',
'pages/appointment/detail/index',
'pages/article/index',
'pages/legal/user-agreement',
'pages/legal/privacy-policy',
],
subPackages: [
{
root: 'pages/health',
root: 'pages/pkg-health',
pages: ['trend/index', 'input/index', 'daily-monitoring/index'],
},
{
@@ -26,26 +25,43 @@ export default defineAppConfig({
'consultation/index', 'consultation/detail/index',
'followup/index', 'followup/detail/index',
'report/index', 'report/detail/index',
'alerts/index', 'alerts/detail/index',
],
},
{
root: 'pages/mall',
root: 'pages/pkg-mall',
pages: ['exchange/index', 'orders/index', 'detail/index'],
},
{
root: 'pages/profile',
root: 'pages/pkg-profile',
pages: [
'family/index', 'family-add/index', 'reports/index',
'followups/index', 'medication/index', 'settings/index',
],
},
{
root: 'pages',
pages: [
'article/detail/index', 'ai-report/list/index',
'ai-report/detail/index', 'report/detail/index',
'followup/detail/index', 'events/index', 'device-sync/index',
],
root: 'pages/ai-report',
pages: ['list/index', 'detail/index'],
},
{
root: 'pages/article',
pages: ['index', 'detail/index'],
},
{
root: 'pages/report',
pages: ['detail/index'],
},
{
root: 'pages/followup',
pages: ['detail/index'],
},
{
root: 'pages/events',
pages: ['index'],
},
{
root: 'pages/device-sync',
pages: ['index'],
},
],
tabBar: {