Commit d8c3f2ca authored by wangqinghua's avatar wangqinghua

update

parent 15e05341
...@@ -22,14 +22,14 @@ ...@@ -22,14 +22,14 @@
<div nz-col nzSpan="3"> <div nz-col nzSpan="3">
<nz-select style="width: 100%;" nzShowSearch nzAllowClear nzPlaceHolder="选择发送方式" [(ngModel)]="obj.mediatypeids"> <nz-select style="width: 100%;" nzShowSearch nzAllowClear nzPlaceHolder="选择发送方式" [(ngModel)]="obj.mediatypeids">
<ng-container *ngFor="let item of sendList"> <ng-container *ngFor="let item of sendList">
<nz-option nzLabel="{{item.description}}" nzValue="{{item.mediatypeid}}"></nz-option> <nz-option [nzLabel]="item.description" [nzValue]="item.mediatypeid"></nz-option>
</ng-container> </ng-container>
</nz-select> </nz-select>
</div> </div>
<div nz-col nzSpan="3"> <div nz-col nzSpan="3">
<nz-select style="width: 100%;" nzShowSearch nzAllowClear nzPlaceHolder="选择告警组" [(ngModel)]="obj.alertGroupId"> <nz-select style="width: 100%;" nzShowSearch nzAllowClear nzPlaceHolder="选择告警组" [(ngModel)]="obj.alertGroupId">
<ng-container *ngFor="let item of groupList;"> <ng-container *ngFor="let item of groupList;">
<nz-option nzLabel="{{item.name}}" nzValue="{{item.groupid}}"></nz-option> <nz-option [nzLabel]="item.name" [nzValue]="item.id"></nz-option>
</ng-container> </ng-container>
</nz-select> </nz-select>
</div> </div>
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
</div> </div>
</div> </div>
<nz-table #nzTable [nzData]="logList" [nzFrontPagination]="false" [nzTotal]="totalNum" [nzPageIndex]="pageNum" [nzPageSize]="pageCount" (nzPageIndexChange)="change($event)"> <nz-table #nzTable [nzData]="logList" [nzLoading]="loading" [nzFrontPagination]="false" [nzTotal]="totalNum" [nzPageIndex]="pageNum" [nzPageSize]="pageCount" (nzPageIndexChange)="change($event)">
<thead> <thead>
<tr> <tr>
<th nzWidth="20%">告警名称</th> <th nzWidth="20%">告警名称</th>
......
...@@ -59,6 +59,7 @@ export class AlarmLogComponent implements OnInit { ...@@ -59,6 +59,7 @@ export class AlarmLogComponent implements OnInit {
isVisible = false; isVisible = false;
title; title;
content; content;
loading = false;
constructor(public alarmSer: AlarmService,public overAllSer:OverAllService,public message:NzMessageService, constructor(public alarmSer: AlarmService,public overAllSer:OverAllService,public message:NzMessageService,
public datePipe:DatePipe,public modalSer:NzModalService) { public datePipe:DatePipe,public modalSer:NzModalService) {
const today = new Date(); const today = new Date();
...@@ -68,12 +69,13 @@ export class AlarmLogComponent implements OnInit { ...@@ -68,12 +69,13 @@ export class AlarmLogComponent implements OnInit {
ngOnInit() { ngOnInit() {
this.getType(); this.getType();
this.getWarnGroup(); this.getGroupAlarm();
this.getList(); this.getList();
} }
//获取list //获取list
getList(){ getList(){
this.loading = true;
const data = { const data = {
"eventPage":this.pageNum, "eventPage":this.pageNum,
"pageRecords":this.pageCount, "pageRecords":this.pageCount,
...@@ -97,19 +99,20 @@ export class AlarmLogComponent implements OnInit { ...@@ -97,19 +99,20 @@ export class AlarmLogComponent implements OnInit {
}else{ }else{
this.message.info(res.errMsg); this.message.info(res.errMsg);
} }
this.loading = false;
} }
) )
} }
//获取 //获取告警
getWarnGroup(){ getGroupAlarm() {
this.overAllSer.findGroup().subscribe( this.alarmSer.alertGroupFind().subscribe(
(res)=>{ (res) => {
if(res.errCode == 10000){ if (res.errCode == 10000) {
this.groupList = res.data; this.groupList = res.data;
} }
} }
) );
} }
//获取告警组 //获取告警组
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment