jeecg3.7中DictSelect数据字典下拉选择框的用法

本文详细介绍了dictSelect控件的参数配置方法及其使用方式,包括必填与选填属性说明,如字段名称、字典表及显示文本等,并提供了一个具体的示例。

1、参数

属性名                      类型        描述                                                                  是否必须             默认值

title                          string        标题                                                                  否                         null

field                         string        控件字段名字                                                    是                          null

typeGroupCode      string       字典分组编码                                                     是                          null

type                         string       控件类型select|radio|checkbox                          否                          select

id                             string       唯一标识 否 null defaultVal string 默认值           否                          null

divClass                  string       DIV 框默认样式                                                  否                          form

labelClass               string       LABEL 默认样式                                                否                  Validfor m_label

dictTable                 string       自定义字典表                                                     否                          null

dictField                  string       自定义字典表的匹配字段-字典 的编码值            否                          null

dictText                   string       自定义字典表的显示文本-字典 的显示值             否                          null

dictCondition          string       自定义字典表的显示文本-字典 查询条件             否                          null

extendJson             string       扩展参数(json 格式)                                           否                          null

hasLabel                boolean 是否显示 Label                                                     否                          false

readonly                string 是否可编辑。当值”readonly” 时不可编辑。               否                          null

datatype                string validform 校验规则,一般必 须输入:*                      否                          null

2、用法

<t:dictSelect field="orgid" type="list"  dictTable="t_s_org" dictField="id" dictText="orgName" defaultVal="${id}"

dictCondition=" where status='1'" hasLabel="false" title="机构"
extendJson="{datatype:'*'}"></t:dictSelect>

注意:dataType直接写无效,需要通过extendJson属性配置方可生效,dictCondition中需要写入该下拉列表的sql查询语句即可生效

转载于:https://www.cnblogs.com/lhyhappy365/p/7339869.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值