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

pull/149/MERGE
RuoYi 5 years ago
parent 06751acbf9
commit f8491c36e2

@ -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',

Loading…
Cancel
Save