Commit 9fe954f2 authored by wangqinghua's avatar wangqinghua

update

parent 1afeb418
...@@ -22,14 +22,13 @@ ...@@ -22,14 +22,13 @@
<div nz-col nzSpan="16"> <div nz-col nzSpan="16">
<span>当前告警数: <span>当前告警数:
<i *ngIf="!alarmTotal && alarmTotal !=0" class="anticon anticon-spin anticon-loading" <i *ngIf="!alarmTotal && alarmTotal !=0" class="anticon anticon-spin anticon-loading"
style="font-size: 15px;"></i> style="font-size: 15px;"></i>{{alarmTotal}}
{{alarmTotal}}
</span> </span>
</div> </div>
</div> </div>
<div class="tag-warn tag-form handle"> <div class="tag-warn tag-form handle">
<ng-container *ngFor="let item of warnCountList"> <ng-container *ngFor="let item of warnCountList">
<span (click)="search(item.hostid)"> <span [ngClass]="{'select-border': selectHostId == item.hostid}" (click)="search(item.hostid)">
<nz-tag *ngIf="item.level == 4 || item.level == 5" [nzColor]="color.red"></nz-tag> <nz-tag *ngIf="item.level == 4 || item.level == 5" [nzColor]="color.red"></nz-tag>
<nz-tag *ngIf="item.level == 2 || item.level == 3" [nzColor]="color.yellow"></nz-tag> <nz-tag *ngIf="item.level == 2 || item.level == 3" [nzColor]="color.yellow"></nz-tag>
{{item.name}}({{item.size}}) {{item.name}}({{item.size}})
......
...@@ -25,6 +25,12 @@ import {OverAllService} from '../../overAll/overAll.service'; ...@@ -25,6 +25,12 @@ import {OverAllService} from '../../overAll/overAll.service';
:host ::ng-deep .tag-warn .ant-tag{ :host ::ng-deep .tag-warn .ant-tag{
margin-right: 0px; margin-right: 0px;
} }
.tag-warn span.select-border{
border: 1px solid #6097b7;
border-radius: 5px;
padding: 2px;
margin-right: 5px;
}
` `
] ]
}) })
...@@ -41,6 +47,8 @@ export class NowAlarmComponent implements OnInit, OnDestroy { ...@@ -41,6 +47,8 @@ export class NowAlarmComponent implements OnInit, OnDestroy {
totalNum; totalNum;
time_; time_;
selectHostId;
constructor(public alarmSer: AlarmService, public message: NzMessageService, constructor(public alarmSer: AlarmService, public message: NzMessageService,
public overAllSer:OverAllService) { public overAllSer:OverAllService) {
} }
...@@ -58,6 +66,7 @@ export class NowAlarmComponent implements OnInit, OnDestroy { ...@@ -58,6 +66,7 @@ export class NowAlarmComponent implements OnInit, OnDestroy {
} }
search(hostid){ search(hostid){
this.selectHostId = hostid;
const obj = { const obj = {
isWaring:'yes', isWaring:'yes',
hostid:hostid, hostid:hostid,
......
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