From 865fc8d02e44811fb423df7125055c3a85e38964 Mon Sep 17 00:00:00 2001
From: 44323 <443237572@qq.com>
Date: 星期一, 16 十月 2023 09:31:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 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