Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
3e3c1d75
Commit
3e3c1d75
authored
Nov 06, 2019
by
qiankunpingtai
Browse files
修改菜单问题
parent
5f3501a5
Changes
2
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/manage/roleFunctions.html
View file @
3e3c1d75
...
@@ -48,16 +48,17 @@
...
@@ -48,16 +48,17 @@
}
}
}
}
//cnodes = cnodes.substring(0, cnodes.length - 1);
//cnodes = cnodes.substring(0, cnodes.length - 1);
pnodes
=
pnodes
.
substring
(
0
,
pnodes
.
length
-
1
);
//
pnodes = pnodes.substring(0, pnodes.length - 1);
if
(
ctype
==
'
child
'
)
{
if
(
ctype
==
'
child
'
)
{
return
cnodes
;
return
cnodes
;
}
}
else
{
else
if
(
"
all
"
){
return
pnodes
return
cnodes
+
pnodes
;
}
else
{
return
pnodes
;
}
}
;
}
};
$
(
function
()
{
$
(
function
()
{
...
@@ -84,7 +85,7 @@
...
@@ -84,7 +85,7 @@
info
:
JSON
.
stringify
({
info
:
JSON
.
stringify
({
type
:
type
,
type
:
type
,
keyid
:
url_id
,
keyid
:
url_id
,
value
:
GetNode
(
'
child
'
)
value
:
GetNode
(
'
all
'
)
})
})
},
},
dataType
:
"
json
"
,
dataType
:
"
json
"
,
...
...
src/main/java/com/jsh/erp/controller/FunctionsController.java
View file @
3e3c1d75
...
@@ -154,9 +154,10 @@ public class FunctionsController {
...
@@ -154,9 +154,10 @@ public class FunctionsController {
if
((
"admin"
).
equals
(
loginName
))
{
if
((
"admin"
).
equals
(
loginName
))
{
dataList
.
add
(
fun
);
dataList
.
add
(
fun
);
}
else
{
}
else
{
if
(!(
"系统管理"
).
equals
(
fun
.
getName
()))
{
// if(!("系统管理").equals(fun.getName())) {
dataList
.
add
(
fun
);
// dataList.add(fun);
}
// }
dataList
.
add
(
fun
);
}
}
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment