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
d8c3f2ca
Commit
d8c3f2ca
authored
Dec 28, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
15e05341
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
10 deletions
+13
-10
alarm-log.component.html
src/main/webapp/app/alarm/alarm-log/alarm-log.component.html
+3
-3
alarm-log.component.ts
src/main/webapp/app/alarm/alarm-log/alarm-log.component.ts
+10
-7
No files found.
src/main/webapp/app/alarm/alarm-log/alarm-log.component.html
View file @
d8c3f2ca
...
@@ -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
"
[
nz
Loading
]="
loading
"
[
nz
FrontPagination
]="
false
"
[
nzTotal
]="
totalNum
"
[
nzPageIndex
]="
pageNum
"
[
nzPageSize
]="
pageCount
"
(
nzPageIndexChange
)="
change
($
event
)"
>
<thead>
<thead>
<tr>
<tr>
<th
nzWidth=
"20%"
>
告警名称
</th>
<th
nzWidth=
"20%"
>
告警名称
</th>
...
...
src/main/webapp/app/alarm/alarm-log/alarm-log.component.ts
View file @
d8c3f2ca
...
@@ -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
.
get
WarnGroup
();
this
.
get
GroupAlarm
();
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
;
}
}
)
)
}
}
//获取
分
组
//获取
告警
组
get
WarnGroup
()
{
get
GroupAlarm
()
{
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
;
}
}
}
}
)
)
;
}
}
//获取告警组
//获取告警组
...
...
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