修改菜单问题
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user