Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
wangtao
2 years ago
Commit
6943346f352a67e87837005f9ed5b6157b922340
1 parent
777ec107
chore: 拓扑迁移;
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/mxgraphView.js
hg-monitor-web-base/src/main/resources/static/src/controller/mxgraphView.js
View file @
6943346
...
...
@@ -317,7 +317,12 @@ layui.define(['common', 'sessions', 'commonDetail', 'mxClient', 'cascader'], fun
//编辑拓扑
$
(
"#gotoedittopo"
).
unbind
(
'click'
).
on
(
"click"
,
function
()
{
var
url
=
"/grapheditor-web/jgraph/grapheditor/index.html?access_token="
+
accessToken
+
'&id='
+
topoId
;
window
.
open
(
url
);
// window.open(url);
window
.
parent
.
postMessage
({
type
:
'dialog'
,
message
:
{
'params'
:{},
'title'
:
'编辑拓扑'
,
'url'
:
url
}
},
'*'
)
});
}
}
else
{
...
...
@@ -338,7 +343,12 @@ layui.define(['common', 'sessions', 'commonDetail', 'mxClient', 'cascader'], fun
// $(this).attr("lay-href","/mxgraph/setting/id="+topoId);
//新版本
var
url
=
"/grapheditor-web/jgraph/grapheditor/index.html?access_token="
+
accessToken
+
'&id='
+
topoId
;
window
.
open
(
url
);
//window.open(url);
debugger
window
.
parent
.
postMessage
({
type
:
'dialog'
,
message
:
{
'params'
:{},
'title'
:
'编辑拓扑'
,
'url'
:
url
}
},
'*'
)
});
//全屏查看拓扑
$
(
"#gotoviewtopo"
).
unbind
(
"click"
).
on
(
"click"
,
function
()
{
...
...
Please
register
or
login
to post a comment