From fd658508f4470f0c479b2a36738b0f50481cbbe9 Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期六, 16 九月 2023 10:59:09 +0800 Subject: [PATCH] 后台代码 --- 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