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
0df53618
Commit
0df53618
authored
Dec 12, 2018
by
xiaowenjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改监控项
parent
05227be3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
basic-detail.component.html
...pp/overAll/basic/basic-detail/basic-detail.component.html
+4
-4
basic-detail.component.ts
.../app/overAll/basic/basic-detail/basic-detail.component.ts
+7
-6
No files found.
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.html
View file @
0df53618
...
@@ -29,19 +29,19 @@
...
@@ -29,19 +29,19 @@
</div>
</div>
<div
class=
"releative"
#
checkEle
>
<div
class=
"releative"
#
checkEle
>
<div
#
colorEle
class=
"checkTags tag-form"
>
<div
#
colorEle
class=
"checkTags tag-form"
>
<span>
<nz-tag
[
nzColor
]="
color
.
green
"
></nz-tag>
<span
(
click
)="
getCheckList
(
0
)"
>
<nz-tag
[
nzColor
]="
color
.
green
"
></nz-tag>
<i
*
ngIf=
"!checkStatus.normal && checkStatus.normal !=0"
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 15px;"
></i>
<i
*
ngIf=
"!checkStatus.normal && checkStatus.normal !=0"
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 15px;"
></i>
{{checkStatus.normal}}
{{checkStatus.normal}}
</span>
</span>
<span>
<nz-tag
[
nzColor
]="
color
.
yellow
"
></nz-tag>
<span
(
click
)="
getCheckList
(
1
)"
>
<nz-tag
[
nzColor
]="
color
.
yellow
"
></nz-tag>
<i
*
ngIf=
"!checkStatus.warning && checkStatus.warning !=0"
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 15px;"
></i>
<i
*
ngIf=
"!checkStatus.warning && checkStatus.warning !=0"
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 15px;"
></i>
{{checkStatus.warning}}
{{checkStatus.warning}}
</span>
</span>
<span>
<nz-tag
[
nzColor
]="
color
.
red
"
></nz-tag>
<span
(
click
)="
getCheckList
(
2
)"
>
<nz-tag
[
nzColor
]="
color
.
red
"
></nz-tag>
<i
*
ngIf=
"!checkStatus.high && checkStatus.high !=0"
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 15px;"
></i>
<i
*
ngIf=
"!checkStatus.high && checkStatus.high !=0"
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 15px;"
></i>
{{checkStatus.high}}
{{checkStatus.high}}
</span>
</span>
<span>
<nz-tag
[
nzColor
]="
color
.
gray
"
></nz-tag>
<span
(
click
)="
getCheckList
(
3
)"
>
<nz-tag
[
nzColor
]="
color
.
gray
"
></nz-tag>
<i
*
ngIf=
"!checkStatus.disabled && checkStatus.disabled !=0"
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 15px;"
></i>
<i
*
ngIf=
"!checkStatus.disabled && checkStatus.disabled !=0"
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 15px;"
></i>
{{checkStatus.disabled}}
{{checkStatus.disabled}}
</span>
</span>
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.ts
View file @
0df53618
...
@@ -614,7 +614,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
...
@@ -614,7 +614,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
//添加or编辑监测点 之后
//添加or编辑监测点 之后
getList
(){
getList
(){
this
.
getCheckList
();
this
.
getCheckList
(
null
);
this
.
findItemType
();
this
.
findItemType
();
}
}
...
@@ -645,7 +645,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
...
@@ -645,7 +645,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
}
}
//监测点列表
//监测点列表
getCheckList
()
{
getCheckList
(
state
)
{
this
.
getCheckStatus
();
this
.
getCheckStatus
();
this
.
loading
=
true
;
this
.
loading
=
true
;
const
data
=
{
const
data
=
{
...
@@ -654,6 +654,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
...
@@ -654,6 +654,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
obj
:{
obj
:{
applicationid
:
this
.
applicationId
,
applicationid
:
this
.
applicationId
,
hostid
:
this
.
hostId
,
hostid
:
this
.
hostId
,
state
:
state
}
}
};
};
this
.
overAllSer
.
findCheckByType
(
data
).
subscribe
(
this
.
overAllSer
.
findCheckByType
(
data
).
subscribe
(
...
@@ -668,13 +669,13 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
...
@@ -668,13 +669,13 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
//分页
//分页
change
(
e
)
{
change
(
e
)
{
this
.
pageIndex
=
e
;
this
.
pageIndex
=
e
;
this
.
getCheckList
();
this
.
getCheckList
(
null
);
}
}
changeType
(
type
)
{
changeType
(
type
)
{
this
.
pageIndex
=
1
;
this
.
pageIndex
=
1
;
this
.
applicationId
=
type
;
this
.
applicationId
=
type
;
this
.
getCheckList
();
this
.
getCheckList
(
null
);
}
}
//监测点状态
//监测点状态
...
@@ -703,7 +704,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
...
@@ -703,7 +704,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
message
.
info
(
'删除成功'
);
this
.
message
.
info
(
'删除成功'
);
this
.
getCheckList
();
this
.
getCheckList
(
null
);
}
else
{
}
else
{
this
.
message
.
info
(
res
.
errMsg
);
this
.
message
.
info
(
res
.
errMsg
);
}
}
...
@@ -805,7 +806,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
...
@@ -805,7 +806,7 @@ export class BasicDetailComponent implements OnInit, AfterViewInit {
this
.
overAllSer
.
itemUpdate
(
data
).
subscribe
(
this
.
overAllSer
.
itemUpdate
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
getCheckList
();
this
.
getCheckList
(
null
);
}
}
this
.
message
.
info
(
res
.
errMsg
);
this
.
message
.
info
(
res
.
errMsg
);
}
}
...
...
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