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
46ccb72e
Commit
46ccb72e
authored
Jan 14, 2019
by
xiaowenjie
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://180.168.156.212:2903/qinghua/smart
parents
1baf0a43
bed93c58
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
92 additions
and
75 deletions
+92
-75
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
flow-trend.component.html
...bapp/app/netTopology/flow-trend/flow-trend.component.html
+74
-69
line.component.ts
src/main/webapp/app/netTopology/model/line/line.component.ts
+2
-2
basic.component.html
src/main/webapp/app/overAll/basic/basic.component.html
+1
-1
jtopo-editor.js
src/main/webapp/content/javascript/jtopo/js/jtopo-editor.js
+0
-1
No files found.
src/main/webapp/app/home/home.component.html
View file @
46ccb72e
...
...
@@ -117,7 +117,7 @@
<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>
</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.continuedTime}}
</td>
</tr>
...
...
src/main/webapp/app/home/home.component.ts
View file @
46ccb72e
...
...
@@ -7,6 +7,7 @@ import {AlarmService} from '../alarm/alarm.service';
import
{
NzMessageService
}
from
'ng-zorro-antd'
;
import
{
LayoutService
}
from
'../layouts/layout.service'
;
import
{
SelectGroupComponent
}
from
'../modal/select-group/select-group.component'
;
import
{
Router
}
from
'@angular/router'
;
@
Component
({
selector
:
'jhi-home'
,
...
...
@@ -83,7 +84,8 @@ export class HomeComponent implements OnInit,AfterViewInit {
private
alarmSer
:
AlarmService
,
private
renderer
:
Renderer2
,
private
layoutSer
:
LayoutService
,
private
principal
:
Principal
,
private
eventManager
:
JhiEventManager
private
eventManager
:
JhiEventManager
,
private
router
:
Router
)
{
}
...
...
@@ -105,6 +107,17 @@ export class HomeComponent implements OnInit,AfterViewInit {
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
(){
this
.
layoutSer
.
myFollow
().
subscribe
(
...
...
src/main/webapp/app/netTopology/flow-trend/flow-trend.component.html
View file @
46ccb72e
...
...
@@ -34,31 +34,33 @@
</ng-container>
</nz-select>
</div>
<div
nz-col
nzSpan=
"7"
>
<nz-radio-group
style=
"width: 100%;"
[(
ngModel
)]="
timeType
"
(
ngModelChange
)="
changeType
()"
[
nzButtonStyle
]="'
solid
'"
>
<label
nz-radio-button
nzValue=
"1"
>
今天
</label>
<label
nz-radio-button
nzValue=
"2"
>
昨天
</label>
<label
nz-radio-button
nzValue=
"3"
>
三天
</label>
<label
nz-radio-button
nzValue=
"4"
>
一周
</label>
<label
nz-radio-button
nzValue=
"5"
>
自定义
</label>
</nz-radio-group>
</div>
<div
nz-col
nzSpan=
"8"
>
<ng-container
*
ngIf=
"timeType == '5'"
>
<nz-date-picker
nzShowTime
[(
ngModel
)]="
timeBegin
"
nzPlaceHolder=
"开始时间"
></nz-date-picker>
<nz-date-picker
nzShowTime
nzFormat=
"yyyy-MM-dd HH:mm:ss"
[(
ngModel
)]="
timeEnd
"
nzPlaceHolder=
"结束时间"
></nz-date-picker>
</ng-container>
</div>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<div
nz-col
nzSpan=
"7"
>
<nz-radio-group
style=
"width: 100%;"
[(
ngModel
)]="
timeType
"
(
ngModelChange
)="
changeType
()"
[
nzButtonStyle
]="'
solid
'"
>
<label
nz-radio-button
nzValue=
"1"
>
今天
</label>
<label
nz-radio-button
nzValue=
"2"
>
昨天
</label>
<label
nz-radio-button
nzValue=
"3"
>
三天
</label>
<label
nz-radio-button
nzValue=
"4"
>
一周
</label>
<label
nz-radio-button
nzValue=
"5"
>
自定义
</label>
</nz-radio-group>
</div>
<div
nz-col
nzSpan=
"8"
>
<ng-container
*
ngIf=
"timeType == '5'"
>
<nz-date-picker
nzShowTime
[(
ngModel
)]="
timeBegin
"
nzPlaceHolder=
"开始时间"
></nz-date-picker>
<nz-date-picker
nzShowTime
nzFormat=
"yyyy-MM-dd HH:mm:ss"
[(
ngModel
)]="
timeEnd
"
nzPlaceHolder=
"结束时间"
></nz-date-picker>
</ng-container>
</div>
</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>
...
...
@@ -71,49 +73,52 @@
<div
echarts
[
options
]="
chartOption
"
style=
"height: 400px;width: 100%"
></div>
</ng-container>
</nz-spin>
<nz-tabset
[
nzTabPosition
]="'
top
'"
[
nzType
]="'
card
'"
>
<nz-tab
nzTitle=
"接收流量排行"
>
<nz-table
#
nzTable
[
nzData
]="
inList
"
[
nzLoading
]="
inLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
inTotalNum
"
[
nzPageIndex
]="
inPageNum
"
[
nzPageSize
]="
inPageCount
"
(
nzPageIndexChange
)="
inChnagePage
($
event
)"
>
<thead>
<tr>
<th
nzWidth=
"20%"
>
监测点名称
</th>
<th>
最大值
</th>
<th>
最小值
</th>
<th>
平均值
</th>
</tr>
</thead>
<tbody>
<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>
<ng-container
*
ngIf=
"echartType == 'history'"
>
<nz-tabset
[
nzTabPosition
]="'
top
'"
[
nzType
]="'
card
'"
>
<nz-tab
nzTitle=
"接收流量排行"
>
<nz-table
#
nzTable
[
nzData
]="
inList
"
[
nzLoading
]="
inLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
inTotalNum
"
[
nzPageIndex
]="
inPageNum
"
[
nzPageSize
]="
inPageCount
"
(
nzPageIndexChange
)="
inChnagePage
($
event
)"
>
<thead>
<tr>
<th
nzWidth=
"20%"
>
监测点名称
</th>
<th>
最大值
</th>
<th>
最小值
</th>
<th>
平均值
</th>
</tr>
</ng-container
>
</
tbody>
</nz-table
>
</nz-tab
>
<nz-tab
nzTitle=
"发送流量排行"
>
<nz-table
#
nzTable
[
nzData
]="
outList
"
[
nzLoading
]="
outLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
outTotalNum
"
[
nzPageIndex
]="
outPageNum
"
[
nzPageSize
]="
outPageCount
"
(
nzPageIndexChange
)="
outChnagePage
($
event
)"
>
<thea
d>
<tr
>
<th
nzWidth=
"20%"
>
监测点名称
</th
>
<
th>
最大值
</th
>
<
th>
最小值
</th
>
<th>
平均值
</th
>
</tr
>
</thead
>
<
tbody
>
<ng-container
*
ngFor=
"let data of outList"
>
<tr
class=
"cursor"
(
click
)="
getEcharts
(
data
.
itemid
)"
>
<t
d>
{{data.itemName}}
</td
>
<t
d>
{{data.max | toUtil}}
</td
>
<t
d>
{{data.min | toUtil}}
</td
>
<t
d>
{{data.avg | toUtil}}
</td
>
</thead
>
<
tbody>
<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}}
</t
d>
<td>
{{item.avg | toUtil}}
</td
>
</tr
>
<
/ng-container
>
<
/tbody
>
</nz-table
>
</nz-tab
>
<nz-tab
nzTitle=
"发送流量排行"
>
<
nz-table
#
nzTable
[
nzData
]="
outList
"
[
nzLoading
]="
outLoading
"
[
nzFrontPagination
]="
false
"
[
nzTotal
]="
outTotalNum
"
[
nzPageIndex
]="
outPageNum
"
[
nzPageSize
]="
outPageCount
"
(
nzPageIndexChange
)="
outChnagePage
($
event
)"
>
<thead
>
<tr>
<t
h
nzWidth=
"20%"
>
监测点名称
</th
>
<t
h>
最大值
</th
>
<t
h>
最小值
</th
>
<t
h>
平均值
</th
>
</tr>
</ng-container>
</tbody>
</nz-table>
</nz-tab>
</nz-tabset>
</thead>
<tbody>
<ng-container
*
ngFor=
"let data of outList"
>
<tr
class=
"cursor"
(
click
)="
getEcharts
(
data
.
itemid
)"
>
<td>
{{data.itemName}}
</td>
<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>
src/main/webapp/app/netTopology/model/line/line.component.ts
View file @
46ccb72e
...
...
@@ -120,7 +120,7 @@ export class LineComponent implements OnInit {
this
.
totalNum
=
res
.
data
.
totalNum
;
this
.
inList
=
res
.
data
.
data
;
this
.
inList
.
forEach
(
e
=>
{
//进口流量回显
if
(
e
.
itemId
=
this
.
itemId
[
0
]){
if
(
e
.
itemId
=
=
this
.
itemId
[
0
]){
e
.
checked
=
true
;
}
})
...
...
@@ -143,7 +143,7 @@ export class LineComponent implements OnInit {
this
.
totalNum
=
res
.
data
.
totalNum
;
this
.
outList
=
res
.
data
.
data
;
this
.
outList
.
forEach
(
e
=>
{
if
(
e
.
itemId
=
this
.
itemId
[
1
]){
//出口流量回显
if
(
e
.
itemId
=
=
this
.
itemId
[
1
]){
//出口流量回显
e
.
checked
=
true
;
}
})
...
...
src/main/webapp/app/overAll/basic/basic.component.html
View file @
46ccb72e
...
...
@@ -72,7 +72,7 @@
<tr>
<th
[
nzChecked
]="
allChecked
"
></th>
<th>
名称
</th>
<th>
告警
状态
</th>
<th>
告警
</th>
<th>
关联资产
</th>
<!--<th nzWidth="20%">主机启用状态</th>-->
<th>
可用性
</th>
...
...
src/main/webapp/content/javascript/jtopo/js/jtopo-editor.js
View file @
46ccb72e
...
...
@@ -84,7 +84,6 @@ TopologyPanel.prototype.loadTopology = function (response, topologyGuid, backImg
TopologyPanel
.
prototype
.
loadTopologyByJson
=
function
(
topologyJson
,
backImg
)
{
try
{
JTopo
.
replaceStageWithJson
(
topologyJson
)
var
timer
=
$interval
(
function
(){},
100
,
10
);
if
(
editor
.
stage
&&
editor
.
scene
&&
editor
.
scene
.
childs
&&
editor
.
scene
.
childs
.
length
>
0
)
{
editor
.
stage
.
centerAndZoom
()
console
.
log
(
editor
.
utils
.
getAllNodes
()[
0
]);
...
...
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