JEECG中t:dictSelect的extendJson用法

1.t:dictSelect的各个属性值如下:

 

属性名 类型 描述 是否必须 默认值
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}"  typeGroupCode="ointer"  hasLabel="false" title="机构" extendJson="{onchange:'isInter(this)'}">t:dictSelect>

调用JS如下:

    //下拉框值发生变化的时候调用函数
    function isInter(cthis){
        //是:1;否:2;
        var isInter = cthis.value;
        if (isInter==1) {
            $("#inter").attr("ignore","checked");
        }else {
            $("#inter").attr("ignore","ignore");
        }
    }

 

 

你可能感兴趣的:(JEECG中t:dictSelect的extendJson用法)