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
2d01aa09
Commit
2d01aa09
authored
Jun 06, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
服务器
parent
50514109
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
10 deletions
+20
-10
README.md
README.md
+2
-2
home.component.html
src/main/webapp/app/home/home.component.html
+10
-3
home.component.ts
src/main/webapp/app/home/home.component.ts
+8
-5
No files found.
README.md
View file @
2d01aa09
...
...
@@ -38,4 +38,5 @@ Module ng g module my-module
版本更新:
v2.0.1 修复选择节点之后 流量查询不出来
\ No newline at end of file
v2.0.1 修复选择节点之后 流量查询不出来
scp -r 22 build/www root@10.10.38.99:/home/nginx
src/main/webapp/app/home/home.component.html
View file @
2d01aa09
...
...
@@ -92,9 +92,16 @@
</nz-select>
</div>
<div
class=
"host-item-content"
>
<nz-spin
[
nzSpinning
]="
isTrendLoading
"
>
<div
echarts
[
options
]="
charTrendOption
"
style=
"height: 360px;width: 100%"
></div>
</nz-spin>
<ng-container
*
ngIf=
"noData"
>
<div
class=
"img-noData"
style=
"min-height: 400px"
>
<div
class=
"noData"
title=
"暂无数据"
></div>
</div>
</ng-container>
<ng-container
*
ngIf=
"noData"
>
<nz-spin
[
nzSpinning
]="
isTrendLoading
"
>
<div
echarts
[
options
]="
charTrendOption
"
style=
"height: 360px;width: 100%"
></div>
</nz-spin>
</ng-container>
</div>
</nz-col>
<nz-col
class=
"padding-10"
nzSpan=
"12"
>
...
...
src/main/webapp/app/home/home.component.ts
View file @
2d01aa09
...
...
@@ -28,6 +28,7 @@ export class HomeComponent implements OnInit, AfterViewInit {
obj
=
{
leftGroupId
:
''
,
};
noData
=
false
;
groupList
;
//分组数组
timeList
=
[
{
'label'
:
'最近一小时'
,
value
:
'0'
},
...
...
@@ -199,11 +200,11 @@ export class HomeComponent implements OnInit, AfterViewInit {
{
title
:
{
text
:
''
+
this
.
leftOneTotal
+
' 台
\
n设备'
,
x
:
'
41
%'
,
x
:
'
36
%'
,
y
:
'40%'
,
itemGap
:
50
,
textStyle
:
{
color
:
'#
fff
'
,
color
:
'#
8a8a8a
'
,
fontSize
:
18
,
fontWeight
:
'normal'
,
},
...
...
@@ -286,11 +287,11 @@ export class HomeComponent implements OnInit, AfterViewInit {
{
title
:
{
text
:
this
.
leftTwoTotal
+
'个
\
n监测点'
,
x
:
'
41
%'
,
x
:
'
36
%'
,
y
:
'40%'
,
itemGap
:
50
,
textStyle
:
{
color
:
'#
fff
'
,
color
:
'#
8a8a8a
'
,
fontSize
:
18
,
fontWeight
:
'normal'
,
},
...
...
@@ -431,12 +432,14 @@ export class HomeComponent implements OnInit, AfterViewInit {
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
if
(
res
.
data
.
length
>
0
)
{
this
.
noData
=
false
;
const
response
=
res
.
data
;
this
.
setAlarmTrend
(
response
);
}
else
{
this
.
message
.
warning
(
'告警趋势暂无数据'
)
;
this
.
noData
=
true
;
}
}
else
{
this
.
noData
=
true
;
this
.
message
.
error
(
res
.
errMsg
);
}
this
.
isTrendLoading
=
false
;
...
...
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