...
|
...
|
@@ -1285,16 +1285,27 @@ layui.define(['xmSelect', 'md5'], function (exports) { |
|
|
if (layHref.indexOf('=') !== -1) {
|
|
|
param = "=" + encodeURIComponent(layHref.split('=')[1]);
|
|
|
}
|
|
|
alink.setAttribute("lay-href",layHref.split('=')[0] + param);
|
|
|
alink.setAttribute("lay-href", layHref.split('=')[0] + param);
|
|
|
document.body.appendChild(alink);
|
|
|
alink.click();
|
|
|
document.body.removeChild(alink);
|
|
|
},
|
|
|
openMxgraph: function (layHref) {
|
|
|
var alink = document.createElement('a');
|
|
|
var param = '';
|
|
|
if (layHref.indexOf('=') !== -1) {
|
|
|
param = "=" + encodeURIComponent(layHref.split('=')[1]);
|
|
|
}
|
|
|
alink.setAttribute("lay-href", layHref.split('=')[0] + param);
|
|
|
admin.req({
|
|
|
url: obj.domainName + '/api-web/mxgraph/getJtopoInfoById/'+layHref.split('=')[2],
|
|
|
url: obj.domainName + '/api-web/mxgraph/getJtopoInfoById/' + layHref.split('=')[2],
|
|
|
success(response) {
|
|
|
//LH 修改 弹框展示子拓扑
|
|
|
layer.open({
|
|
|
title:response.object.topoName,
|
|
|
title: response.object.topoName,
|
|
|
type: 2,
|
|
|
area:['90%','90%'],
|
|
|
content: obj.graphEditorOrigin + "/jgraph/grapheditor/viewer.html?access_token=" + localStorage.getItem('access_token') + '&id='+layHref.split('=')[2] ,//+ "&layout=organic",
|
|
|
area: ['90%', '90%'],
|
|
|
content: obj.graphEditorOrigin + "/jgraph/grapheditor/viewer.html?access_token=" + localStorage.getItem('access_token') + '&id=' + layHref.split('=')[2],//+ "&layout=organic",
|
|
|
})
|
|
|
},
|
|
|
error() {
|
...
|
...
|
|