From cd45ac2fa0097de2fd9bf637fc5a23593be1aef0 Mon Sep 17 00:00:00 2001
From: liujie <liujie>
Date: 星期二, 10 十月 2023 16:20:40 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 cloud-server-management/src/main/webapp/static/modular/system/benefits/TBenefits.js |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/benefits/TBenefits.js b/cloud-server-management/src/main/webapp/static/modular/system/benefits/TBenefits.js
index ec2ea1b..3151938 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/benefits/TBenefits.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/benefits/TBenefits.js
@@ -29,7 +29,12 @@
             }}
     ];
 };
-
+/**
+ * 关闭此对话框
+ */
+TQuestion.close = function() {
+    parent.layer.close(window.parent.TQuestion.layerIndex);
+}
 /**
  * 检查是否选中
  */
@@ -266,6 +271,8 @@
         data: JSON.stringify(data),
         contentType: "application/json",
         success: function (response) {
+            window.parent.TQuestion.table.refresh();
+            TQuestion.close();
             Feng.success("添加成功");
 
         },
@@ -273,7 +280,7 @@
             Feng.error("添加失败!" + error);
         }
     });
-    TSite.search();
+
 };
 TQuestion.updateSubmit = function(){
     var data = {
@@ -304,14 +311,17 @@
         data: JSON.stringify(data),
         contentType: "application/json",
         success: function (response) {
+            window.parent.TQuestion.table.refresh();
+            TQuestion.close();
             Feng.success("添加成功");
         },
         error: function (xhr, status, error) {
             Feng.error("添加失败!" + error);
         }
     });
-    TSite.search();
+
 };
+
 /**
  * 查询列表
  */

--
Gitblit v1.7.1