From 92e2be60c2d92ab5c8524c76f97712cd9f66502d Mon Sep 17 00:00:00 2001
From: nickchange <126672920+nickchange@users.noreply.github.com>
Date: 星期三, 18 十月 2023 11:44:35 +0800
Subject: [PATCH] 10.18.1

---
 cloud-server-management/src/main/webapp/static/modular/system/ball/ball.js |   20 +++++++++++++++++---
 1 files changed, 17 insertions(+), 3 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/ball/ball.js b/cloud-server-management/src/main/webapp/static/modular/system/ball/ball.js
index 9f402bf..7bc3f66 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/ball/ball.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/ball/ball.js
@@ -72,14 +72,14 @@
             Feng.error("不能重复操作");
             return
         }
-        parent.layer.confirm(state == 1 ? '是否开启' : "是否关闭" , {
+        parent.layer.confirm(state == 1 ? '是否关闭' : "是否开启" , {
                 btn: ['确定', '取消']
             }, function (index) {
                 let ajax = new $ax(Feng.ctxPath + "/ball/editCoursePackageState", function (data) {
-                    Feng.success(state == 1 ? '开启' : "关闭" + "成功!");
+                    Feng.success(state == 1 ? '关闭' : "开启" + "成功!");
                     TStudent.table.refresh();
                 }, function (data) {
-                    Feng.error(state == 1 ? '开启' : "关闭" + "失败!" + data.responseJSON.message + "!");
+                    Feng.error(state == 1 ? '关闭' : "开启" + "失败!" + data.responseJSON.message + "!");
                 });
                 ajax.set("id", TStudent.seItem.id);
                 ajax.set("state", state);
@@ -126,6 +126,11 @@
         this.layerIndex = index;
     }
 };
+
+
+
+
+
 
 TStudent.openTStudentDetail3 = function () {
     if (this.check()) {
@@ -205,6 +210,15 @@
     TStudent.table.refresh({query: queryData});
 };
 
+TStudent.resetSearch = function () {
+    $("#provinceCode").val("");
+    $("#cityCode").val("");
+    $("#store").val("");
+    $("#site").val("");
+    TStudent.search();
+};
+
+
 $(function () {
     var defaultColunms = TStudent.initColumn();
     var table = new BSTable(TStudent.id, "/ball/list", defaultColunms);

--
Gitblit v1.7.1