From 53998c47533a9b3a3df1e07fd93abc1bc19ca10c Mon Sep 17 00:00:00 2001 From: kerwin612 Date: Mon, 24 Jun 2024 10:01:58 +0800 Subject: [PATCH] Fixed the bug of the status filter in the alert center. --- .../alert-center/alert-center.component.html | 18 ++++++++++-------- .../alert-center/alert-center.component.ts | 4 ++-- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/web-app/src/app/routes/alert/alert-center/alert-center.component.html b/web-app/src/app/routes/alert/alert-center/alert-center.component.html index ca1e114567a..31d3418a6fc 100644 --- a/web-app/src/app/routes/alert/alert-center/alert-center.component.html +++ b/web-app/src/app/routes/alert/alert-center/alert-center.component.html @@ -65,24 +65,26 @@ style="margin-right: 10px; float: right" nzAllowClear [nzPlaceHolder]="'alert.center.filter-status' | i18n" + (ngModelChange)="loadAlertsTable()" [(ngModel)]="filterStatus" > - - - - + + + + - - - - + + + + diff --git a/web-app/src/app/routes/alert/alert-center/alert-center.component.ts b/web-app/src/app/routes/alert/alert-center/alert-center.component.ts index 46021a40cc1..18ddd785ccb 100644 --- a/web-app/src/app/routes/alert/alert-center/alert-center.component.ts +++ b/web-app/src/app/routes/alert/alert-center/alert-center.component.ts @@ -48,8 +48,8 @@ export class AlertCenterComponent implements OnInit { tableLoading: boolean = false; checkedAlertIds = new Set(); // 搜索过滤相关属性 - filterStatus: number | undefined; - filterPriority: number | undefined; + filterStatus: number = 9; + filterPriority: number = 9; filterContent: string | undefined; ngOnInit(): void {