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
Email Patches
Plain Diff
Browse Files
Authored by
王涛
3 years ago
Commit
ed9879955baa131f035a69021ae035f366558af5
1 parent
91af2b56
通过匹配配置信息动态跳转到指定的设计页面
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
33 additions
and
2 deletions
hg-monitor-web-base/src/main/resources/static/src/controller/commonDetail.js
hg-monitor-web-base/src/main/resources/static/src/controller/commonDetail.js
View file @
ed98799
...
...
@@ -3124,6 +3124,37 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
},
//打开弹框
openNewWin
:
function
(
url
,
name
,
params
,
editFlag
,
fn
,
cancelfn
,
type
,
sign_
)
{
debugger
// Start Wang 2022/3/2 16:25 获取AJ配置页面信息
var
type
=
1
;
var
content
=
''
;
admin
.
req
({
url
:
common
.
domainName
+
`
/
api
-
web
/
ajConfig
/
getConfig
?
resType
=
$
{
params
.
resType
}
&
os
=
$
{
params
.
os
}
&
provider
=
$
{
params
.
provider
}
`
,
async
:
false
,
data
:
{},
success
(
res
)
{
if
(
res
&&
res
.
success
&&
res
.
object
){
var
item
=
res
.
object
;
type
=
2
;
var
arr
=
[];
arr
.
push
(
item
.
designPage
);
var
param
=
item
.
param
;
if
(
param
){
param
=
param
.
replace
(
'#resId'
,
params
.
resId
).
replace
(
'#access_token'
,
localStorage
.
getItem
(
"access_token"
));
arr
.
push
(
param
);
}
// 获取
content
=
sessionStorage
.
getItem
(
"ajWeb"
)
+
'/#/bigscreen/viewer?reportCode='
+
arr
.
join
(
'&'
);
}
},
error
()
{
//layer.closeAll('loading');
}
});
// End Wang 2022/3/2 17:23
//新视图设置百分百
var
area
=
sign_
?[
'100%'
,
'100%'
]:[
'90%'
,
'90%'
];
if
(
!
name
){
name
=
"信息"
;
}
...
...
@@ -3136,11 +3167,11 @@ layui.define(['laytpl', 'admin', 'form', 'table', 'echarts', 'sessions', 'xmSele
view
(
'commonViewModel'
).
render
(
url
).
then
(
function
(
res
)
{
layer
.
open
({
title
:
[
name
,
'font-size:20px;background-color: #d0ddec;'
],
type
:
1
,
type
:
type
,
id
:
md5
(
url
),
area
:
area
,
shadeClose
:
true
,
//开启遮罩层
content
:
laytpl
(
res
.
body
).
render
(
JSON
.
stringify
(
params
))
,
content
:
content
==
''
?
laytpl
(
res
.
body
).
render
(
JSON
.
stringify
(
params
))
:
content
,
btn
:
btns
,
move
:
false
,
success
:
function
(
layero
,
index
){
...
...
Please
register
or
login
to post a comment