Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
蔡永松
/
fontweb-dc
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
152bcbf5
authored
2020-08-10 14:42:17 +0800
by
焦小希
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修改跳转
1 parent
520f9f50
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
5 deletions
src/main/webapp/js/index/index.js
src/main/webapp/js/index/index.js
View file @
152bcbf
...
...
@@ -80,8 +80,22 @@ $(document).ready(function () {
});
loadpage
();
//默认隐藏菜单
var
type
=
window
.
location
.
href
.
split
(
'?'
)[
1
].
split
(
'='
)[
1
];
if
(
type
==
2
){
var
text
=
'实施监督预警'
var
domId
=
'btnMenuMonitorEvaluate'
menuitemChange
(
text
,
domId
)
}
// else if (type == 1){
// var text = '规划成果审查'
// var domId='btnMenuReviewManage'
// menuitemChange(text,domId)
// }else if (type == 3){
// var text = '批后监管'
// var domId='btnMenupihouguanli'
// menuitemChange(text,domId)
// }
// 默认隐藏菜单
$
(
"#supervisiondoc"
).
css
(
'display'
,
'none'
);
$
(
"#managerdoc"
).
css
(
'display'
,
'none'
);
$
(
"#archivedoc"
).
css
(
'display'
,
'none'
);
...
...
@@ -347,9 +361,10 @@ function listByRoleIdSucceFunc(data, object, navigator, divId, nav, text) {
resources
=
data
;
var
resourceData
=
spanningTree
(
data
);
vm
.
menuList
=
resourceData
;
console
.
log
(
vm
.
menuList
)
var
resource
=
null
;
if
(
resources
&&
privilege
)
{
debugger
if
(
nav
)
{
for
(
var
i
=
0
;
i
<
resources
.
length
;
i
++
)
{
var
val
=
resources
[
i
];
...
...
@@ -770,7 +785,7 @@ function chooseOpreation(obj) {
checkLocalCache
();
isgis
=
false
;
parentId
=
$
(
obj
).
attr
(
"value"
);
menuitemChange
(
text
,
domId
);
//
menuitemChange(text, domId);
}
function
iframeloadgis
()
{
...
...
@@ -1544,7 +1559,6 @@ function initFirstMenu() {
dataType
:
"json"
,
async
:
false
,
success
:
function
(
data
)
{
debugger
var
menus
=
data
.
lists
;
menuNavList
=
menus
;
var
resourceSortList
=
data
.
resourceSort
;
...
...
Please
register
or
sign in
to post a comment