diff --git a/ruoyi-admin/src/main/resources/templates/system/dict/data/data.html b/ruoyi-admin/src/main/resources/templates/system/dict/data/data.html index 42e38dee..af66b0fb 100644 --- a/ruoyi-admin/src/main/resources/templates/system/dict/data/data.html +++ b/ruoyi-admin/src/main/resources/templates/system/dict/data/data.html @@ -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("%s", listClass, value); + } }, { field: 'dictValue',