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 | 16 ++++++++++++---- 1 files changed, 12 insertions(+), 4 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 cc9d44b..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 @@ -15,10 +15,18 @@ TCompetition.initColumn = function () { return [ {field: 'selectItem', radio: true}, - {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle', - }, - {title: '图片', field: 'url', visible: role==1?true:false, align: 'center', valign: 'middle', - }, + {title: '序号', field: 'id', visible: true, 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