[web-app] 增加同步按钮

This commit is contained in:
tomsun28
2021-12-17 15:43:25 +08:00
parent af300de7be
commit c8943133bd
8 changed files with 38 additions and 10 deletions

View File

@@ -1,9 +1,7 @@
import { Component, OnInit } from '@angular/core';
import {NzTableQueryParams} from "ng-zorro-antd/table";
import {ActivatedRoute, Router} from "@angular/router";
import {NzModalService} from "ng-zorro-antd/modal";
import {NzNotificationService} from "ng-zorro-antd/notification";
import {NzMessageService} from "ng-zorro-antd/message";
import {AlertDefineService} from "../../../service/alert-define.service";
import {AlertDefine} from "../../../pojo/AlertDefine";
import {finalize, map} from "rxjs/operators";
@@ -23,11 +21,8 @@ import {Monitor} from "../../../pojo/Monitor";
})
export class AlertSettingComponent implements OnInit {
constructor(private route: ActivatedRoute,
private router: Router,
private modal: NzModalService,
constructor(private modal: NzModalService,
private notifySvc: NzNotificationService,
private msg: NzMessageService,
private appDefineSvc: AppDefineService,
private monitorSvc: MonitorService,
private alertDefineSvc: AlertDefineService) { }
@@ -59,6 +54,10 @@ export class AlertSettingComponent implements OnInit {
})
}
sync() {
this.loadAlertDefineTable();
}
loadAlertDefineTable() {
this.tableLoading = true;
let alertDefineInit$ = this.alertDefineSvc.getAlertDefines(this.pageIndex - 1, this.pageSize)