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
d6ecc844
Commit
d6ecc844
authored
Dec 13, 2018
by
xiaowenjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
10f3d4fb
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
8 deletions
+10
-8
app.constants.ts
src/main/webapp/app/app.constants.ts
+1
-1
basic-detail.component.html
...pp/overAll/basic/basic-detail/basic-detail.component.html
+4
-2
basic-detail.component.ts
.../app/overAll/basic/basic-detail/basic-detail.component.ts
+1
-1
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+4
-4
No files found.
src/main/webapp/app/app.constants.ts
View file @
d6ecc844
...
...
@@ -4,7 +4,7 @@
export
const
VERSION
=
process
.
env
.
VERSION
;
export
const
DEBUG_INFO_ENABLED
:
boolean
=
!!
process
.
env
.
DEBUG_INFO_ENABLED
;
export
const
SERVER_API_URL
=
'/
iomsp
'
;
export
const
SERVER_API_URL
=
'/
zabbixBox
'
;
export
const
BUILD_TIMESTAMP
=
process
.
env
.
BUILD_TIMESTAMP
;
export
const
pageSize
=
25
;
export
const
color
=
{
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.html
View file @
d6ecc844
...
...
@@ -176,8 +176,10 @@
<td
class=
"handle cursor"
>
<span
(
click
)="
showEditModal
(
data
)"
>
编辑
</span>
<span
(
click
)="
deleteCheckItem
(
data
)"
>
删除
</span>
<span
*
ngIf=
"data.status == 0"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
>
停止
</span>
<span
*
ngIf=
"data.status == 1"
(
click
)="
updateItem
(
data
.
itemid
,
0
)"
>
启用
</span>
<span
*
ngIf=
"data.status == 0 && data.state==0"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
>
停止
</span>
<span
*
ngIf=
"data.status == 0 && data.state==1"
(
click
)="
updateItem
(
data
.
itemid
,
1
)"
>
不支持的
</span>
<span
*
ngIf=
"data.status == 1 && data.state==0"
(
click
)="
updateItem
(
data
.
itemid
,
0
)"
>
启用
</span>
<span
*
ngIf=
"data.status == 1 && data.state==1"
(
click
)="
updateItem
(
data
.
itemid
,
0
)"
>
启用
</span>
</td>
</tr>
</tbody>
...
...
src/main/webapp/app/overAll/basic/basic-detail/basic-detail.component.ts
View file @
d6ecc844
...
...
@@ -18,7 +18,7 @@ import {DatePipe} from '@angular/common';
position: absolute;
top: 12px;
left: 233px;
z-index: 9
99999
9;
z-index: 9
8
9;
}
.time-select{
position: absolute;
...
...
src/main/webapp/app/overAll/basic/basic.component.html
View file @
d6ecc844
...
...
@@ -105,7 +105,7 @@
</td>
</ng-container>
<td
class=
"round-tag"
>
<td
class=
"round-tag
tag-form
"
>
<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"
[
nzColor
]="
color
.
green
"
></nz-tag>
...
...
@@ -113,7 +113,7 @@
<td>
<span
(
click
)="
goTOInventory
(
item
?.
inventory
?.
id
)"
>
{{item?.inventory?.name}}
</span>
</td>
<td
class=
"round-tag
"
>
<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>
<!--<span *ngIf="item.status == 0">已监控</span>-->
...
...
@@ -216,7 +216,7 @@
<nz-tag
*
ngIf=
"item.maxLevel < 2"
[
nzColor
]="
color
.
green
"
></nz-tag>
</td>
<td>
{{item?.inventory?.name}}
</td>
<td
class=
"round-tag"
>
<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>
</td>
...
...
@@ -307,7 +307,7 @@
<nz-tag
*
ngIf=
"item.maxLevel < 2"
[
nzColor
]="
color
.
green
"
></nz-tag>
</td>
<td>
{{item?.inventory?.name}}
</td>
<td
class=
"round-tag"
>
<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>
</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