Authored by 张凯

Merge branch 'master-mj' of http://113.200.75.45:82/monitor_v3/hg-monitor-web into master-mj-joke

@@ -317,7 +317,12 @@ layui.define(['common', 'sessions', 'commonDetail', 'mxClient', 'cascader'], fun @@ -317,7 +317,12 @@ layui.define(['common', 'sessions', 'commonDetail', 'mxClient', 'cascader'], fun
317 //编辑拓扑 317 //编辑拓扑
318 $("#gotoedittopo").unbind('click').on("click", function () { 318 $("#gotoedittopo").unbind('click').on("click", function () {
319 var url = "/grapheditor-web/jgraph/grapheditor/index.html?access_token=" + accessToken + '&id=' + topoId; 319 var url = "/grapheditor-web/jgraph/grapheditor/index.html?access_token=" + accessToken + '&id=' + topoId;
320 - window.open(url); 320 + // window.open(url);
  321 +
  322 + window.parent.postMessage({
  323 + type: 'dialog',
  324 + message: {'params':{},'title':'编辑拓扑','url':url}
  325 + }, '*')
321 }); 326 });
322 } 327 }
323 } else { 328 } else {
@@ -338,7 +343,12 @@ layui.define(['common', 'sessions', 'commonDetail', 'mxClient', 'cascader'], fun @@ -338,7 +343,12 @@ layui.define(['common', 'sessions', 'commonDetail', 'mxClient', 'cascader'], fun
338 // $(this).attr("lay-href","/mxgraph/setting/id="+topoId); 343 // $(this).attr("lay-href","/mxgraph/setting/id="+topoId);
339 //新版本 344 //新版本
340 var url = "/grapheditor-web/jgraph/grapheditor/index.html?access_token=" + accessToken + '&id=' + topoId; 345 var url = "/grapheditor-web/jgraph/grapheditor/index.html?access_token=" + accessToken + '&id=' + topoId;
341 - window.open(url); 346 + //window.open(url);
  347 +debugger
  348 + window.parent.postMessage({
  349 + type: 'dialog',
  350 + message: {'params':{},'title':'编辑拓扑','url':url}
  351 + }, '*')
342 }); 352 });
343 //全屏查看拓扑 353 //全屏查看拓扑
344 $("#gotoviewtopo").unbind("click").on("click", function () { 354 $("#gotoviewtopo").unbind("click").on("click", function () {