数据字典为系统中可能用到的字典类型数据提供了使用的便利性和可维护性。以下拉框标签<t:dictSelect>为例进行讲解
数据字典维护,比如有个项目中需要设置单位是否启用,那么需要在数据字典处维护是否启用数据字典类型,启用的值为1,未启用值为0
字典编码为isable
那么在录入修改页面需要添加如下标签:
<t:dictSelect id="isable" field="isable" typeGroupCode="isable" defaultVal="${unitInfoPage.isable}" title=""></t:dictSelect>
dictSelect此标签有以下几个属性:
属性名 | 类型 | 述描 | 是不是必须 | 认默值 |
typeGroupCode | string | 字典分组码编 | 是 | null |
field | string | 对应表单(实体类的属性名称) | 是 | null |
id | string | 一唯标识 | 否 | null |
title | string | 表现文本 | 否 | null |
defaultVal | string | 认默值(对于修改页面非常有用) | 否 | null |
divClass | string | DIV框认默款式 | 否 | form |
labelClass | string | LABEL认默款式 | 否 | Validform_label |
页面显示如下: