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
6e6b8839
Commit
6e6b8839
authored
Jan 17, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
133fa0a1
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
184 additions
and
139 deletions
+184
-139
analysis-deal.component.html
...operation-work/analysis-deal/analysis-deal.component.html
+1
-1
analysis-status.component.html
...ation-work/analysis-status/analysis-status.component.html
+1
-1
resource-alarm.component.html
...app/analysis/resource-alarm/resource-alarm.component.html
+34
-24
resource-alarm.component.ts
...p/app/analysis/resource-alarm/resource-alarm.component.ts
+22
-4
home.css
src/main/webapp/app/home/home.css
+1
-12
navbar.css
src/main/webapp/app/layouts/navbar/navbar.css
+0
-7
sidebar.component.html
src/main/webapp/app/layouts/sidebar/sidebar.component.html
+1
-3
basic-edit.component.ts
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
+1
-1
strategy.component.ts
src/main/webapp/app/modal/strategy/strategy.component.ts
+1
-1
flow-trend.component.html
...bapp/app/netTopology/flow-trend/flow-trend.component.html
+89
-75
flow-trend.component.ts
...webapp/app/netTopology/flow-trend/flow-trend.component.ts
+2
-2
overAll.service.ts
src/main/webapp/app/overAll/overAll.service.ts
+5
-0
pararms.component.ts
src/main/webapp/app/work/pararms/pararms.component.ts
+16
-4
global.css
src/main/webapp/content/css/global.css
+4
-0
hipster.png
src/main/webapp/content/images/hipster.png
+0
-0
hipster2x.png
src/main/webapp/content/images/hipster2x.png
+0
-0
logo-jhipster.png
src/main/webapp/content/images/logo-jhipster.png
+0
-0
noData.png
src/main/webapp/content/images/noData.png
+0
-0
noData.svg
src/main/webapp/content/images/noData.svg
+2
-0
manifest.webapp
src/main/webapp/manifest.webapp
+4
-4
No files found.
src/main/webapp/app/analysis/operation-work/analysis-deal/analysis-deal.component.html
View file @
6e6b8839
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<th
nzWidth=
"20%"
>
处理人
</th>
<th
nzWidth=
"20%"
>
处理人
</th>
<th>
事件数量
</th>
<th>
事件数量
</th>
<th>
解决状态
</th>
<th>
解决状态
</th>
<th>
处理人情况
</th>
<th>
事件分类
</th>
</tr>
</tr>
</thead>
</thead>
<tbody>
<tbody>
...
...
src/main/webapp/app/analysis/operation-work/analysis-status/analysis-status.component.html
View file @
6e6b8839
...
@@ -39,7 +39,7 @@
...
@@ -39,7 +39,7 @@
<tr>
<tr>
<th
nzWidth=
"20%"
>
解决状态
</th>
<th
nzWidth=
"20%"
>
解决状态
</th>
<th>
事件数量
</th>
<th>
事件数量
</th>
<th>
解决状态
</th>
<th>
处理人情况
</th>
<th>
事件分类
</th>
<th>
事件分类
</th>
</tr>
</tr>
</thead>
</thead>
...
...
src/main/webapp/app/analysis/resource-alarm/resource-alarm.component.html
View file @
6e6b8839
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</div>
</div>
</div>
</div>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-col
nzSpan=
"
3"
>
<div
nz-col
nzSpan=
"
4"
>
<nz-select
style=
"width: 100%;"
nzPlaceHolder=
"所有分组"
[(
ngModel
)]="
obj
.
groupid
"
>
<nz-select
style=
"width: 100%;"
nzPlaceHolder=
"所有分组"
[(
ngModel
)]="
obj
.
groupid
"
>
<ng-container
*
ngFor=
"let item of groupList"
>
<ng-container
*
ngFor=
"let item of groupList"
>
<nz-option
[
nzLabel
]="
item
.
name
"
[
nzValue
]="
item
.
groupid
"
></nz-option>
<nz-option
[
nzLabel
]="
item
.
name
"
[
nzValue
]="
item
.
groupid
"
></nz-option>
...
@@ -41,35 +41,45 @@
...
@@ -41,35 +41,45 @@
<label
nz-radio-button
nzValue=
"5"
>
自定义
</label>
<label
nz-radio-button
nzValue=
"5"
>
自定义
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</div>
<div
nz-col
nzSpan=
"8"
*
ngIf=
"timeType == '5'"
>
<div
nz-col
nzSpan=
"8"
>
<nz-date-picker
<ng-container
*
ngIf=
"timeType == '5'"
>
nzShowTime
<nz-date-picker
[(
ngModel
)]="
startTime
"
nzShowTime
nzPlaceHolder=
"开始时间"
[(
ngModel
)]="
startTime
"
></nz-date-picker>
nzPlaceHolder=
"开始时间"
<nz-date-picker
></nz-date-picker>
nzShowTime
<nz-date-picker
nzFormat=
"yyyy-MM-dd HH:mm:ss"
nzShowTime
[(
ngModel
)]="
endTime
"
nzFormat=
"yyyy-MM-dd HH:mm:ss"
nzPlaceHolder=
"结束时间"
[(
ngModel
)]="
endTime
"
></nz-date-picker>
nzPlaceHolder=
"结束时间"
></nz-date-picker>
</ng-container>
</div>
</div>
<div
nz-col
nzSpan=
"2"
class=
"search-input text-right"
>
<div
nz-col
nzSpan=
"2"
class=
"search-input text-right"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
</div>
</div>
</div>
<div
nz-row
nzGutter=
"4"
>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<div
nz-col
nzSpan=
"12"
style=
"height: 400px"
>
<div
nz-row
nzGutter=
"4"
>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<div
nz-col
nzSpan=
"12"
style=
"height: 400px"
>
<div
echarts
[
options
]="
chartTopOption
"
style=
"height: 400px;width: 100%"
></div>
<ng-container
*
ngIf=
"data.left"
>
</nz-spin>
<div
class=
"noData"
title=
"暂无数据"
></div>
</div>
</ng-container>
<div
nz-col
nzSpan=
"12"
style=
"height: 400px"
>
<ng-container
*
ngIf=
"!data.left"
>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<div
echarts
[
options
]="
chartTopOption
"
style=
"height: 400px;width: 100%"
></div>
<div
echarts
[
options
]="
charTrendOption
"
style=
"height: 400px;width: 100%"
></div>
</ng-container>
</nz-spin>
</div>
<div
nz-col
nzSpan=
"12"
style=
"height: 400px"
>
<ng-container
*
ngIf=
"data.right"
>
<div
class=
"noData"
title=
"暂无数据"
></div>
</ng-container>
<ng-container
*
ngIf=
"!data.right"
>
<div
echarts
[
options
]="
charTrendOption
"
style=
"height: 400px;width: 100%"
></div>
</ng-container>
</div>
</div>
</div>
</
div
>
</
nz-spin
>
<h3
style=
"margin-top: 20px"
>
常见问题TOP10
</h3>
<h3
style=
"margin-top: 20px"
>
常见问题TOP10
</h3>
<nz-table
#
nzTable
[
nzData
]="
commonList
"
>
<nz-table
#
nzTable
[
nzData
]="
commonList
"
>
<thead>
<thead>
...
...
src/main/webapp/app/analysis/resource-alarm/resource-alarm.component.ts
View file @
6e6b8839
...
@@ -21,6 +21,12 @@ export class ResourceAlarmComponent implements OnInit {
...
@@ -21,6 +21,12 @@ export class ResourceAlarmComponent implements OnInit {
isVisiable
=
false
;
isVisiable
=
false
;
isLoading
=
false
;
isLoading
=
false
;
//显示无数据图片
data
=
{
left
:
false
,
right
:
false
,
};
obj
=
{
obj
=
{
priorityName
:
null
,
priorityName
:
null
,
groupid
:
null
,
groupid
:
null
,
...
@@ -57,6 +63,7 @@ export class ResourceAlarmComponent implements OnInit {
...
@@ -57,6 +63,7 @@ export class ResourceAlarmComponent implements OnInit {
}
}
getData
()
{
getData
()
{
this
.
isLoading
=
true
;
this
.
getAlarmTopEchart
();
this
.
getAlarmTopEchart
();
this
.
getAlarmTrend
();
this
.
getAlarmTrend
();
this
.
getCommonTop
();
this
.
getCommonTop
();
...
@@ -87,8 +94,12 @@ export class ResourceAlarmComponent implements OnInit {
...
@@ -87,8 +94,12 @@ export class ResourceAlarmComponent implements OnInit {
this
.
analysisSer
.
waringCountTop
(
data
).
subscribe
(
this
.
analysisSer
.
waringCountTop
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
if
(
res
.
errCode
==
10000
){
const
response
=
res
.
data
;
if
(
res
.
data
.
length
>
0
){
this
.
setTopEcharts
(
response
);
const
response
=
res
.
data
;
this
.
setTopEcharts
(
response
);
}
else
{
this
.
data
.
left
=
true
;
}
}
else
{
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
this
.
message
.
error
(
res
.
errMsg
);
}
}
...
@@ -146,8 +157,13 @@ export class ResourceAlarmComponent implements OnInit {
...
@@ -146,8 +157,13 @@ export class ResourceAlarmComponent implements OnInit {
this
.
analysisSer
.
waringTrend
(
data
).
subscribe
(
this
.
analysisSer
.
waringTrend
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
if
(
res
.
errCode
==
10000
){
if
(
res
.
errCode
==
10000
){
const
response
=
res
.
data
;
if
(
res
.
data
.
length
>
0
){
this
.
setAlarmTrend
(
response
);
const
response
=
res
.
data
;
this
.
setAlarmTrend
(
response
);
}
else
{
this
.
isLoading
=
false
;
this
.
data
.
right
=
true
;
}
}
else
{
}
else
{
this
.
message
.
error
(
res
.
errMsg
);
this
.
message
.
error
(
res
.
errMsg
);
}
}
...
@@ -217,6 +233,8 @@ export class ResourceAlarmComponent implements OnInit {
...
@@ -217,6 +233,8 @@ export class ResourceAlarmComponent implements OnInit {
}
}
]
]
};
};
this
.
isLoading
=
false
;
}
}
//常发问题TOP10
//常发问题TOP10
...
...
src/main/webapp/app/home/home.css
View file @
6e6b8839
...
@@ -2,20 +2,9 @@
...
@@ -2,20 +2,9 @@
Main page styles
Main page styles
========================================================================== */
========================================================================== */
.hipster
{
display
:
inline-block
;
width
:
347px
;
height
:
497px
;
background
:
url("../../content/images/hipster.png")
no-repeat
center
top
;
background-size
:
contain
;
}
/* wait autoprefixer update to allow simple generation of high pixel density media query */
/* wait autoprefixer update to allow simple generation of high pixel density media query */
@media
only
screen
and
(
-webkit-min-device-pixel-ratio
:
2
),
only
screen
and
(
min--moz-device-pixel-ratio
:
2
),
only
screen
and
(
-o-min-device-pixel-ratio
:
2
/
1
),
only
screen
and
(
min-device-pixel-ratio
:
2
),
only
screen
and
(
min-resolution
:
192dpi
),
only
screen
and
(
min-resolution
:
2dppx
)
{
@media
only
screen
and
(
-webkit-min-device-pixel-ratio
:
2
),
only
screen
and
(
min--moz-device-pixel-ratio
:
2
),
only
screen
and
(
-o-min-device-pixel-ratio
:
2
/
1
),
only
screen
and
(
min-device-pixel-ratio
:
2
),
only
screen
and
(
min-resolution
:
192dpi
),
only
screen
and
(
min-resolution
:
2dppx
)
{
.hipster
{
background
:
url("../../content/images/hipster2x.png")
no-repeat
center
top
;
background-size
:
contain
;
}
}
}
p
{
p
{
...
...
src/main/webapp/app/layouts/navbar/navbar.css
View file @
6e6b8839
...
@@ -78,13 +78,6 @@ Logo styles
...
@@ -78,13 +78,6 @@ Logo styles
vertical-align
:
middle
;
vertical-align
:
middle
;
width
:
70px
;
width
:
70px
;
}
}
.logo-img
{
height
:
100%
;
background
:
url("../../../content/images/logo-jhipster.png")
no-repeat
center
center
;
background-size
:
contain
;
width
:
100%
;
}
.span-hov
{
.span-hov
{
overflow
:
hidden
;
overflow
:
hidden
;
display
:
-webkit-inline-flex
;
display
:
-webkit-inline-flex
;
...
...
src/main/webapp/app/layouts/sidebar/sidebar.component.html
View file @
6e6b8839
<div
class=
"logo padding-40"
>
<div
class=
"logo padding-40"
>
运维管理系统
</div>
智能运维监控
</div>
<ul
nz-menu
[
nzMode
]="'
inline
'"
>
<ul
nz-menu
[
nzMode
]="'
inline
'"
>
<ng-container
*
ngFor=
"let item of menuList"
>
<ng-container
*
ngFor=
"let item of menuList"
>
<li
nz-submenu
(
nzOpenChange
)="
openHandler
(
item
)"
[(
nzOpen
)]="
item
.
checked
"
>
<li
nz-submenu
(
nzOpenChange
)="
openHandler
(
item
)"
[(
nzOpen
)]="
item
.
checked
"
>
...
...
src/main/webapp/app/modal/basic-edit/basic-edit.component.ts
View file @
6e6b8839
...
@@ -67,7 +67,7 @@ export class BasicEditComponent implements OnInit {
...
@@ -67,7 +67,7 @@ export class BasicEditComponent implements OnInit {
//获取分组
//获取分组
getGroup
()
{
getGroup
()
{
this
.
groupList
=
[];
this
.
groupList
=
[];
this
.
overAllSer
.
findGroup
(
).
subscribe
(
this
.
overAllSer
.
getEditGroups
(
0
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
res
.
data
.
length
;
i
++
)
{
const
gObj
=
{
const
gObj
=
{
...
...
src/main/webapp/app/modal/strategy/strategy.component.ts
View file @
6e6b8839
...
@@ -61,7 +61,7 @@ export class StrategyComponent implements OnInit {
...
@@ -61,7 +61,7 @@ export class StrategyComponent implements OnInit {
//获取模版组
//获取模版组
getTemplateGroup
()
{
getTemplateGroup
()
{
this
.
templateList
=
[];
this
.
templateList
=
[];
this
.
overAllSer
.
get
TemplateGroups
(
).
subscribe
(
this
.
overAllSer
.
get
EditGroups
(
1
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
const
list
=
res
.
data
;
const
list
=
res
.
data
;
list
.
forEach
(
e
=>
{
list
.
forEach
(
e
=>
{
...
...
src/main/webapp/app/netTopology/flow-trend/flow-trend.component.html
View file @
6e6b8839
...
@@ -13,29 +13,38 @@
...
@@ -13,29 +13,38 @@
</nz-breadcrumb>
</nz-breadcrumb>
</div>
</div>
<div
nz-col
nzSpan=
"8"
class=
"text-right"
>
<div
nz-col
nzSpan=
"8"
class=
"text-right"
>
<button
*
ngIf=
"echartType == 'history'"
(
click
)="
changeEchartType
('
now
')"
nz-button
nzType=
"default"
>
实时数据
</button>
<button
*
ngIf=
"echartType == 'history'"
(
click
)="
changeEchartType
('
now
')"
nz-button
nzType=
"default"
>
实时数据
<button
*
ngIf=
"echartType == 'now'"
(
click
)="
changeEchartType
('
history
')"
nz-button
nzType=
"default"
>
趋势数据
</button>
</button>
<button
*
ngIf=
"echartType == 'now'"
(
click
)="
changeEchartType
('
history
')"
nz-button
nzType=
"default"
>
趋势数据
</button>
<button
(
click
)="
ngOnInit
()"
nz-button
nzType=
"primary"
><i
class=
"anticon anticon-sync"
></i></button>
<button
(
click
)="
ngOnInit
()"
nz-button
nzType=
"primary"
><i
class=
"anticon anticon-sync"
></i></button>
<smart-full-screen></smart-full-screen>
<smart-full-screen></smart-full-screen>
</div>
</div>
</div>
</div>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-row
[
nzGutter
]="
4
"
class=
"search-form"
>
<div
nz-col
nzSpan=
"
3
"
>
<div
nz-col
nzSpan=
"
6
"
>
<nz-select
style=
"width: 100%;"
nzPlaceHolder=
"选择分组"
[(
ngModel
)]="
obj
.
groupid
"
(
ngModelChange
)="
getList
()"
>
<nz-select
style=
"width: 100%;"
nzPlaceHolder=
"选择分组"
[(
ngModel
)]="
obj
.
groupid
"
(
ngModelChange
)="
getList
()"
>
<ng-container
*
ngFor=
"let item of groupList"
>
<ng-container
*
ngFor=
"let item of groupList"
>
<nz-option
nzLabel=
"{{item.name}}"
nzValue=
"{{item.groupid}}"
></nz-option>
<nz-option
nzLabel=
"{{item.name}}"
nzValue=
"{{item.groupid}}"
></nz-option>
</ng-container>
</ng-container>
</nz-select>
</nz-select>
</div>
</div>
<div
nz-col
nzSpan=
"
3
"
>
<div
nz-col
nzSpan=
"
6
"
>
<nz-select
style=
"width: 100%;"
nzPlaceHolder=
"选择主机资源"
[(
ngModel
)]="
obj
.
hostid
"
(
ngModelChange
)="
getListIO
()"
>
<nz-select
style=
"width: 100%;"
nzPlaceHolder=
"选择主机资源"
[(
ngModel
)]="
obj
.
hostid
"
(
ngModelChange
)="
getListIO
()"
>
<ng-container
*
ngFor=
"let item of hostList;"
>
<ng-container
*
ngFor=
"let item of hostList;"
>
<nz-option
nzLabel=
"{{item.name}}"
nzValue=
"{{item.hostid}}"
></nz-option>
<nz-option
nzLabel=
"{{item.name}}"
nzValue=
"{{item.hostid}}"
></nz-option>
</ng-container>
</ng-container>
</nz-select>
</nz-select>
</div>
</div>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<div
nz-col
nzSpan=
"6"
></div>
<div
nz-col
nzSpan=
"7"
>
<div
nz-col
nzSpan=
"4"
></div>
<div
nz-col
nzSpan=
"2"
class=
"search-input text-right"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
</div>
<div
nz-row
[
nzGutter
]="
4
"
style=
"padding-bottom: 10px"
>
<div
nz-col
nzSpan=
"7"
>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<nz-radio-group
style=
"width: 100%;"
[(
ngModel
)]="
timeType
"
(
ngModelChange
)="
changeType
()"
<nz-radio-group
style=
"width: 100%;"
[(
ngModel
)]="
timeType
"
(
ngModelChange
)="
changeType
()"
[
nzButtonStyle
]="'
solid
'"
>
[
nzButtonStyle
]="'
solid
'"
>
<label
nz-radio-button
nzValue=
"1"
>
今天
</label>
<label
nz-radio-button
nzValue=
"1"
>
今天
</label>
...
@@ -44,81 +53,86 @@
...
@@ -44,81 +53,86 @@
<label
nz-radio-button
nzValue=
"4"
>
一周
</label>
<label
nz-radio-button
nzValue=
"4"
>
一周
</label>
<label
nz-radio-button
nzValue=
"5"
>
自定义
</label>
<label
nz-radio-button
nzValue=
"5"
>
自定义
</label>
</nz-radio-group>
</nz-radio-group>
</div>
</ng-container>
<div
nz-col
nzSpan=
"8"
>
</div>
<ng-container
*
ngIf=
"timeType == '5'"
>
<div
nz-col
nzSpan=
"8"
>
<nz-date-picker
<ng-container
*
ngIf=
"timeType == '5'"
>
nzShowTime
<nz-date-picker
[(
ngModel
)]="
timeBegin
"
nzShowTime
nzPlaceHolder=
"开始时间"
[(
ngModel
)]="
timeBegin
"
></nz-date-picker>
nzPlaceHolder=
"开始时间"
<nz-date-picker
></nz-date-picker>
nzShowTime
<nz-date-picker
nzFormat=
"yyyy-MM-dd HH:mm:ss"
nzShowTime
[(
ngModel
)]="
timeEnd
"
nzFormat=
"yyyy-MM-dd HH:mm:ss"
nzPlaceHolder=
"结束时间"
[(
ngModel
)]="
timeEnd
"
></nz-date-picker>
nzPlaceHolder=
"结束时间"
</ng-container>
></nz-date-picker>
</div>
</ng-container>
</ng-container>
<div
nz-col
nzSpan=
"3"
class=
"search-input text-right"
>
<button
(
click
)="
search
()"
nz-button
nzType=
"default"
><i
class=
"anticon anticon-search"
style=
"color: #6097b7"
></i>
搜索
</button>
</div>
</div>
</div>
</div>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<ng-container
*
ngIf=
"echartType == 'now'"
>
<ng-container
*
ngIf=
"echartType == 'now'"
>
<div
echarts
[
options
]="
nowChartOption
"
(
chartInit
)="
onEchartInit
($
event
)"
style=
"height: 400px;width: 100%"
></div>
<div
echarts
[
options
]="
nowChartOption
"
(
chartInit
)="
onEchartInit
($
event
)"
style=
"height: 400px;width: 100%"
></div>
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
</ng-container>
</ng-container>
</nz-spin>
</nz-spin>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<div
class=
"padding-15-0"
>
<nz-tabset
[
nzTabPosition
]="'
top
'"
[
nzType
]="'
card
'"
>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<nz-tab
nzTitle=
"接收流量排行"
>
<nz-tabset
[
nzTabPosition
]="'
top
'"
[
nzType
]="'
card
'"
>
<nz-table
#
nzTable
[
nzData
]="
inList
"
[
nzLoading
]="
inLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
inTotalNum
"
[
nzPageIndex
]="
inPageNum
"
[
nzPageSize
]="
inPageCount
"
(
nzPageIndexChange
)="
inChnagePage
($
event
)"
>
<nz-tab
nzTitle=
"接收流量排行"
>
<thead>
<nz-table
#
nzTable
[
nzData
]="
inList
"
[
nzLoading
]="
inLoading
"
[
nzFrontPagination
]="
false
"
<tr>
[
nzTotal
]="
inTotalNum
"
[
nzPageIndex
]="
inPageNum
"
[
nzPageSize
]="
inPageCount
"
<th
nzWidth=
"20%"
>
监测点名称
</th>
(
nzPageIndexChange
)="
inChnagePage
($
event
)"
>
<th>
最大值
</th>
<thead>
<th>
最小值
</th>
<tr>
<th>
平均值
</th>
<th
nzWidth=
"20%"
>
监测点名称
</th>
</tr>
<th>
最大值
</th>
</thead>
<th>
最小值
</th>
<tbody>
<th>
平均值
</th>
<ng-container
*
ngFor=
"let item of inList"
>
<tr
class=
"cursor"
(
click
)="
getEcharts
(
item
.
itemid
)"
>
<td>
{{item.itemName}}
</td>
<td>
{{item.max | toUtil}}
</td>
<td>
{{item.min | toUtil}}
</td>
<td>
{{item.avg | toUtil}}
</td>
</tr>
</tr>
</ng-container>
</thead>
</tbody>
<tbody>
</nz-table>
<ng-container
*
ngFor=
"let item of inList"
>
</nz-tab>
<tr
class=
"cursor"
(
click
)="
getEcharts
(
item
.
itemid
)"
>
<nz-tab
nzTitle=
"发送流量排行"
>
<td>
{{item.itemName}}
</td>
<nz-table
#
nzTable
[
nzData
]="
outList
"
[
nzLoading
]="
outLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
outTotalNum
"
[
nzPageIndex
]="
outPageNum
"
[
nzPageSize
]="
outPageCount
"
(
nzPageIndexChange
)="
outChnagePage
($
event
)"
>
<td>
{{item.max | toUtil}}
</td>
<thead>
<td>
{{item.min | toUtil}}
</td>
<tr>
<td>
{{item.avg | toUtil}}
</td>
<th
nzWidth=
"20%"
>
监测点名称
</th>
</tr>
<th>
最大值
</th>
</ng-container>
<th>
最小值
</th>
</tbody>
<th>
平均值
</th>
</nz-table>
</tr>
</nz-tab>
</thead>
<nz-tab
nzTitle=
"发送流量排行"
>
<tbody>
<nz-table
#
nzTable
[
nzData
]="
outList
"
[
nzLoading
]="
outLoading
"
[
nzFrontPagination
]="
false
"
<ng-container
*
ngFor=
"let data of outList"
>
[
nzTotal
]="
outTotalNum
"
[
nzPageIndex
]="
outPageNum
"
[
nzPageSize
]="
outPageCount
"
<tr
class=
"cursor"
(
click
)="
getEcharts
(
data
.
itemid
)"
>
(
nzPageIndexChange
)="
outChnagePage
($
event
)"
>
<td>
{{data.itemName}}
</td>
<thead>
<td>
{{data.max | toUtil}}
</td>
<tr>
<td>
{{data.min | toUtil}}
</td>
<th
nzWidth=
"20%"
>
监测点名称
</th>
<td>
{{data.avg | toUtil}}
</td>
<th>
最大值
</th>
<th>
最小值
</th>
<th>
平均值
</th>
</tr>
</tr>
</ng-container>
</thead>
</tbody>
<tbody>
</nz-table>
<ng-container
*
ngFor=
"let data of outList"
>
</nz-tab>
<tr
class=
"cursor"
(
click
)="
getEcharts
(
data
.
itemid
)"
>
</nz-tabset>
<td>
{{data.itemName}}
</td>
</ng-container>
<td>
{{data.max | toUtil}}
</td>
<td>
{{data.min | toUtil}}
</td>
<td>
{{data.avg | toUtil}}
</td>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
</nz-tabset>
</ng-container>
</div>
src/main/webapp/app/netTopology/flow-trend/flow-trend.component.ts
View file @
6e6b8839
...
@@ -369,7 +369,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
...
@@ -369,7 +369,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
});
});
}
else
{
}
else
{
this
.
inEchartData
=
[];
this
.
inEchartData
=
[];
this
.
message
.
warning
(
'图表暂无数据'
);
this
.
message
.
warning
(
'
进口流量
图表暂无数据'
);
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
}
}
data
.
type
=
'out'
;
data
.
type
=
'out'
;
...
@@ -386,7 +386,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
...
@@ -386,7 +386,7 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
this
.
setEacharts
();
this
.
setEacharts
();
}
else
{
}
else
{
this
.
inEchartData
=
[];
this
.
inEchartData
=
[];
this
.
message
.
warning
(
'图表暂无数据'
);
this
.
message
.
warning
(
'
出口流量
图表暂无数据'
);
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
this
.
setEacharts
();
this
.
setEacharts
();
}
}
...
...
src/main/webapp/app/overAll/overAll.service.ts
View file @
6e6b8839
...
@@ -19,6 +19,11 @@ export class OverAllService {
...
@@ -19,6 +19,11 @@ export class OverAllService {
return
this
.
http
.
post
(
SERVER_API_URL
+
'/groups/getgroups'
,
data
);
return
this
.
http
.
post
(
SERVER_API_URL
+
'/groups/getgroups'
,
data
);
}
}
//获取分组信息 --编辑页面获取分组 1 表示模板 0表示主机
getEditGroups
(
params
):
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/groups/getAllUpdate/'
+
params
);
}
//查询模板组-----
//查询模板组-----
getTemplateGroups
():
Observable
<
any
>
{
getTemplateGroups
():
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/groups/getTemplateGroups'
);
return
this
.
http
.
get
(
SERVER_API_URL
+
'/groups/getTemplateGroups'
);
...
...
src/main/webapp/app/work/pararms/pararms.component.ts
View file @
6e6b8839
...
@@ -25,7 +25,7 @@ export class PararmsComponent implements OnInit {
...
@@ -25,7 +25,7 @@ export class PararmsComponent implements OnInit {
eventPre
=
{
eventPre
=
{
eventNoPre
:
""
,
eventNoPre
:
""
,
id
:
""
id
:
""
}
}
;
constructor
(
private
workSer
:
WorkService
,
private
message
:
NzMessageService
,
constructor
(
private
workSer
:
WorkService
,
private
message
:
NzMessageService
,
private
commomSer
:
CommonService
)
{
}
private
commomSer
:
CommonService
)
{
}
...
@@ -38,7 +38,11 @@ export class PararmsComponent implements OnInit {
...
@@ -38,7 +38,11 @@ export class PararmsComponent implements OnInit {
getEventPre
(){
getEventPre
(){
this
.
workSer
.
getEventNoPre
().
subscribe
(
this
.
workSer
.
getEventNoPre
().
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
eventPre
=
res
.
data
;
if
(
res
.
data
){
this
.
eventPre
=
res
.
data
;
}
else
{
this
.
message
.
warning
(
"暂无事件前缀"
);
}
}
}
)
)
}
}
...
@@ -50,13 +54,21 @@ export class PararmsComponent implements OnInit {
...
@@ -50,13 +54,21 @@ export class PararmsComponent implements OnInit {
};
};
this
.
workSer
.
findParamsByType
(
data
).
subscribe
(
this
.
workSer
.
findParamsByType
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
eventList
=
res
.
data
;
if
(
res
.
data
.
length
>
0
){
this
.
eventList
=
res
.
data
;
}
else
{
this
.
message
.
warning
(
"暂无事件分类"
)
}
}
}
);
);
data
.
type
=
1
;
data
.
type
=
1
;
this
.
workSer
.
findParamsByType
(
data
).
subscribe
(
this
.
workSer
.
findParamsByType
(
data
).
subscribe
(
(
res
)
=>
{
(
res
)
=>
{
this
.
planList
=
res
.
data
;
if
(
res
.
data
.
length
>
0
){
this
.
planList
=
res
.
data
;
}
else
{
this
.
message
.
warning
(
"暂无计划分类"
);
}
}
}
)
)
}
}
...
...
src/main/webapp/content/css/global.css
View file @
6e6b8839
...
@@ -231,6 +231,10 @@ ui bootstrap tweaks
...
@@ -231,6 +231,10 @@ ui bootstrap tweaks
background-color
:
#41adef
;
background-color
:
#41adef
;
animation
:
rotateplane
1.5s
infinite
linear
;
animation
:
rotateplane
1.5s
infinite
linear
;
}
}
.noData
{
background-image
:
url("../images/noData.svg")
;
background-size
:
cover
;
}
@keyframes
rotateplane
{
@keyframes
rotateplane
{
0
%
{
0
%
{
transform
:
rotateX
(
0
);
}
transform
:
rotateX
(
0
);
}
...
...
src/main/webapp/content/images/hipster.png
deleted
100644 → 0
View file @
133fa0a1
9.28 KB
src/main/webapp/content/images/hipster2x.png
deleted
100644 → 0
View file @
133fa0a1
18.4 KB
src/main/webapp/content/images/logo-jhipster.png
deleted
100644 → 0
View file @
133fa0a1
4.35 KB
src/main/webapp/content/images/noData.png
0 → 100644
View file @
6e6b8839
6.04 KB
src/main/webapp/content/images/noData.svg
0 → 100644
View file @
6e6b8839
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1547691787193"
class=
"icon"
style=
""
viewBox=
"0 0 1485 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"2280"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"290.0390625"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M148.993664 689.28h19.968a9.984 9.984 0 0 1 0 19.84h-19.968V729.6a9.984 9.984 0 0 1-9.984 9.728A10.112 10.112 0 0 1 128.641664 729.6v-20.48H109.057664a9.984 9.984 0 0 1-9.856-9.984 9.856 9.856 0 0 1 9.856-9.856h20.224v-20.096a9.984 9.984 0 0 1 19.84 0v20.096z m1306.624-79.616v-19.968a9.6 9.6 0 0 0-2.944-7.04 10.24 10.24 0 0 0-7.04-2.816 9.984 9.984 0 0 0-9.856 9.856v19.968h-20.096a8.96 8.96 0 0 0-6.912 3.072 9.344 9.344 0 0 0-2.816 6.912 9.984 9.984 0 0 0 9.728 9.984h20.096v19.968a9.856 9.856 0 0 0 9.856 9.856 9.984 9.984 0 0 0 9.984-9.856v-19.968h20.096a9.984 9.984 0 0 0 0-19.968zM736.385664 937.856H238.081664a19.328 19.328 0 0 1-13.824-5.888 19.84 19.84 0 0 1 13.824-33.92h89.6a80.128 80.128 0 0 1-10.624-39.68V281.6a80 80 0 0 1 23.168-56.192 79.104 79.104 0 0 1 56.064-23.296h59.264v-20.096a79.488 79.488 0 0 1 23.296-56.192A78.464 78.464 0 0 1 535.041664 102.4h475.008a79.36 79.36 0 0 1 79.232 79.36v577.28a78.464 78.464 0 0 1-10.624 39.552h109.44a19.968 19.968 0 0 1 0 39.808H950.785664v19.968a78.464 78.464 0 0 1-10.496 39.68h10.496a19.712 19.712 0 0 1 19.84 19.84 19.968 19.968 0 0 1-19.84 19.968H846.721664a39.424 39.424 0 0 1-6.016 48.384 40.32 40.32 0 0 1-28.032 11.776 39.296 39.296 0 0 1-28.032-11.776z m72.448-39.808h62.976A39.68 39.68 0 0 0 911.233664 857.6V280.448a38.4 38.4 0 0 0-38.4-38.4H395.009664a38.4 38.4 0 0 0-38.4 38.4V857.6a39.936 39.936 0 0 0 39.424 39.936h300.544l-9.984-10.24a40.064 40.064 0 0 1-10.368-38.4l-18.688-18.688a138.112 138.112 0 0 1-187.648-20.608 139.648 139.648 0 0 1 6.656-189.312 137.984 137.984 0 0 1 188.928-7.04 139.52 139.52 0 0 1 20.096 188.8L704.641664 821.12a39.424 39.424 0 0 1 38.4 10.24z m141.952-99.456h59.776a39.808 39.808 0 0 0 39.68-39.808V182.016a39.68 39.68 0 0 0-39.424-39.808H534.913664a39.808 39.808 0 0 0-39.424 39.808v19.84H871.041664A79.104 79.104 0 0 1 950.657664 281.6v516.992zM253.057664 67.584H282.241664a14.976 14.976 0 1 1 0 29.824h-29.44v29.696a14.976 14.976 0 1 1-29.824 0V97.408h-29.312a14.848 14.848 0 0 1-10.624-4.224 14.976 14.976 0 0 1 10.624-25.6h29.568V38.4a14.976 14.976 0 1 1 29.824 0zM20.353664 917.888a19.968 19.968 0 0 1 19.712-19.84h119.04a19.712 19.712 0 0 1 19.712 19.84 19.968 19.968 0 0 1-19.712 19.968h-119.04A19.84 19.84 0 0 1 26.241664 931.968a19.456 19.456 0 0 1-5.76-14.08z m624.256-128a99.84 99.84 0 0 0 0-140.8 98.816 98.816 0 0 0-140.032 0 99.84 99.84 0 0 0 0 140.8 98.816 98.816 0 0 0 140.032 0zM435.841664 321.408a19.84 19.84 0 0 1 19.712-19.968h217.6a19.968 19.968 0 0 1 0 39.808h-217.6a20.736 20.736 0 0 1-14.08-5.76 20.224 20.224 0 0 1-5.632-14.08z m0 99.328a19.84 19.84 0 0 1 19.712-19.84h317.312a19.968 19.968 0 0 1 0 39.808H455.681664A19.712 19.712 0 0 1 435.841664 420.736z m0 99.456a19.84 19.84 0 0 1 19.712-19.84H594.561664a19.84 19.84 0 0 1 0 39.68H455.809664A19.84 19.84 0 0 1 435.841664 520.192zM60.033664 400.896a59.648 59.648 0 1 1 59.264-59.648 59.392 59.392 0 0 1-59.264 59.648z m0-29.824a29.824 29.824 0 0 0 0-59.648 29.824 29.824 0 0 0 0 59.648z m1227.392-89.6a59.648 59.648 0 1 1 59.264-59.648 59.264 59.264 0 0 1-59.264 59.776z m0-29.824a29.568 29.568 0 0 0 25.6-14.976 30.208 30.208 0 0 0 0-29.824 29.696 29.696 0 1 0-25.6 44.8z"
p-id=
"2281"
fill=
"#000000"
></path></svg>
\ No newline at end of file
src/main/webapp/manifest.webapp
View file @
6e6b8839
...
@@ -3,22 +3,22 @@
...
@@ -3,22 +3,22 @@
"short_name": "Bootapp",
"short_name": "Bootapp",
"icons": [
"icons": [
{
{
"src": "./content/images/logo
-jhipster
.png",
"src": "./content/images/logo.png",
"sizes": "192x192",
"sizes": "192x192",
"type": "image/png"
"type": "image/png"
},
},
{
{
"src": "./content/images/logo
-jhipster
.png",
"src": "./content/images/logo.png",
"sizes": "256x256",
"sizes": "256x256",
"type": "image/png"
"type": "image/png"
},
},
{
{
"src": "./content/images/logo
-jhipster
.png",
"src": "./content/images/logo.png",
"sizes": "384x384",
"sizes": "384x384",
"type": "image/png"
"type": "image/png"
},
},
{
{
"src": "./content/images/logo
-jhipster
.png",
"src": "./content/images/logo.png",
"sizes": "512x512",
"sizes": "512x512",
"type": "image/png"
"type": "image/png"
}
}
...
...
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