From efc87c9486f5d4c1b9058462b316ff42c6512ace Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期三, 01 十一月 2023 17:32:15 +0800
Subject: [PATCH] 10.31.3
---
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