From 0b7eb4138e9a011da69d1a9d69c9e6c3d49a8cc6 Mon Sep 17 00:00:00 2001 From: thinkgem Date: Mon, 8 Jan 2024 15:24:18 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8F=9C=E5=8D=95=E7=AE=A1=E7=90=86=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=97=A0=E5=9B=BE=E6=A0=87=E7=9A=84=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/views/modules/sys/menuList.html | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/modules/core/src/main/resources/views/modules/sys/menuList.html b/modules/core/src/main/resources/views/modules/sys/menuList.html index 5d805a9a..f9986ca6 100644 --- a/modules/core/src/main/resources/views/modules/sys/menuList.html +++ b/modules/core/src/main/resources/views/modules/sys/menuList.html @@ -81,15 +81,13 @@ $('#dataGrid').dataGrid({ searchForm: $('#searchForm'), columnModel: [ {header:'${text("菜单名称")}', name:'menuNameRaw', width:200, formatter: function(val, obj, row, act){ - var icon = row.menuIcon, iconHtml = ''; - if (icon && icon != ''){ - if (icon.indexOf('://') != -1){ - iconHtml = ''; - }else if (icon.indexOf('/') == 0){ - iconHtml = ''; - }else{ - iconHtml = ' '; - } + var icon = row.menuIcon || 'fa-circle-o opa08', iconHtml = ''; + if (icon.indexOf('://') != -1){ + iconHtml = ''; + }else if (icon.indexOf('/') == 0){ + iconHtml = ''; + }else{ + iconHtml = ' '; } return ' '+iconHtml+'  '+val+'';