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
ea376401
Commit
ea376401
authored
Jan 02, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
752f9630
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
58 deletions
+71
-58
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+65
-55
work-handle.component.html
...in/webapp/app/work/work-handle/work-handle.component.html
+5
-2
documentation.css
src/main/webapp/content/css/documentation.css
+1
-1
No files found.
src/main/webapp/app/overAll/basic/basic.component.html
View file @
ea376401
...
...
@@ -16,8 +16,10 @@
</nz-breadcrumb>
</div>
<div
nz-col
nzSpan=
"10"
class=
"search-input text-right"
>
<input
(
keyup
.
enter
)="
search
('')"
type=
"text"
nz-input
[(
ngModel
)]="
searchName
"
placeholder=
"输入资源名称"
>
<button
(
click
)="
search
('')"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
<input
(
keyup
.
enter
)="
search
('')"
type=
"text"
nz-input
[(
ngModel
)]="
searchName
"
placeholder=
"输入资源名称"
>
<button
(
click
)="
search
('')"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
<div
nz-col
nzSpan=
"2"
class=
"text-right"
>
<button
(
click
)="
ngOnInit
()"
nz-button
nzType=
"primary"
><i
class=
"anticon anticon-sync"
></i></button>
...
...
@@ -41,7 +43,7 @@
<i
*
ngIf=
"!red && red != 0"
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 15px;"
></i>
{{red}}
</span>
<span
(
click
)="
search
('
1
')"
>
<nz-tag
[
nzColor
]="
color
.
gray
"
></nz-tag>
<span
(
click
)="
search
('
1
')"
>
<nz-tag
[
nzColor
]="
color
.
gray
"
></nz-tag>
<i
*
ngIf=
"!gray && gray!=0"
class=
"anticon anticon-spin anticon-loading"
style=
"font-size: 15px;"
></i>
{{gray}}
</span>
...
...
@@ -54,11 +56,15 @@
</div>
<div
nz-col
nzSpan=
"12"
class=
"text-right"
>
<button
nz-button
nzType=
"default"
(
click
)="
showGroupModal
()"
*
ngIf=
"selectedValue == 'group'"
>
<i
class=
"anticon anticon-plus-circle-o"
></i>
添加分组
<i
class=
"anticon anticon-plus-circle-o"
></i>
添加分组
</button>
<button
(
click
)="
openBatchHost
(
1
,'停止')"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-pause-circle-o"
></i>
停止监控
</button>
<button
(
click
)="
openBatchHost
(
0
,'开启')"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-play-circle-o"
></i>
开启监控
</button>
<button
(
click
)="
batchDeleteConfirm
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-close-circle-o"
></i>
删除资源
</button>
<button
(
click
)="
openBatchHost
(
1
,'停止')"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-pause-circle-o"
></i>
停止监控
</button>
<button
(
click
)="
openBatchHost
(
0
,'开启')"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-play-circle-o"
></i>
开启监控
</button>
<button
(
click
)="
batchDeleteConfirm
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-close-circle-o"
></i>
删除资源
</button>
</div>
</div>
<nz-table
#
nzTable
[
nzData
]="
dataSet
"
nzSingleSort
[
nzLoading
]="
loading
"
[
nzShowPagination
]="
frontPagination
"
>
...
...
@@ -101,11 +107,12 @@
<td
class=
"round-tag tag-form default"
>
<ng-container
*
ngIf=
"item.status == 1"
>
<nz-tag
[
nzColor
]="
color
.
gray
"
></nz-tag>
<nz-tag
[
nzColor
]="
color
.
gray
"
></nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.status == 0"
>
<nz-tag
*
ngIf=
"item.maxLevel == 4 || item.maxLevel == 5"
[
nzColor
]="
color
.
red
"
></nz-tag>
<nz-tag
*
ngIf=
"item.maxLevel == 2 || item.maxLevel == 3"
[
nzColor
]="
color
.
yellow
"
></nz-tag>
<nz-tag
*
ngIf=
"item.maxLevel == 2 || item.maxLevel == 3"
[
nzColor
]="
color
.
yellow
"
></nz-tag>
<nz-tag
*
ngIf=
"item.maxLevel < 2 "
[
nzColor
]="
color
.
green
"
></nz-tag>
</ng-container>
...
...
@@ -114,8 +121,8 @@
<span
(
click
)="
goTOInventory
(
item
?.
inventory
?.
id
)"
>
{{item?.inventory?.name}}
</span>
</td>
<!--<td class="round-tag tag-form" >-->
<!--<nz-tag *ngIf="item.status == 0" [nzColor]="color.green"></nz-tag>-->
<!--<nz-tag *ngIf="item.status == 1" [nzColor]="color.gray"></nz-tag>-->
<!--<nz-tag *ngIf="item.status == 0" [nzColor]="color.green"></nz-tag>-->
<!--<nz-tag *ngIf="item.status == 1" [nzColor]="color.gray"></nz-tag>-->
<!--</td>-->
<td
class=
"default"
>
<ng-container
*
ngIf=
"item.level"
>
...
...
@@ -210,18 +217,19 @@
<td
class=
"round-tag tag-form"
>
<ng-container
*
ngIf=
"item.status == 1"
>
<nz-tag
[
nzColor
]="
color
.
gray
"
></nz-tag>
<nz-tag
[
nzColor
]="
color
.
gray
"
></nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.status == 0"
>
<nz-tag
*
ngIf=
"item.maxLevel == 4 || item.maxLevel == 5"
[
nzColor
]="
color
.
red
"
></nz-tag>
<nz-tag
*
ngIf=
"item.maxLevel == 2 || item.maxLevel == 3"
[
nzColor
]="
color
.
yellow
"
></nz-tag>
<nz-tag
*
ngIf=
"item.maxLevel == 2 || item.maxLevel == 3"
[
nzColor
]="
color
.
yellow
"
></nz-tag>
<nz-tag
*
ngIf=
"item.maxLevel < 2 "
[
nzColor
]="
color
.
green
"
></nz-tag>
</ng-container>
</td>
<td>
{{item?.inventory?.name}}
</td>
<!--<nz-tag *ngIf="item.status == 0" [nzColor]="color.green"></nz-tag>-->
<!--<nz-tag *ngIf="item.status == 1" [nzColor]="color.gray"></nz-tag>-->
<!--<nz-tag *ngIf="item.status == 0" [nzColor]="color.green"></nz-tag>-->
<!--<nz-tag *ngIf="item.status == 1" [nzColor]="color.gray"></nz-tag>-->
<td
class=
"default"
>
<ng-container
*
ngIf=
"item.level"
>
<ng-container
*
ngIf=
"item.available == 0"
>
...
...
@@ -281,7 +289,8 @@
<li
(
click
)="
showTempStop
(
item
)"
nz-menu-item
><a>
临时暂停
</a></li>
<li
(
click
)="
openHost
(
item
)"
nz-menu-item
><a>
<ng-container
*
ngIf=
"item.status == 1"
>
开启
</ng-container>
<ng-container
*
ngIf=
"item.status == 0"
>
停止
</ng-container>
监控
<ng-container
*
ngIf=
"item.status == 0"
>
停止
</ng-container>
监控
</a></li>
<li
nz-menu-item
(
click
)="
goDetail
(
item
)"
><a>
查看监测点
</a></li>
<li
(
click
)="
showAlarm
(
item
)"
nz-menu-item
><a>
添加告警
</a></li>
...
...
@@ -305,11 +314,11 @@
</td>
<td
class=
"round-tag tag-form default"
>
<ng-container
*
ngIf=
"item.status == 1"
>
<nz-tag
[
nzColor
]="
color
.
gray
"
></nz-tag>
<nz-tag
[
nzColor
]="
color
.
gray
"
></nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.status == 0"
>
<nz-tag
*
ngIf=
"item.maxLevel == 4 || item.maxLevel == 5"
[
nzColor
]="
color
.
red
"
></nz-tag>
<nz-tag
*
ngIf=
"item.maxLevel == 2 || item.maxLevel == 3"
[
nzColor
]="
color
.
yellow
"
></nz-tag>
<nz-tag
*
ngIf=
"item.maxLevel == 2 || item.maxLevel == 3"
[
nzColor
]="
color
.
yellow
"
></nz-tag>
<nz-tag
*
ngIf=
"item.maxLevel < 2 "
[
nzColor
]="
color
.
green
"
></nz-tag>
</ng-container>
...
...
@@ -317,45 +326,45 @@
<td>
{{item?.inventory?.name}}
</td>
<td
class=
"default"
>
<ng-container
*
ngIf=
"item.available == 0"
>
<nz-tag>
AGENT
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.available == 1"
>
<nz-tag
[
nzColor
]="'#
3bae6a
'"
>
AGENT
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.available == 2"
>
<nz-tag
[
nzColor
]="'#
d44f51
'"
>
AGENT
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.available == 0"
>
<nz-tag>
AGENT
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.available == 1"
>
<nz-tag
[
nzColor
]="'#
3bae6a
'"
>
AGENT
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.available == 2"
>
<nz-tag
[
nzColor
]="'#
d44f51
'"
>
AGENT
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.snmp_available == 0"
>
<nz-tag>
SNMP
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.snmp_available == 1"
>
<nz-tag
[
nzColor
]="'#
3bae6a
'"
>
SNMP
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.snmp_available == 2"
>
<nz-tag
[
nzColor
]="'#
d44f51
'"
>
SNMP
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.snmp_available == 0"
>
<nz-tag>
SNMP
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.snmp_available == 1"
>
<nz-tag
[
nzColor
]="'#
3bae6a
'"
>
SNMP
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.snmp_available == 2"
>
<nz-tag
[
nzColor
]="'#
d44f51
'"
>
SNMP
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.jmx_available == 0"
>
<nz-tag>
JMX
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.jmx_available == 1"
>
<nz-tag
[
nzColor
]="'#
3bae6a
'"
>
JMX
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.jmx_available == 2"
>
<nz-tag
[
nzColor
]="'#
d44f51
'"
>
JMX
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.jmx_available == 0"
>
<nz-tag>
JMX
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.jmx_available == 1"
>
<nz-tag
[
nzColor
]="'#
3bae6a
'"
>
JMX
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.jmx_available == 2"
>
<nz-tag
[
nzColor
]="'#
d44f51
'"
>
JMX
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.ipmi_available == 0"
>
<nz-tag>
IPMI
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.ipmi_available == 1"
>
<nz-tag
[
nzColor
]="'#
3bae6a
'"
>
IPMI
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.ipmi_available == 2"
>
<nz-tag
[
nzColor
]="'#
d44f51
'"
>
IPMI
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.ipmi_available == 0"
>
<nz-tag>
IPMI
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.ipmi_available == 1"
>
<nz-tag
[
nzColor
]="'#
3bae6a
'"
>
IPMI
</nz-tag>
</ng-container>
<ng-container
*
ngIf=
"item.ipmi_available == 2"
>
<nz-tag
[
nzColor
]="'#
d44f51
'"
>
IPMI
</nz-tag>
</ng-container>
</td>
<td
class=
"handle"
>
<span
(
click
)="
showBasicCheckModal
(
item
.
hostid
,
item
.
host
)"
>
添加监测点
</span>
...
...
@@ -368,7 +377,8 @@
<li
(
click
)="
showTempStop
(
item
)"
nz-menu-item
><a>
临时暂停
</a></li>
<li
(
click
)="
openHost
(
item
)"
nz-menu-item
><a>
<ng-container
*
ngIf=
"item.status == 1"
>
开启
</ng-container>
<ng-container
*
ngIf=
"item.status == 0"
>
停止
</ng-container>
监控
<ng-container
*
ngIf=
"item.status == 0"
>
停止
</ng-container>
监控
</a></li>
<li
nz-menu-item
(
click
)="
goDetail
(
item
)"
><a>
查看监测点
</a></li>
<li
(
click
)="
showAlarm
(
item
)"
nz-menu-item
><a>
添加告警
</a></li>
...
...
src/main/webapp/app/work/work-handle/work-handle.component.html
View file @
ea376401
...
...
@@ -22,14 +22,14 @@
<div
nz-col
nzSpan=
"3"
>
<button
(
click
)="
showAddModal
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-plus-circle-o"
></i>
新增事件
</button>
</div>
<div
nz-col
nzSpan=
"
3
"
>
<div
nz-col
nzSpan=
"
2
"
>
<nz-select
style=
"width: 100%;"
[(
ngModel
)]="
obj
.
type
"
nzPlaceHolder=
"事件分类"
>
<ng-container
*
ngFor=
"let item of eventTypeList"
>
<nz-option
[
nzLabel
]="
item
.
name
"
[
nzValue
]="
item
.
id
"
></nz-option>
</ng-container>
</nz-select>
</div>
<div
nz-col
nzSpan=
"
3
"
>
<div
nz-col
nzSpan=
"
2
"
>
<nz-select
style=
"width: 100%;"
[(
ngModel
)]="
obj
.
status
"
nzPlaceHolder=
"事件状态"
>
<nz-option
nzLabel=
"待处理"
nzValue=
"0"
></nz-option>
<nz-option
nzLabel=
"已结束"
nzValue=
"1"
></nz-option>
...
...
@@ -56,6 +56,9 @@
<div
nz-col
nzSpan=
"4"
>
<input
type=
"text"
nz-input
[(
ngModel
)]="
obj
.
searchStr
"
placeholder=
"事件编号/处理人"
>
</div>
<div
nz-col
nzSpan=
"2"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
</div>
<nz-table
#
nzTable
[
nzData
]="
eventList
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
totalNum
"
[
nzPageIndex
]="
pageNum
"
[
nzPageSize
]="
pageCount
"
(
nzPageIndexChange
)="
change
($
event
)"
>
...
...
src/main/webapp/content/css/documentation.css
View file @
ea376401
...
...
@@ -27,7 +27,7 @@
border-top
:
1px
solid
#dddddd
;
}
.search-form
.ant-input
{
width
:
initial
;
width
:
100%
;
}
.search-input
.ant-input
{
width
:
60%
;
...
...
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