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
9fa16e7b
Commit
9fa16e7b
authored
Jan 14, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单位
parent
28a369ef
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
6 deletions
+6
-6
app.constants.ts
src/main/webapp/app/app.constants.ts
+1
-1
home.component.html
src/main/webapp/app/home/home.component.html
+1
-1
basic-detail.component.html
...pp/overAll/basic/basic-detail/basic-detail.component.html
+2
-2
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+2
-2
No files found.
src/main/webapp/app/app.constants.ts
View file @
9fa16e7b
...
@@ -7,7 +7,7 @@ export const DEBUG_INFO_ENABLED: boolean = !!process.env.DEBUG_INFO_ENABLED;
...
@@ -7,7 +7,7 @@ export const DEBUG_INFO_ENABLED: boolean = !!process.env.DEBUG_INFO_ENABLED;
export
const
SERVER_API_URL_COMS
=
'/coms'
;
export
const
SERVER_API_URL_COMS
=
'/coms'
;
export
const
SERVER_API_URL
=
'/zabbixBox'
;
export
const
SERVER_API_URL
=
'/zabbixBox'
;
export
const
BUILD_TIMESTAMP
=
process
.
env
.
BUILD_TIMESTAMP
;
export
const
BUILD_TIMESTAMP
=
process
.
env
.
BUILD_TIMESTAMP
;
export
const
pageSize
=
25
;
export
const
pageSize
=
10
;
export
const
color
=
{
export
const
color
=
{
green
:
'#58ca13'
,
green
:
'#58ca13'
,
yellow
:
'#ffc029'
,
yellow
:
'#ffc029'
,
...
...
src/main/webapp/app/home/home.component.html
View file @
9fa16e7b
...
@@ -117,7 +117,7 @@
...
@@ -117,7 +117,7 @@
<nz-tag
*
ngIf=
"data.priority == 4 || data.priority == 5"
[
nzColor
]="
color
.
red
"
></nz-tag>
<nz-tag
*
ngIf=
"data.priority == 4 || data.priority == 5"
[
nzColor
]="
color
.
red
"
></nz-tag>
<nz-tag
*
ngIf=
"data.priority == 2 || data.priority == 3"
[
nzColor
]="
color
.
yellow
"
></nz-tag>
<nz-tag
*
ngIf=
"data.priority == 2 || data.priority == 3"
[
nzColor
]="
color
.
yellow
"
></nz-tag>
</td>
</td>
<td>
{{data.hostname}}
</td>
<td
class=
"cursor main-color"
>
{{data.hostname}}
</td>
<td>
{{data.description}}
</td>
<td>
{{data.description}}
</td>
<td>
{{data.continuedTime}}
</td>
<td>
{{data.continuedTime}}
</td>
</tr>
</tr>
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.html
View file @
9fa16e7b
...
@@ -195,9 +195,9 @@
...
@@ -195,9 +195,9 @@
<span
*
ngIf=
"data.triggerCount == 0"
(
click
)="
showAddThresholdModal
(
data
)"
>
添加阈值
</span>
<span
*
ngIf=
"data.triggerCount == 0"
(
click
)="
showAddThresholdModal
(
data
)"
>
添加阈值
</span>
<span
*
ngIf=
"data.triggerCount > 0"
(
click
)="
showEditThresholdModal
(
data
)"
>
编辑阈值
</span>
<span
*
ngIf=
"data.triggerCount > 0"
(
click
)="
showEditThresholdModal
(
data
)"
>
编辑阈值
</span>
</ng-container>
</ng-container>
<span
*
ngIf=
"data.status == 0 && data.state==0"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
style=
"color:
red"
>
启用
</span>
<span
*
ngIf=
"data.status == 0 && data.state==0"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
style=
"color:
green"
>
启用
</span>
<span
*
ngIf=
"data.status == 0 && data.state==1"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
style=
"color: red"
>
不支持的
</span>
<span
*
ngIf=
"data.status == 0 && data.state==1"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
style=
"color: red"
>
不支持的
</span>
<span
*
ngIf=
"data.status == 1 && data.state==0"
(
click
)="
updateItem
(
data
.
itemid
,
0
)"
style=
"color:
green"
>
停止
</span>
<span
*
ngIf=
"data.status == 1 && data.state==0"
(
click
)="
updateItem
(
data
.
itemid
,
0
)"
style=
"color:
red"
>
停止
</span>
<span
*
ngIf=
"data.status == 1 && data.state==1"
(
click
)="
updateItem
(
data
.
itemid
,
0
)"
style=
"color: green"
>
停止
</span>
<span
*
ngIf=
"data.status == 1 && data.state==1"
(
click
)="
updateItem
(
data
.
itemid
,
0
)"
style=
"color: green"
>
停止
</span>
</td>
</td>
<td>
{{data.error}}
</td>
<td>
{{data.error}}
</td>
...
...
src/main/webapp/app/overAll/basic/basic.component.html
View file @
9fa16e7b
...
@@ -91,7 +91,7 @@
...
@@ -91,7 +91,7 @@
<!--父级-->
<!--父级-->
<ng-container
*
ngIf=
"!item.level"
>
<ng-container
*
ngIf=
"!item.level"
>
<td></td>
<td></td>
<td
class=
"cursor"
[
nzIndentSize
]="
item
.
level
*
20
"
nzShowExpand
[
nzExpand
]='
item
.
expand
'
<td
[
nzIndentSize
]="
item
.
level
*
20
"
nzShowExpand
[
nzExpand
]='
item
.
expand
'
(
nzExpandChange
)="
getChildrenType
(
item
)"
>
(
nzExpandChange
)="
getChildrenType
(
item
)"
>
<span>
{{item.equipmentType}}
</span>
<span>
{{item.equipmentType}}
</span>
</td>
</td>
...
@@ -197,7 +197,7 @@
...
@@ -197,7 +197,7 @@
<!--父级-->
<!--父级-->
<ng-container
*
ngIf=
"!item.level"
>
<ng-container
*
ngIf=
"!item.level"
>
<td></td>
<td></td>
<td
class=
"cursor"
[
nzIndentSize
]="
item
.
level
*
20
"
nzShowExpand
[
nzExpand
]='
item
.
expand
'
<td
[
nzIndentSize
]="
item
.
level
*
20
"
nzShowExpand
[
nzExpand
]='
item
.
expand
'
(
nzExpandChange
)="
getChildren
(
item
)"
>
(
nzExpandChange
)="
getChildren
(
item
)"
>
<span>
{{item.name}}
</span>
<span>
{{item.name}}
</span>
</td>
</td>
...
...
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