From 9d59e53e261008ed5ea8e05a6c253d5976b69abd Mon Sep 17 00:00:00 2001 From: nickchange <126672920+nickchange@users.noreply.github.com> Date: 星期二, 24 十月 2023 21:11:09 +0800 Subject: [PATCH] 10.24。6 --- cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOtherOne.js | 18 +++++++++++++----- 1 files changed, 13 insertions(+), 5 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 6d13e5c..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', @@ -101,7 +109,7 @@ area: ['100%', '100%'], //宽高 fix: false, //不固定 maxmin: true, - content: Feng.ctxPath + '/tShop/tShop_add_two?id='+$("#id").val() + content: Feng.ctxPath + '/tShop/tShop_add_two1?id='+$("#id").val() }); this.layerIndex = index; }; -- Gitblit v1.7.1