feat(web): 实时告警仪表盘页面 + SSE Hook + 告警详情面板
- 新增 AlertDashboard 页面:实时告警列表 + 统计摘要 + 详情面板 - 新增 useAlertSSE Hook:封装 SSE 连接、自动重连、事件分发 - 新增 AlertDetailPanel 组件:告警详情展示 + 确认/忽略/恢复操作 - alertApi.list 添加 doctor_id 参数支持 - 注册 /health/alert-dashboard 路由 + 面包屑映射
This commit is contained in:
@@ -59,7 +59,7 @@ export interface UpdateAlertRuleReq {
|
||||
|
||||
// --- API ---
|
||||
export const alertApi = {
|
||||
list: (params?: { patient_id?: string; status?: string; page?: number; page_size?: number }) =>
|
||||
list: (params?: { patient_id?: string; doctor_id?: string; status?: string; page?: number; page_size?: number }) =>
|
||||
client.get('/health/alerts', { params }).then((r) => r.data.data as PaginatedResponse<Alert>),
|
||||
|
||||
acknowledge: (id: string, version: number) =>
|
||||
|
||||
Reference in New Issue
Block a user