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
bed93c58
Commit
bed93c58
authored
Jan 14, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
19156f89
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
3 deletions
+16
-3
home.component.html
src/main/webapp/app/home/home.component.html
+1
-1
home.component.ts
src/main/webapp/app/home/home.component.ts
+14
-1
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+1
-1
No files found.
src/main/webapp/app/home/home.component.html
View file @
bed93c58
...
@@ -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
class=
"cursor main-color"
>
{{data.hostname}}
</td>
<td
class=
"cursor main-color"
(
click
)="
goToDetail
(
data
)"
>
{{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/home/home.component.ts
View file @
bed93c58
...
@@ -7,6 +7,7 @@ import {AlarmService} from '../alarm/alarm.service';
...
@@ -7,6 +7,7 @@ import {AlarmService} from '../alarm/alarm.service';
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
LayoutService
}
from
'../layouts/layout.service'
;
import
{
LayoutService
}
from
'../layouts/layout.service'
;
import
{
SelectGroupComponent
}
from
'../modal/select-group/select-group.component'
;
import
{
SelectGroupComponent
}
from
'../modal/select-group/select-group.component'
;
import
{
Router
}
from
'@angular/router'
;
@
Component
({
@
Component
({
selector
:
'jhi-home'
,
selector
:
'jhi-home'
,
...
@@ -83,7 +84,8 @@ export class HomeComponent implements OnInit,AfterViewInit {
...
@@ -83,7 +84,8 @@ export class HomeComponent implements OnInit,AfterViewInit {
private
alarmSer
:
AlarmService
,
private
renderer
:
Renderer2
,
private
alarmSer
:
AlarmService
,
private
renderer
:
Renderer2
,
private
layoutSer
:
LayoutService
,
private
layoutSer
:
LayoutService
,
private
principal
:
Principal
,
private
principal
:
Principal
,
private
eventManager
:
JhiEventManager
private
eventManager
:
JhiEventManager
,
private
router
:
Router
)
{
)
{
}
}
...
@@ -105,6 +107,17 @@ export class HomeComponent implements OnInit,AfterViewInit {
...
@@ -105,6 +107,17 @@ export class HomeComponent implements OnInit,AfterViewInit {
this
.
renderer
.
setStyle
(
this
.
leftDiv
.
nativeElement
,
"height"
,
rightHeight
+
"px"
);
this
.
renderer
.
setStyle
(
this
.
leftDiv
.
nativeElement
,
"height"
,
rightHeight
+
"px"
);
}
}
//查看详情
goDetail
(
item
)
{
this
.
router
.
navigate
([
'app/main/basic-detail'
],
{
queryParams
:
{
hostId
:
item
.
hostid
,
name
:
item
.
hostname
,
hostName
:
item
.
hostname
}
});
}
//我的关注
//我的关注
getMyFollow
(){
getMyFollow
(){
this
.
layoutSer
.
myFollow
().
subscribe
(
this
.
layoutSer
.
myFollow
().
subscribe
(
...
...
src/main/webapp/app/overAll/basic/basic.component.html
View file @
bed93c58
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
<tr>
<tr>
<th
[
nzChecked
]="
allChecked
"
></th>
<th
[
nzChecked
]="
allChecked
"
></th>
<th>
名称
</th>
<th>
名称
</th>
<th>
告警
状态
</th>
<th>
告警
</th>
<th>
关联资产
</th>
<th>
关联资产
</th>
<!--<th nzWidth="20%">主机启用状态</th>-->
<!--<th nzWidth="20%">主机启用状态</th>-->
<th>
可用性
</th>
<th>
可用性
</th>
...
...
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