From 0379c65f03ec6ccf27eebbdc72a25cabbda28e5a Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期二, 24 十月 2023 20:22:37 +0800 Subject: [PATCH] Merge branch 'master' of http://120.76.84.145:10101/gitblit/r/java/PlayPai --- cloud-server-management/src/main/webapp/static/modular/system/tStudent/tStudent.js | 31 +++++++++++++++++++++++++++++++ 1 files changed, 31 insertions(+), 0 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tStudent/tStudent.js b/cloud-server-management/src/main/webapp/static/modular/system/tStudent/tStudent.js index f5c7c63..4d79554 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/tStudent/tStudent.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/tStudent/tStudent.js @@ -178,6 +178,37 @@ TStudent.table.refresh({query: queryData}); }; +TStudent.editCoursePackageState = function (state) { + if (this.check()) { + + if(TStudent.seItem.state == state){ + Feng.error("不能重复操作"); + return + } + parent.layer.confirm(state == 1 ? '是否解冻' : "是否冻结" , { + btn: ['确定', '取消'] + }, function (index) { + let ajax = new $ax(Feng.ctxPath + "/tStudent/frozen", function (data) { + Feng.success(state == 1 ? '解冻' : "冻结" + "成功!"); + TStudent.table.refresh(); + }, function (data) { + Feng.error(state == 1 ? '解冻' : "冻结" + "失败!" + data.responseJSON.message + "!"); + }); + ajax.set("id", TStudent.seItem.id); + ajax.set("state", state); + ajax.start(); + parent.layer.close(index); + + }, function (index) { + parent.layer.close(index); + } + + + ) + + } +}; + $(function () { var defaultColunms = TStudent.initColumn(); -- Gitblit v1.7.1