3.9K Star 18.2K Fork 5.3K

卓源软件 / JeeSite 4.x and 5.x

 / 详情

DataGrid 数据校验问题

已完成
创建于  
2018-05-14 11:38

输入图片说明

// 初始化DataGrid对象
$('#dataGrid').dataGrid({
	searchForm: $("#searchForm"),
	////lazyLoad: true,     //不加载
	columnModel: [
		
		{header:'手机号', name:'appUser.phone', index:'u.phone', width:150, align:"left", frozen:true, formatter: function(val, obj, row, act){
			return '<a href="${ctx}/app/appUserRisk/form?id='+row.id+'" class="btnList" data-title="${text('编辑app_user_risk')}">'+(val||row.id)+'</a>';
		}}, 
		/*{header:'手机号', name:'appUser.phone', index:'u.phone', width:150, align:"left"},*/
		{header:'手机IMEI', name:'appUser.imei', index:'u.imei', width:150, align:"left"},
		{header:'是否命中', name:'isMatch', index:'a.is_match', width:150, align:"center", formatter: function(val, obj, row, act){
			return js.getDictLabel(${@DictUtils.getDictListJson('sys_yes_no')}, val, '${text('未知')}', true);
		}},
		{header:'命中原因码', name:'reasonCode', index:'a.reason_code', width:150, align:"left"},
		{header:'查看时间', name:'createDate', index:'a.create_date', width:150, align:"center"},

	],
	// 加载成功后执行事件
	ajaxSuccess: function(data){
		 js.alertObj(data) 	
	}
});

进行校验的时候 js.alertObj(data.count) 不显示内容 这个校验获取不出参数比较该怎么校验

评论 (2)

夜记梦_ 创建了任务

不明白你的意思,你想校验什么数据?什么时候校验?

卓源软件 关闭了任务
卓源软件 开始了任务

@卓源软件 data里面的值 在ajaxSuccess里面取值取不出来进行判断处理

卓源软件 修改任务状态为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
6732 thinkgem 1651893329 1138245 donggezaibuzai 1578941716
Java
1
https://gitee.com/thinkgem/jeesite4.git
git@gitee.com:thinkgem/jeesite4.git
thinkgem
jeesite4
JeeSite 4.x and 5.x

搜索帮助