From 1d3134d07c0351bdcc35e58a585c6d6e78571a94 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期五, 08 三月 2024 17:39:15 +0800
Subject: [PATCH] Merge branch '2.0' of http://120.76.84.145:10101/gitblit/r/java/PlayPai into 2.0
---
cloud-server-management/src/main/webapp/static/modular/system/tCompetition/tCompetitionUser.js | 29 +++++++++++++++++------------
1 files changed, 17 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..1266f59 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,11 +12,21 @@
* 初始化表格的列
*/
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%',
@@ -326,14 +336,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