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