From 06104b789c9bc120d490b57560098e8a6df4beb9 Mon Sep 17 00:00:00 2001 From: liujie <liujie> Date: 星期六, 23 九月 2023 09:51:46 +0800 Subject: [PATCH] 后台代码 --- cloud-server-management/src/main/webapp/static/modular/system/tShop/tShopOther.js | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 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..58e35c3 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 @@ -105,6 +105,19 @@ 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; + } +}; TCompetition.info = function () { if (this.check()) { var index = layer.open({ @@ -243,6 +256,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 +280,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