字典数据列表标签显示样式

pull/149/MERGE
RuoYi 2020-03-18 12:45:53 +08:00
parent 06751acbf9
commit f8491c36e2
1 changed files with 5 additions and 1 deletions

View File

@ -82,7 +82,11 @@
},
{
field: 'dictLabel',
title: '字典标签'
title: '字典标签',
formatter: function(value, row, index) {
var listClass = $.common.equals("default", row.listClass) || $.common.isEmpty(row.listClass) ? "" : "badge badge-" + row.listClass;
return $.common.sprintf("<span class='%s'>%s</span>", listClass, value);
}
},
{
field: 'dictValue',