Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
smart
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqinghua
smart
Commits
9fe954f2
Commit
9fe954f2
authored
Jan 24, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
1afeb418
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
now-alarm.component.html
src/main/webapp/app/alarm/now-alarm/now-alarm.component.html
+2
-3
now-alarm.component.ts
src/main/webapp/app/alarm/now-alarm/now-alarm.component.ts
+9
-0
No files found.
src/main/webapp/app/alarm/now-alarm/now-alarm.component.html
View file @
9fe954f2
...
@@ -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}})
...
...
src/main/webapp/app/alarm/now-alarm/now-alarm.component.ts
View file @
9fe954f2
...
@@ -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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment