a137268431 发表于 2016-7-25 14:36:55

组织结构报空指针

版本3.6.5

http://img.blog.csdn.net/20160725143444167?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center

组织结构点击角色设置无数据

http://img.blog.csdn.net/20160725143636053?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQv/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/Center

admin 发表于 2016-7-25 17:53:07

解决了,看附件

a137268431 发表于 2016-7-25 18:25:46

admin 发表于 2016-7-25 17:53 static/image/common/back.gif
解决了,看附件

        if (curChildList != null && curChildList.size() > 0) {
                        tree.setState("closed");
                        tree.setChecked(false);

            if (recursive) { // 递归查询子节点
                List<ComboTree> children = new ArrayList<ComboTree>();
                List nextChildList = new ArrayList(curChildList);
                for (Object childObj : nextChildList) {
                  ComboTree t = comboTree(childObj, comboTreeModel, in, recursive);
                  children.add(t);
                }
                tree.setChildren(children);
            }
            curChildList.clear();
      }

直接这样更好吧!提到git上吧
页: [1]
查看完整版本: 组织结构报空指针