From bfb435b7281d7cc89e80708faa777856933c311f Mon Sep 17 00:00:00 2001 From: RuoYi Date: Wed, 18 Mar 2020 12:45:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E5=85=B8=E6=95=B0=E6=8D=AE=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=A0=87=E7=AD=BE=E6=98=BE=E7=A4=BA=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/templates/system/dict/data/data.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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',