[web-app] 增加同步按钮
This commit is contained in:
@@ -25,6 +25,9 @@
|
||||
<i nz-icon nzType="delete" nzTheme="outline"></i>
|
||||
删除
|
||||
</button>
|
||||
<button nz-button nzType="primary" (click)="sync()">
|
||||
<i nz-icon nzType="sync" nzTheme="outline"></i>
|
||||
</button>
|
||||
|
||||
<nz-table #fixedTable [nzData]="defines"
|
||||
[nzPageIndex]="pageIndex" [nzPageSize]="pageSize" [nzTotal]="total"
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user