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用法的更多相关文章
- jeecg中List页面标签的用法
1.t:datagrid的常用属性 1. <t:datagrid name="jeecgDemoList" checkbox="true" sortNam ...
- jeecg中dictSelect取值方式
jeecg中的dictSelect本质是生成了很多input标签和div标签组成的,input存储的对应的就是字典中的code,div存储的就是字典中的name, 下面是取出code和那么的实例: 例 ...
- 改造一下jeecg中的部门树
假装有需求 关于 jeecg 提供的部门树,相信很多小伙伴都已经用过了,今天假装有那么一个需求 "部门树弹窗选择默认展开下级部门",带着这个需求再次去探索一下吧. 一.改造之前的部 ...
- Spring mvc中@RequestMapping 6个基本用法
Spring mvc中@RequestMapping 6个基本用法 spring mvc中的@RequestMapping的用法. 1)最基本的,方法级别上应用,例如: Java代码 @Reques ...
- Delphi中stringlist分割字符串的用法
Delphi中stringlist分割字符串的用法 TStrings是一个抽象类,在实际开发中,是除了基本类型外,应用得最多的. 常规的用法大家都知道,现在来讨论它的一些高级的用法. 1.CommaT ...
- Linq中关键字的作用及用法
Linq中关键字的作用及用法 1.All:确定序列中的所有元素是否都满足条件.如果源序列中的每个元素都通过指定谓词中的测试,或者序列为空,则为 true:否则为 false. Demo: 此示例使用 ...
- 标准C++中的string类的用法总结
标准C++中的string类的用法总结 相信使用过MFC编程的朋友对CString这个类的印象应该非常深刻吧?的确,MFC中的CString类使用起来真的非常的方便好用.但是如果离开了MFC框架,还有 ...
- html中的alt和title用法区别
html中的alt和title用法区别 首先明确一下概念,alt是html标签的属性,而title既是html标签,又是html属性.title标签这个不用多说,网页的标题就是写在<title& ...
- HTML中的target(_self,_blank)用法总结
HTML中的target(_self,_blank)用法总结 最近一个项目,多次遇到target='_self', target='_blank'的用法, 再次总结一下: 1.<a>标签 ...
随机推荐
- Mongodb3安装授权
(1) mongodb 官网下载解压包mongodb-win32-x86_64-3.0.7.zip解压释放在d盘,目录为mongodb,接下来手动创建data文件夹和log文件夹分别用于存放数据和日志 ...
- Ubuntu安装rabbitMq
笔者ubuntu版本为Ubuntu 15.10,查看ubuntu当前版本命令:cat /etc/issue. 由于rabbitMq需要erlang语言的支持,在安装rabbitMq之前需要安装erla ...
- python中string和十六进制、二进制互转
def str_to_hex(s): return ' '.join([hex(ord(c)).replace('0x', '') for c in s]) def hex_to_str(s): re ...
- windows快捷键补充?
win + + 放大镜 win + r osk 虚拟键盘 win + r psr 自带屏幕录制 文章来源:刘俊涛的博客 欢迎关注,有问题一起学习欢迎留言.评论
- 比较typeof与instanceof?
相同点:JavaScript 中 typeof 和 instanceof 常用来判断一个变量是否为空,或者是什么类型的. typeof的定义和用法:返回值是一个字符串,用来说明变量的数据类型. 细节: ...
- sell 创建项目
1.数据操作软件 2.创建项目 3.mevan 镜像
- vue 去掉元素之间空格 preserveWhitespace
preserveWhitespace 说明参考:https://vue-loader.vuejs.org/zh/options.html#compiler options: { compilerOpt ...
- 【DB2】设置表不记录日志,但是回滚导致表不可用报错:DB2 SQL Error: SQLCODE=-1477, SQLSTATE=55019, SQLERRMC=LEN.TMP;5;3, DRIVER=3.57.82
今天在生产发现个问题,很多表报错:SQLCODE=-1477 后来线下模拟出这种场景 出现这个问题,此时对表做reorg.runstats都是无效的. 那么怎么来解决这个问题呢? 只能重建表解决问题
- V-rep学习笔记:视觉传感器1
Vision sensors, which can detect renderable entities(Renderable objects are objects that can be seen ...
- ios中radiobutton
#import <UIKit/UIKit.h> @protocol RadioButtonExtDelegate; @interface RadioButtonExt : UIView - ...