...
|
...
|
@@ -1483,30 +1483,6 @@ layui.define(['xmSelect', 'md5'], function (exports) { |
|
|
}
|
|
|
});
|
|
|
},
|
|
|
viewResTopo: function (resId) {
|
|
|
layer.load(2);
|
|
|
admin.req({
|
|
|
url: obj.domainName + '/api-web/mxgraph/generateByResId',
|
|
|
data: {resId},
|
|
|
success(response) {
|
|
|
layer.closeAll('loading');
|
|
|
if (response && response.success) {
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
content: obj.graphEditorOrigin + "/jgraph/grapheditor/viewer.html?access_token=" + localStorage.getItem('access_token') + '&id=' + response.str + "&layout=organic",
|
|
|
area: ['98%', '98%'],
|
|
|
title: ''
|
|
|
});
|
|
|
} else {
|
|
|
layer.msg('生成资源拓扑失败!', {icon: 2});
|
|
|
}
|
|
|
},
|
|
|
error() {
|
|
|
layer.closeAll('loading');
|
|
|
layer.msg('生成资源拓扑失败...', {icon: 2});
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
viewAjView: function (reportCode, height, width) {
|
|
|
layer.load(2);
|
|
|
admin.req({
|
...
|
...
|
@@ -1533,29 +1509,70 @@ layui.define(['xmSelect', 'md5'], function (exports) { |
|
|
}
|
|
|
});
|
|
|
},
|
|
|
viewResTopo: function (resId) {
|
|
|
// layer.load(2);
|
|
|
// admin.req({
|
|
|
// url: obj.domainName + '/api-web/mxgraph/generateByResId',
|
|
|
// data: {resId},
|
|
|
// success(response) {
|
|
|
// layer.closeAll('loading');
|
|
|
// if (response && response.success) {
|
|
|
// layer.open({
|
|
|
// type: 2,
|
|
|
// content: obj.graphEditorOrigin + "/jgraph/grapheditor/viewer.html?access_token=" + localStorage.getItem('access_token') + '&id=' + response.str + "&layout=organic",
|
|
|
// area: ['98%', '98%'],
|
|
|
// title: ''
|
|
|
// });
|
|
|
// } else {
|
|
|
// layer.msg('生成资源拓扑失败!', {icon: 2});
|
|
|
// }
|
|
|
// },
|
|
|
// error() {
|
|
|
// layer.closeAll('loading');
|
|
|
// layer.msg('生成资源拓扑失败...', {icon: 2});
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
let win = window.parent;
|
|
|
if (win) {
|
|
|
window.parent.postMessage({
|
|
|
type: 'dialog',
|
|
|
message: {'params':{},'type':'openResTopo','title':'业务拓扑','params':{'resId':resId}}
|
|
|
}, '*')
|
|
|
}
|
|
|
},
|
|
|
|
|
|
viewBizTopo: function (busId) {
|
|
|
layer.load(2);
|
|
|
admin.req({
|
|
|
url: obj.domainName + '/api-web/mxgraph/generateByBusId',
|
|
|
data: {busId},
|
|
|
success(response) {
|
|
|
layer.closeAll('loading');
|
|
|
if (response && response.success) {
|
|
|
layer.open({
|
|
|
type: 2,
|
|
|
content: obj.graphEditorOrigin + "/jgraph/grapheditor/viewer.html?access_token=" + localStorage.getItem('access_token') + '&id=' + response.str + "&layout=organic",
|
|
|
area: ['98%', '98%'],
|
|
|
title: ''
|
|
|
});
|
|
|
} else {
|
|
|
layer.msg('生成业务拓扑失败!', {icon: 2});
|
|
|
}
|
|
|
},
|
|
|
error() {
|
|
|
layer.closeAll('loading');
|
|
|
layer.msg('生成业务拓扑失败...', {icon: 2});
|
|
|
}
|
|
|
});
|
|
|
// layer.load(2);
|
|
|
// admin.req({
|
|
|
// url: obj.domainName + '/api-web/mxgraph/generateByBusId',
|
|
|
// data: {busId},
|
|
|
// success(response) {
|
|
|
// layer.closeAll('loading');
|
|
|
// if (response && response.success) {
|
|
|
// layer.open({
|
|
|
// type: 2,
|
|
|
// content: obj.graphEditorOrigin + "/jgraph/grapheditor/viewer.html?access_token=" + localStorage.getItem('access_token') + '&id=' + response.str + "&layout=organic",
|
|
|
// area: ['98%', '98%'],
|
|
|
// title: ''
|
|
|
// });
|
|
|
// } else {
|
|
|
// layer.msg('生成业务拓扑失败!', {icon: 2});
|
|
|
// }
|
|
|
// },
|
|
|
// error() {
|
|
|
// layer.closeAll('loading');
|
|
|
// layer.msg('生成业务拓扑失败...', {icon: 2});
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
let win = window.parent;
|
|
|
if (win) {
|
|
|
window.parent.postMessage({
|
|
|
type: 'dialog',
|
|
|
message: {'params':{},'type':'openBizTopo','title':'业务拓扑','params':{'busId':busId}}
|
|
|
}, '*')
|
|
|
}
|
|
|
},
|
|
|
|
|
|
/**
|
...
|
...
|
|