Authored by wangtao

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

... ... @@ -1519,19 +1519,7 @@ layui.define(['xmSelect', 'md5'], function (exports) {
},
viewBizTopo: function (busId) {
layer.load(2);
let win = window.parent;
if (win) {
window.parent.postMessage({
type: 'openBizTopo',
message: {
params:{
'busId':busId,
},
title:"",
}
}, '*')
}
/*admin.req({
admin.req({
url: obj.domainName + '/api-web/mxgraph/generateByBusId',
data: {busId},
success(response) {
... ... @@ -1551,7 +1539,7 @@ layui.define(['xmSelect', 'md5'], function (exports) {
layer.closeAll('loading');
layer.msg('生成业务拓扑失败...', {icon: 2});
}
});*/
});
},
/**
... ...
... ... @@ -195,13 +195,34 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
//子菜单点击事件
$("#mainindex_menubox ul>li").unbind("click").on("click", function () {
var type = $(this).attr("type");
let win = window.parent;
switch (type) {
case 'a':
$("#mainindex_menubox").attr("lay-href", "/alarm/activewarning/bizId=" + bizId)
// $("#mainindex_menubox").attr("lay-href", "/alarm/activewarning/bizId=" + bizId)
if (win){
window.parent.postMessage({
type: 'custom-jump-menu-event',
message: {
'path':'Alarmcenter/Alarmmanagement',
'type':"JumpToMenu"
}
}, '*')
}
break;
case 't':
if (topoId && topoId != "undefined") {
$("#mainindex_menubox").attr("lay-href", "/mxgraph/view/id=" + topoId)
// $("#mainindex_menubox").attr("lay-href", "/mxgraph/view/id=" + topoId)
if (win) {
window.parent.postMessage({
type: 'openResTopo',
message: {
params:{
'resId':topoId,
},
title:"",
}
}, '*')
}
} else {
$("#mainindex_menubox").removeAttr("lay-href");
layer.msg("暂未绑定默认拓扑,请先绑定默认拓扑!", {icon: 7, time: 3000});
... ... @@ -209,10 +230,19 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
break;
case 'r':
if (resNum) {
$("#mainindex_menubox").attr("lay-href", "/biz/list/bizId=" + bizId);
// $("#mainindex_menubox").attr("lay-href", "/biz/list/bizId=" + bizId);
if (win){
window.parent.postMessage({
type: 'custom-jump-menu-event',
message: {
'path':'Monitoringmanagement/Monitoringview/Listview',
'type':"JumpToMenu"
}
}, '*')
}
admin.sideFlexible();
} else {
$("#mainindex_menubox").removeAttr("lay-href");
// $("#mainindex_menubox").removeAttr("lay-href");
layer.msg("暂未绑定资源!", {icon: 7, time: 3000});
}
break;
... ... @@ -685,7 +715,19 @@ layui.define(['common', 'swiper', 'admin', 'commonDetail', 'mxClient', 'sessions
// 查看拓扑
$('.bizcard-view-topo').unbind('click').on('click', function () {
common.viewBizTopo($(this).data('busid'));
// common.viewBizTopo($(this).data('busid'));
let win = window.parent;
if (win) {
window.parent.postMessage({
type: 'openBizTopo',
message: {
params:{
'busId':$(this).data('busid'),
},
title:"",
}
}, '*')
}
});
}
... ...