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
b7bcd648
Commit
b7bcd648
authored
Nov 29, 2018
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
login
parent
cb5f8692
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
25 deletions
+16
-25
flow-trend.component.ts
...webapp/app/netTopology/flow-trend/flow-trend.component.ts
+1
-10
ne-topology.component.html
...pp/app/netTopology/ne-topology/ne-topology.component.html
+8
-8
ne-topology.component.ts
...bapp/app/netTopology/ne-topology/ne-topology.component.ts
+0
-0
topology.service.ts
src/main/webapp/app/netTopology/topology.service.ts
+7
-7
jtopo-editor.js
src/main/webapp/content/javascript/jtopo/js/jtopo-editor.js
+0
-0
jtopo-0.4.8-dev(带注释版报错).js
...ent/javascript/jtopo/reference/jtopo-0.4.8-dev(带注释版报错).js
+0
-0
No files found.
src/main/webapp/app/netTopology/flow-trend/flow-trend.component.ts
View file @
b7bcd648
...
...
@@ -20,16 +20,7 @@ export class FlowTrendComponent implements OnInit {
}
loadVisTree
(
treedata
)
{
const
options
=
{
interaction
:
{
hover
:
true
,
},
manipulation
:
{
enabled
:
true
}
};
const
container
=
this
.
networkContainer
.
nativeElement
;
this
.
network
=
new
vis
.
Network
(
container
,
treedata
,
options
);
}
getTreeData
(){
...
...
src/main/webapp/app/netTopology/ne-topology/ne-topology.component.html
View file @
b7bcd648
...
...
@@ -28,20 +28,19 @@
</nz-select>
</div>
<div
nz-col
nzSpan=
"12"
class=
"text-right"
>
<button
nz-button
nzType=
"default"
><i
class=
"anticon anticon-plus"
></i>
添加
</button>
<button
nz-button
nzType=
"default"
><i
class=
"anticon anticon-pause-circle-o"
></i>
编辑
</button>
<button
nz-button
nzType=
"default"
><i
class=
"anticon anticon-play-circle-o"
></i>
删除
</button>
<button
nz-button
nzType=
"default"
><i
class=
"anticon anticon-close-circle"
></i>
暂停
</button>
<button
nz-button
(
click
)="
addTopo
()"
nzType=
"default"
><i
class=
"anticon anticon-plus"
></i>
添加
</button>
<button
nz-button
(
click
)="
editTopo
()"
nzType=
"default"
><i
class=
"anticon anticon-pause-circle-o"
></i>
编辑
</button>
<button
nz-button
(
click
)="
deleteTopo
()"
nzType=
"default"
><i
class=
"anticon anticon-play-circle-o"
></i>
删除
</button>
</div>
</div>
<div
class=
"layui-layout layui-layout-admin"
>
<div
class=
"layui-header layui-bg-gray"
>
<input
style=
"width: 200px;"
type=
"text"
[(
ngModel
)]="
name
"
nz-input
placeholder=
"请输入拓扑图名称"
>
<!-- 顶部工具栏 -->
<div
class=
"layui-nav layui-layout-right"
>
<
span
aria-hidden=
"true"
title=
"编辑"
onClick=
"editor.utils.editTopology()"
>
编辑
</span
>
<div
class=
"layui-nav layui-layout-right"
style=
"line-height: 60px"
>
<
!--<span aria-hidden="true" title="编辑" onClick="editor.utils.editTopology()">编辑</span>--
>
<span
aria-hidden=
"true"
title=
"全屏查看"
onClick=
"editor.utils.showInFullScreen(editor.stage.canvas,'RequestFullScreen')"
>
全屏查看
</span>
...
...
@@ -49,7 +48,7 @@
onClick=
"editor.utils.showInCenter()"
>
居中显示
</span>
<span
aria-hidden=
"true"
title=
"预览"
onClick=
"editor.utils.showPic()"
>
预览
</span>
<span
aria-hidden=
"true"
title=
"保存"
(
click
)="
creat
e
()"
>
保存
</span>
<span
aria-hidden=
"true"
title=
"保存"
(
click
)="
sav
e
()"
>
保存
</span>
<span
aria-hidden=
"true"
title=
"复制"
onClick=
"editor.utils.cloneSelectedNodes()"
>
复制
</span>
<span
aria-hidden=
"true"
title=
"删除"
...
...
@@ -560,6 +559,7 @@
style=
"height: 580px;width: 100%;"
>
您的浏览器不支持HTML5!
</canvas>
<span>
{{topoType}}
</span>
</div>
</div>
</div>
...
...
src/main/webapp/app/netTopology/ne-topology/ne-topology.component.ts
View file @
b7bcd648
This diff is collapsed.
Click to expand it.
src/main/webapp/app/netTopology/topology.service.ts
View file @
b7bcd648
...
...
@@ -10,28 +10,28 @@ export class TopologyService {
}
//查询所有拓扑图
findAll
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/sysmap/findAll'
,
data
);
findAll
():
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/sysmapJson/findAll'
);
}
//根据拓扑图ID查询
背景图
//根据拓扑图ID查询
findItem
(
params
):
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/sysmap/find/'
+
params
);
return
this
.
http
.
get
(
SERVER_API_URL
+
'/sysmap
Json
/find/'
+
params
);
}
//创建拓扑图
create
(
data
):
Observable
<
any
>
{
return
this
.
http
.
post
(
SERVER_API_URL
+
'/sysmap/create'
,
data
);
return
this
.
http
.
post
(
SERVER_API_URL
+
'/sysmap
Json
/create'
,
data
);
}
//修改拓扑图
update
(
data
):
Observable
<
any
>
{
return
this
.
http
.
put
(
SERVER_API_URL
+
'/sysmap/update'
,
data
);
return
this
.
http
.
put
(
SERVER_API_URL
+
'/sysmap
Json
/update'
,
data
);
}
//删除拓扑图
delete
(
params
):
Observable
<
any
>
{
return
this
.
http
.
get
(
SERVER_API_URL
+
'/sysmap/delete/'
+
params
);
return
this
.
http
.
get
(
SERVER_API_URL
+
'/sysmap
Json
/delete/'
+
params
);
}
...
...
src/main/webapp/content/javascript/jtopo/js/jtopo-editor.js
View file @
b7bcd648
This diff is collapsed.
Click to expand it.
src/main/webapp/content/javascript/jtopo/reference/jtopo-0.4.8-dev(带注释版报错).js
deleted
100755 → 0
View file @
cb5f8692
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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