mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
added 新增表格的icon显示
This commit is contained in:
parent
3775abb0ff
commit
21cc5142f2
@ -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>';
|
||||
|
Loading…
x
Reference in New Issue
Block a user