介绍

利用后台返回数据构建字典使用,用于自行定义,自行设计的字典。
创建过程中需输入自行开发的类名和方法名。

创建字典

从菜单找到数据字典功能,点击新建

数据字典填写界面

进入数据字典填写界面,填写数据字典名称、编码,数据字典类型及数据字典所属系统。
页面下方列表填写业务所需的数据字典的键值。
点击保存,成功创建列表型数据字典。

详情

案例代码

    /**
     * 构建结构性返回的树形VO
     * @param id 主键
     * @param text 展示名称 就是要展示出来的内容
     * @param code 编码 没有空
     * @param nodeInfo 节点信息 没有空
     * @param nodeInfoType 节点信息类型 没有空
     * @param iconCls 图标
     * @return
     */
    public static JSONTreeNode buildTreeNode(String id,String text,String code,String nodeInfo,String nodeInfoType,String iconCls,String parent){
        JSONTreeNode node=new JSONTreeNode();
        node.setId(id);
        node.setText(text);
        node.setCode(code);
        node.setNodeInfo(nodeInfo);
        node.setNodeInfoType(nodeInfoType);
        node.setDisabled("1");
        node.setIconCls(iconCls);
        node.setParent(parent);
        node.setLeaf(false);
        return node;
    }

关键字

1.自定义
2.后台字典
3.自定义数据字典

最后编辑: admin  文档更新时间: 2024-03-05 11:49   作者:吝志超