Toggle navigation
Toggle navigation
This project
Loading...
Sign in
monitor_v3
/
hg-monitor-web
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Plain Diff
Browse Files
Authored by
王涛
2 years ago
Commit
217080b3a4f44827cd9c084377afeac69754a307
2 parents
8218df01
6d9b7f11
Merge branch 'master-mj-ztq' into 'master-mj'
首页点击跳转页面,拓扑弹窗使用平台方法 See merge request
!1100
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
49 additions
and
19 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/common.js
hg-monitor-web-base/src/main/resources/static/src/controller/main-biz-card.js
hg-monitor-web-base/src/main/resources/static/src/controller/common.js
View file @
217080b
...
...
@@ -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
});
}
});
*/
});
},
/**
...
...
hg-monitor-web-base/src/main/resources/static/src/controller/main-biz-card.js
View file @
217080b
...
...
@@ -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
:
""
,
}
},
'*'
)
}
});
}
...
...
Please
register
or
login
to post a comment