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
953e286e
authored
2020-08-10 16:36:37 +0800
by
weimo934
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
跳转功能完善
1 parent
152bcbf5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
23 deletions
src/main/webapp/index.jsp
src/main/webapp/js/index/index.js
src/main/webapp/index.jsp
View file @
953e286
This diff is collapsed.
Click to expand it.
src/main/webapp/js/index/index.js
View file @
953e286
...
...
@@ -41,6 +41,7 @@ $(document).ready(function () {
//获取登录信息
getLoginInfo
();
//加载权限
loadResources
();
// loadAllDucumentCount("all");
...
...
@@ -58,6 +59,28 @@ $(document).ready(function () {
});
//初始化一级菜单
initFirstMenu
();
var
type
=
window
.
location
.
href
.
split
(
'?'
)[
1
].
split
(
'='
)[
1
];
debugger
if
(
type
==
2
){
let
text
=
'实施监督预警'
let
domId
=
'btnMenuMonitorEvaluate'
checkLocalCache
();
parentId
=
't0109_4028d839708bbb6d01708c957d2e0552'
;
menuitemChange
(
text
,
domId
)
}
else
if
(
type
==
1
){
let
text
=
'规划成果审查'
let
domId
=
'btnMenuReviewManage'
parentId
=
't0109_4028d839708bbb6d01708c4babc70004'
checkLocalCache
();
menuitemChange
(
text
,
domId
)
}
else
if
(
type
==
3
){
let
text
=
'批后监管'
let
domId
=
'btnMenupihouguanli'
parentId
=
't0109_189986fffc7d4f1abfa54bb665f777b5'
checkLocalCache
();
menuitemChange
(
text
,
domId
)
}
$
(
"#txtSearch"
).
val
(
searchTip
);
//显示搜索框
// $("#btnDisplaySearch").click(displaySearchText);
...
...
@@ -80,21 +103,7 @@ $(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'
);
...
...
@@ -399,6 +408,8 @@ function listByRoleIdSucceFunc(data, object, navigator, divId, nav, text) {
}
function
initMenu
(
navigator
,
divId
,
nav
,
id
)
{
debugger
console
.
log
(
"initMenu==============================="
)
if
(
id
)
{
parentId
=
id
;
}
...
...
@@ -436,6 +447,7 @@ function initMenu(navigator, divId, nav, id) {
async
:
false
,
data
:
paraData
,
success
:
function
(
data
)
{
debugger
listByRoleIdSucceFunc
(
data
,
object
,
navigator
,
divId
,
nav
);
if
(
window
.
globalLocalCache
)
{
window
.
globalLocalCache
.
AddCache
(
...
...
@@ -766,11 +778,11 @@ function menuLoadPage() {
}
function
chooseOpreation
(
obj
)
{
let
types
=
$
(
obj
).
context
.
innerText
;
sessionStorage
.
setItem
(
'type'
,
types
)
/*
let types=$(obj).context.innerText;
sessionStorage.setItem('type',types)
*/
var
text
=
$
(
obj
).
text
().
trim
();
var
domId
=
$
(
obj
).
attr
(
"id"
);
if
(
domId
==
"btnMenuOfficialDocument"
)
{
/*
if (domId == "btnMenuOfficialDocument") {
//20190503 机要室信息员 部长要求 机要室信息员收文发送提高速度 提前缓存
var userInfo = $.cookie('cookieuser');
userInfo = JSON.parse(userInfo);
...
...
@@ -779,13 +791,13 @@ function chooseOpreation(obj) {
if (username == '机要室信息员') {
swSendJYSXXY();
}
/*console.log(username);
$('#myInfoText').innerText(username);*/
}
/
!
*console.log(username);
$('#myInfoText').innerText(username);*
!
/
}
*/
checkLocalCache
();
isgis
=
false
;
/*isgis = false;*/
parentId
=
$
(
obj
).
attr
(
"value"
);
//
menuitemChange(text, domId);
//
/* menuitemChange(text, domId);*/
}
function
iframeloadgis
()
{
...
...
@@ -1544,6 +1556,7 @@ function myInfromation() {
}
//初始化一级菜单
function
initFirstMenu
()
{
debugger
var
menuNav
=
$
(
"#menuNav"
);
var
titleLogo
=
$
(
"#title-logo"
);
var
fResult
=
[];
...
...
@@ -2472,6 +2485,8 @@ var vm = new Vue({
});
function
spanningTree
(
data
)
{
debugger
debugger
var
dataList
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
let
formatObj
=
dataList
.
reduce
((
pre
,
cur
)
=>
{
return
{
...
pre
,
[
cur
[
'id'
]]:
cur
}
...
...
Please
register
or
sign in
to post a comment