登录后菜单显示undefined,oracle
yzz2006 发布于55月前 4答/2327阅





控制台打印出menu方法返回的值,应该是对的:[{"CODE":"sys","ICONSKIP":"icon-cog","ID":900,"LINK":"","NAME":"系统管理","OPEN":false,"PARENT_ID":0,"TYPE":"dir"},{"CODE":"biz","ICONSKIP":"icon-plugin","ID":3,"LINK":"","NAME":"综合业务","OPEN":true,"PARENT_ID":0,"TYPE":"dir"},{"CODE":"eova","ICONSKIP":"icon-bricks","ID":1,"LINK":"","NAME":"平台维护","OPEN":false,"PARENT_ID":0,"TYPE":"dir"},{"CODE":"biz_demo","ICONSKIP":"icon-bookopen","ID":1000,"LINK":"","NAME":"功能演示","OPEN":true,"PARENT_ID":3,"TYPE":"dir"},{"CODE":"biz_caidan","ICONSKIP":"icon-chartcurve","ID":1011,"LINK":"","NAME":"报表管理","OPEN":true,"PARENT_ID":1000,"TYPE":"dir"},{"CODE":"biz_demo_views","ICONSKIP":"icon-applicationlink","ID":1046,"LINK":"","NAME":"多表视图","OPEN":true,"PARENT_ID":1000,"TYPE":"dir"}]

不知道是哪里的问题

数据库用的oracle






[沙发] yzz2006
我自己解决了,用的eova1.6 beta5, 首先返回字段要是小写才行,然后默认提供的oracle数据库表数据也有问题
[地板] 落叶的心
@yzz2006 // 递归查找已授权功能的上级节点
HashSet<Integer> authPid = new HashSet<Integer>();
for (Integer id : ids) {
Menu m = getParent(menus, id);
findParent(authPid, menus, m);
}


为什么我菜单都加载不了,oracle,for (Integer id : ids) 这里报错,java.math.BigDecimal cannot be cast to java.lang.Integer
[地毯] 悲伤的逃兵
我的也是这个问题 怎么会有问题啊
[4楼] Jieven
@悲伤的逃兵 必须要用eova1.6 beta6,beta5 还未做兼容测试,请加群:452070057
purge recyclebin
提交评论
嘿,我来帮你!