From e030255c23c7ba3e2cbad1036a810d6d72fa864f Mon Sep 17 00:00:00 2001 From: liujie <liujie> Date: 星期四, 26 十月 2023 18:04:58 +0800 Subject: [PATCH] 修改bug --- cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOtherOne.js | 13 +++++++++++-- 1 files changed, 11 insertions(+), 2 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOtherOne.js b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOtherOne.js index a1c0515..5878705 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOtherOne.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOtherOne.js @@ -16,8 +16,17 @@ return [ {field: 'selectItem', radio: true}, {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, - {title: '图片', field: 'url', visible: role==1?true:false, align: 'center', valign: 'middle', - }, + { + title: '图片', + field: 'url', + visible: role == 1 ? true : false, + align: 'center', + valign: 'middle', + formatter: function(value, row, index) { + return '<img src="' + value + '" alt="图片" style="width: 100px; height: 100px;">'; + } + } + , {title: '跳转模块', field: 'name', visible: role==1?true:false, align: 'center', valign: 'middle', }, {title: '跳转页面', field: 'page', visible: role==1?true:false, align: 'center', valign: 'middle', -- Gitblit v1.7.1