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/tShopOtherTwo.js | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOtherTwo.js b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOtherTwo.js index 4c2cf6c..57f6acf 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOtherTwo.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOtherTwo.js @@ -15,9 +15,16 @@ 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', }, -- Gitblit v1.7.1