added 新增表格的icon显示

This commit is contained in:
zhaoxiang 2016-11-09 22:57:13 +08:00
parent 3775abb0ff
commit 21cc5142f2

View File

@ -101,6 +101,14 @@
case 'date':
dataListHtml += '<td>' + $.formatDate(dataValue[fieldName]) + '</td>';
break;
case 'icon':
if( rule.rule[dataValue[fieldName]] ){
styleList = rule.rule[dataValue[fieldName]];
dataListHtml += '<td><i class="'+styleList['class']+'"></i></td>';
}else{
dataListHtml += '<td style="color:red;">' + dataValue[fieldName] + '</td>';
}
break;
}
}else{
dataListHtml += '<td>' + dataValue[fieldName] + '</td>';