修改菜单问题

This commit is contained in:
qiankunpingtai
2019-11-06 15:49:59 +08:00
parent 5f3501a569
commit 3e3c1d75d9
2 changed files with 11 additions and 9 deletions

View File

@@ -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 @@
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",

View File

@@ -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);
} }
} }