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
face4507
Commit
face4507
authored
Jan 18, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
808838e6
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
35 additions
and
3 deletions
+35
-3
flow-trend.component.html
...bapp/app/netTopology/flow-trend/flow-trend.component.html
+17
-2
flow-trend.component.ts
...webapp/app/netTopology/flow-trend/flow-trend.component.ts
+18
-1
No files found.
src/main/webapp/app/netTopology/flow-trend/flow-trend.component.html
View file @
face4507
...
@@ -72,13 +72,28 @@
...
@@ -72,13 +72,28 @@
</div>
</div>
</div>
</div>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<nz-spin
[
nzSpinning
]="
isLoading
"
>
<div
style=
"height: 400px"
>
<ng-container
*
ngIf=
"echartType == 'now'"
>
<ng-container
*
ngIf=
"echartType == 'now'"
>
<div
echarts
[
options
]="
nowChartOption
"
(
chartInit
)="
onEchartInit
($
event
)"
<ng-container
*
ngIf=
"data.now"
>
style=
"height: 400px;width: 100%"
></div>
<div
class=
"img-noData"
>
<div
class=
"noData"
title=
"暂无数据"
></div>
</div>
</ng-container>
<ng-container
*
ngIf=
"!data.now"
>
<div
echarts
[
options
]="
nowChartOption
"
(
chartInit
)="
onEchartInit
($
event
)"
style=
"height: 400px;width: 100%"
></div>
</ng-container>
</ng-container>
</ng-container>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<ng-container
*
ngIf=
"data.history"
>
<div
class=
"img-noData"
>
<div
class=
"noData"
title=
"暂无数据"
></div>
</div>
</ng-container>
<ng-container
*
ngIf=
"!data.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>
</ng-container>
</div>
</nz-spin>
</nz-spin>
<div
class=
"padding-15-0"
>
<div
class=
"padding-15-0"
>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<ng-container
*
ngIf=
"echartType == 'history'"
>
...
...
src/main/webapp/app/netTopology/flow-trend/flow-trend.component.ts
View file @
face4507
...
@@ -55,6 +55,11 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
...
@@ -55,6 +55,11 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
time_
;
time_
;
data
=
{
now
:
false
,
history
:
false
}
constructor
(
private
topologySer
:
TopologyService
,
private
overAllSer
:
OverAllService
,
constructor
(
private
topologySer
:
TopologyService
,
private
overAllSer
:
OverAllService
,
private
message
:
NzMessageService
,
private
datePipe
:
DatePipe
)
{
private
message
:
NzMessageService
,
private
datePipe
:
DatePipe
)
{
}
}
...
@@ -232,7 +237,13 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
...
@@ -232,7 +237,13 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
errCode
==
10000
)
{
this
.
inNowEchartData
=
res
.
data
.
in
;
this
.
inNowEchartData
=
res
.
data
.
in
;
this
.
outNowEchartData
=
res
.
data
.
out
;
this
.
outNowEchartData
=
res
.
data
.
out
;
if
(
this
.
inNowEchartData
.
length
==
0
&&
this
.
outNowEchartData
.
length
==
0
){
this
.
data
.
now
=
true
;
this
.
message
.
warning
(
"实时流量数据暂无"
);
}
else
{
this
.
data
.
now
=
false
;
this
.
flashEcharts
();
this
.
flashEcharts
();
}
}
else
{
}
else
{
this
.
message
.
warning
(
res
.
errMsg
);
this
.
message
.
warning
(
res
.
errMsg
);
}
}
...
@@ -385,11 +396,17 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
...
@@ -385,11 +396,17 @@ export class FlowTrendComponent implements OnInit, OnDestroy {
});
});
this
.
setEacharts
();
this
.
setEacharts
();
}
else
{
}
else
{
this
.
in
EchartData
=
[];
this
.
out
EchartData
=
[];
this
.
message
.
warning
(
'出口流量图表暂无数据'
);
this
.
message
.
warning
(
'出口流量图表暂无数据'
);
this
.
isLoading
=
false
;
this
.
isLoading
=
false
;
this
.
setEacharts
();
this
.
setEacharts
();
}
}
if
(
this
.
inEchartData
.
length
==
0
&&
this
.
outEchartData
.
length
==
0
){
this
.
data
.
history
=
true
;
}
else
{
this
.
data
.
history
=
false
;
}
}
}
);
);
}
else
{
}
else
{
...
...
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