Commit 0fdd9f98 authored by wangqinghua's avatar wangqinghua

update

parent 6a2598a2
......@@ -30,7 +30,7 @@
<nz-form-item>
<nz-form-label [nzSpan]="4" nzFor="groupIds">告警分组</nz-form-label>
<nz-form-label [nzSpan]="4" nzRequired nzFor="groupIds">告警分组</nz-form-label>
<nz-form-control [nzSpan]="14">
<nz-select name="groupIds" nzPlaceHolder="告警分组" [(ngModel)]="validateForm.alertGroupId">
<ng-container *ngFor="let item of groupList;let i = index;">
......@@ -57,7 +57,7 @@
<nz-tab nzTitle="选择发送策略">
<div nz-form class="ant-advanced-search-form form-select">
<nz-form-item>
<nz-form-label [nzSpan]="4" nzFor="host">监测点状态</nz-form-label>
<nz-form-label [nzSpan]="4" nzRequired nzFor="host">监测点状态</nz-form-label>
<nz-form-control [nzSpan]="14">
<label nz-checkbox [(ngModel)]="validateForm.serious">严重</label>
<label nz-checkbox [(ngModel)]="validateForm.warn">告警</label>
......@@ -204,7 +204,7 @@
<nz-form-item>
<nz-form-label [nzSpan]="4" nzFor="def_longdata">发送信息</nz-form-label>
<nz-form-label [nzSpan]="4" nzRequired nzFor="def_longdata">发送信息</nz-form-label>
<nz-form-control [nzSpan]="14">
<textarea nz-input placeholder="发送信息" [nzAutosize]="{ minRows: 2, maxRows: 6 }" [(ngModel)]="validateForm.def_longdata"></textarea>
</nz-form-control>
......
......@@ -262,6 +262,16 @@ export class AlarmModalComponent implements OnInit {
return false;
}
if(!this.validateForm.alertGroupId ){
this.message.error("请选择告警分组");
return false;
}
if(!this.validateForm.def_longdata ){
this.message.error("请输入发送信息");
return false;
}
let number = true;
this.sendInfoList.map(e=>{
if(!e.mediaType){
......
......@@ -72,7 +72,7 @@
<td>
{{data.scrapcount}}
</td>
<td>关联事件</td>
<td>{{data.eventSum}}</td>
<td class="handle text-center">
<span (click)="goToDetail(data)">查看</span>
<span (click)="deleteInVentory(data)">删除</span>
......
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