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
c1652f15
Commit
c1652f15
authored
Jan 15, 2019
by
wangqinghua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
templateid
parent
d3ab3bcc
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
9 deletions
+12
-9
basi-check.component.ts
src/main/webapp/app/modal/basi-check/basi-check.component.ts
+4
-1
ne-topology.component.html
...pp/app/netTopology/ne-topology/ne-topology.component.html
+2
-2
ne-topology.component.ts
...bapp/app/netTopology/ne-topology/ne-topology.component.ts
+4
-4
jtopo-editor.js
src/main/webapp/content/javascript/jtopo/js/jtopo-editor.js
+2
-2
No files found.
src/main/webapp/app/modal/basi-check/basi-check.component.ts
View file @
c1652f15
...
...
@@ -79,6 +79,7 @@ export class BasiCheckComponent implements OnInit {
snmp_oid
:
[
'interfaces.ifTable.ifEntry.ifInOctets.1'
],
snmp_community
:
[
'public'
],
applications
:
[
null
],
templateid
:[
null
],
});
this
.
triggerObj
=
{
condition
:
''
,
...
...
@@ -216,8 +217,10 @@ export class BasiCheckComponent implements OnInit {
//修改监控项
update
()
{
this
.
validateForm
.
patchValue
({
templateid
:
this
.
templateid
})
this
.
validateForm
.
addControl
(
'itemid'
,
new
FormControl
(
this
.
itemId
));
this
.
validateForm
.
addControl
(
'templateid'
,
new
FormControl
(
this
.
templateid
));
this
.
overAllSer
.
itemUpdata
(
this
.
validateForm
.
value
).
subscribe
(
(
res
)
=>
{
if
(
res
.
errCode
==
10000
)
{
...
...
src/main/webapp/app/netTopology/ne-topology/ne-topology.component.html
View file @
c1652f15
...
...
@@ -52,8 +52,8 @@
<span
aria-hidden=
"true"
title=
"全屏查看"
onClick=
"editor.utils.showInFullScreen(editor.stage.canvas,'RequestFullScreen')"
>
全屏查看
</span>
<span
aria-hidden=
"true"
title=
"居中显示"
onClick=
"editor.utils.showInCenter()"
>
居中显示
</span>
<span
aria-hidden=
"true"
title=
"编辑"
(
click
)="
changeEdit
('编辑')"
>
编辑
</span>
<span
aria-hidden=
"true"
title=
"只读"
(
click
)="
changeEdit
('只读')"
>
只读
</span>
<span
aria-hidden=
"true"
title=
"编辑"
(
click
)="
changeEdit
('编辑
模式
')"
>
编辑
</span>
<span
aria-hidden=
"true"
title=
"只读"
(
click
)="
changeEdit
('只读
模式
')"
>
只读
</span>
<span
aria-hidden=
"true"
title=
"保存"
(
click
)="
update
()"
>
保存
</span>
<span
aria-hidden=
"true"
title=
"清空"
onClick=
"editor.utils.clearTopology()"
>
清空
</span>
<span
aria-hidden=
"true"
title=
"放大"
onClick=
"editor.utils.scalingBig()"
>
放大
</span>
...
...
src/main/webapp/app/netTopology/ne-topology/ne-topology.component.ts
View file @
c1652f15
...
...
@@ -97,7 +97,7 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
refreshRete
;
options
;
lineType
=
"1"
;
//线条类型
editType
=
"只读"
;
//拓扑图状态
editType
=
"只读
模式
"
;
//拓扑图状态
checkJson
=
[];
fileList
:
UploadFile
[]
=
[];
...
...
@@ -181,10 +181,10 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
//
changeEdit
(
type
){
if
(
type
==
'编辑'
){
if
(
type
==
'编辑
模式
'
){
editor
.
utils
.
editTopology
()
}
if
(
type
==
'只读'
){
if
(
type
==
'只读
模式
'
){
editor
.
utils
.
normalTopology
()
}
this
.
editType
=
type
;
...
...
@@ -242,7 +242,7 @@ export class NeTopologyComponent implements OnInit, DoCheck, AfterViewInit, OnDe
}
this
.
topologySer
.
findByHostIdOrWeb
(
data
).
subscribe
(
(
res
)
=>
{
editor
.
utils
.
addNode
(
res
.
data
[
0
].
url
,
'
图片
'
,
e
[
0
]);
editor
.
utils
.
addNode
(
res
.
data
[
0
].
url
,
''
,
e
[
0
]);
}
)
}
...
...
src/main/webapp/content/javascript/jtopo/js/jtopo-editor.js
View file @
c1652f15
...
...
@@ -191,9 +191,9 @@ function TopologyEditor() {
itemId
:[]
};
// 布局参数
this
.
layout
=
{}
this
.
layout
=
{}
;
// 绘图区属性
this
.
stage
=
null
this
.
stage
=
null
;
this
.
scene
=
null
// 当前模式
this
.
stageMode
=
'normal'
...
...
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