From 640ff18d2d7f4be02ddb7f8f75e899f05545eb98 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 05 二月 2024 11:56:52 +0800 Subject: [PATCH] 更新bug修改 --- cloud-server-management/src/main/webapp/static/modular/system/benefits/TBenefits.js | 18 ++++++++++++++---- 1 files changed, 14 insertions(+), 4 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..40990f5 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 @@ -14,7 +14,7 @@ TQuestion.initColumn = function () { return [ {field: 'selectItem', checkbox: true}, - {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, + {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'}, {title: '分类名称', field: 'name', visible: true, align: 'center', valign: 'middle'}, {title: '所在位置', field: 'position', visible: true, align: 'center', valign: 'middle', formatter:function (data) { @@ -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