From 4742874ad840d7e1e3ac79dc288b38e9a642319d Mon Sep 17 00:00:00 2001
From: 无关风月 <443237572@qq.com>
Date: 星期一, 02 六月 2025 19:11:00 +0800
Subject: [PATCH] bug修改

---
 cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetitionUser.js |   31 +++++++++++++++++++------------
 1 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetitionUser.js b/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetitionUser.js
index b776e56..45ae474 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetitionUser.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetitionUser.js
@@ -12,14 +12,26 @@
  * 初始化表格的列
  */
 TCompetition.initColumn = function () {
+    var index = 0
+
     return [
         {field: 'selectItem', radio: true},
+        {title: '序号', field: 'id', visible: false, align: 'center', valign: 'middle',value:index+1},
+        {title: '序号', valign: 'middle', formatter: function (value, row, index) {
+                return index + 1; // 使用行索引作为序号值
+            }},
         {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle',width:'8%',
         },
-        {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle'},
+        {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle',
+            formatter:function (data) {
+                return {1:"男",2:"女"}[data]
+            }
+        },
         {title: '联系电话', field: 'phone', visible: true, align: 'center', valign: 'middle',width:'8%',
         },
         {title:  '身份证号', field: 'idCard', visible: true, align: 'center', valign: 'middle',width:'8%',
+        },
+        {title:  '报名时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle',width:'8%',
         },
         {title: '状态', field: 'state', visible: true, align: 'center', valign: 'middle',width:'8%',
             formatter:function (data) {
@@ -326,14 +338,9 @@
  * 导出车辆操作
  */
 TCompetition.ouTCompetition = function () {
-    var operation = function() {
-        window.location.href = Feng.ctxPath + "/TCompetition/ouTCompetition";
-    };
-    if(language==1){
-        Feng.confirm("是否确认导出车辆信息?", operation);
-    }else if(language==2){
-        Feng.confirm("Are you sure to export vehicle information?", operation);
-    }else {
-        Feng.confirm("Apakah Anda pasti akan mengekspor informasi kendaraan?", operation);
-    }
-}
\ No newline at end of file
+    var state=$("#state").val()
+    var id=$("#id").val()
+    window.location.href=Feng.ctxPath + "/tCompetition/export?id="+id
+        +"&state="+state
+    ;
+};

--
Gitblit v1.7.1