feat(platform): add notification rules workspace

This commit is contained in:
lingniu
2026-07-04 16:27:37 +08:00
parent 33da8ba5a4
commit c060317fb0
8 changed files with 287 additions and 9 deletions

View File

@@ -495,6 +495,7 @@ export function Quality({
onOpenHistory,
onOpenRaw,
onOpenMileage,
onOpenNotificationRules,
onHealthLoaded,
onFiltersChange,
initialFilters = {}
@@ -504,6 +505,7 @@ export function Quality({
onOpenHistory?: (filters: Record<string, string>) => void;
onOpenRaw?: (filters: Record<string, string>) => void;
onOpenMileage?: (filters: Record<string, string>) => void;
onOpenNotificationRules?: () => void;
onHealthLoaded?: (health: OpsHealth) => void;
onFiltersChange?: (filters: Record<string, string>) => void;
initialFilters?: Record<string, string>;
@@ -794,7 +796,7 @@ export function Quality({
/>
</Card>
<div className="vp-alert-ops-grid">
<Card bordered title="告警触发规则">
<Card bordered title={<Space><span></span>{onOpenNotificationRules ? <Button size="small" onClick={onOpenNotificationRules}></Button> : null}</Space>}>
<Table<AlertRuleRow>
pagination={false}
dataSource={rules}