Commit f8491c36 by RuoYi

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

parent 06751acb
...@@ -82,7 +82,11 @@ ...@@ -82,7 +82,11 @@
}, },
{ {
field: 'dictLabel', 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', field: 'dictValue',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment