From bc52f606d965585ab8a14730a2ec96e5f7197c67 Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 18 八月 2025 10:40:41 +0800
Subject: [PATCH] 赛事模块

---
 cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_edit.js |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_edit.js b/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_edit.js
index 612e13b..0801cf0 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_edit.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_edit.js
@@ -7,14 +7,16 @@
     table: null,
     layerIndex: -1
 };
-
+TQuestion.close = function() {
+    parent.layer.close(window.parent.TQuestion.layerIndex);
+}
 /**
  * 初始化表格的列
  */
 TQuestion.initColumn = function () {
     return [
         {field: 'selectItem', checkbox: true},
-        {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'},
+        {title: 'id', field: 'benefitsVideosId', visible: false, align: 'center', valign: 'middle'},
         {title: '视频类型', field: 'type', visible: true, align: 'center', valign: 'middle',
             formatter:function (data) {
                 return {1:"课后练习",2:"运动教学视频",3:"器材教学视频"}[data]
@@ -106,7 +108,7 @@
         state:null
     };
     selected.forEach(function(obj) {
-        var id = obj.id;
+        var id = obj.benefitsVideosId;
         data1.ids.push(id);
     });
     data1.state = 1;
@@ -142,7 +144,7 @@
             state:null
         };
         selected.forEach(function(obj) {
-            var id = obj.id;
+            var id = obj.benefitsVideosId;
             data1.ids.push(id);
         });
         data1.state = 2;
@@ -221,7 +223,7 @@
             state:null
         };
         selected.forEach(function(obj) {
-            var id = obj.id;
+            var id = obj.benefitsVideosId;
             data1.ids.push(id);
         });
         data1.state = 3;
@@ -273,6 +275,8 @@
         data: JSON.stringify(data),
         contentType: "application/json",
         success: function (response) {
+            window.parent.TQuestion.table.refresh();
+            TQuestion.close();
             Feng.success("添加成功");
 
         },
@@ -282,6 +286,9 @@
     });
     TSite.search();
 };
+TQuestion.close = function() {
+    parent.layer.close(window.parent.TQuestion.layerIndex);
+};
 TQuestion.updateSubmit = function(){
     var data = {
         id:null,

--
Gitblit v1.7.1