From 336cc1da02624db3d42ad09187b6b51b98ee35dc Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期二, 05 三月 2024 14:20:40 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0 --- cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOther.js | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOther.js b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOther.js index 0302161..f12ca42 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOther.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOther.js @@ -15,6 +15,7 @@ TCompetition.initColumn = function () { return [ {field: 'selectItem', radio: true}, + {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, {title: '板块名称', field: 'name', visible: role==1?true:false, align: 'center', valign: 'middle', }, {title: '排序', field: 'sort', visible: role==1?true:false, align: 'center', valign: 'middle', @@ -101,6 +102,19 @@ fix: false, //不固定 maxmin: true, content: Feng.ctxPath + '/tShop/tShop_update/' + TCompetition.seItem.id + }); + this.layerIndex = index; + } +}; +TCompetition.openTCompetitionDetail1 = function () { + if (this.check()) { + var index = layer.open({ + type: 2, + title:'编辑', + area: ['100%', '100%'], //宽高 + fix: false, //不固定 + maxmin: true, + content: Feng.ctxPath + '/tShop/tShop_update1/' + TCompetition.seItem.id }); this.layerIndex = index; } @@ -243,6 +257,18 @@ ajax.start(); } }; +TCompetition.del = function () { + if (this.check()) { + var ajax = new $ax(Feng.ctxPath + "/tShop/del", function (data) { + Feng.success("删除成功!"); + TCompetition.table.refresh(); + }, function (data) { + Feng.error("删除失败!" + data.responseJSON.message + "!"); + }); + ajax.set("id",this.seItem.id); + ajax.start(); + } +}; TCompetition.unfreeze = function () { if (this.check()) { var ajax = new $ax(Feng.ctxPath + "/tShop/unfreeze", function (data) { @@ -255,6 +281,19 @@ ajax.start(); } }; +TCompetition.unfreeze1 = function (e) { + if (this.check()) { + var ajax = new $ax(Feng.ctxPath + "/tShop/unfreeze1", function (data) { + Feng.success("操作成功!"); + TCompetition.table.refresh(); + }, function (data) { + Feng.error("操作失败!" + data.responseJSON.message + "!"); + }); + ajax.set("id",this.seItem.id); + ajax.set("type",e); + ajax.start(); + } +}; TCompetition.reload = function () { if (this.check()) { let id = this.seItem.id -- Gitblit v1.7.1