...
|
...
|
@@ -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:"",
|
|
|
}
|
|
|
}, '*')
|
|
|
}
|
|
|
});
|
|
|
}
|
|
|
|
...
|
...
|
|