jeecg之给t:dgCol添加背景色支持

示例代码:需要使用到rowStyler标签,如下

<t:datagrid name="waitExamineCommentList" rowStyler="rowStyleSum" title="待审核评论列表" checkbox="true" fitColumns="false" actionUrl="commentController.do?waitExamineCommentListGrid" pagination="true" idField="id" fit="true" pageSize="20" queryMode="group">
<t:dgCol title="非法校验结果" field="illegalcheckresult" query="false" width="350"></t:dgCol>
<t:dgCol title="轮播图标题" field="doctitle" showLen="20" url = "{wl}" query="true" width="500" funname="detailsSee"></t:dgCol>
</t:datagrid>

// 添加背景
function rowStyleSum(index,row){
	if(row.illegalcheckresult!="评论内容:通过;评论图片:为空"){
		row.illegalcheckresult="<span style='color:red;'>"+row.illegalcheckresult+"</span>";
		// 以下为蓝色并添加下划线
		row.doctitle="<span style='flood-color: blue;text-decoration: underline;color: blue;cursor:pointer'>"+row.doctitle+"</span>";
	}
}
//html页面打开
function detailsSee(title,url){
	window.open(url)
}

最终结果:
在这里插入图片描述
// 以下为蓝色并添加下划线

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值