From 98346956b542835eb8d59e94bfbf5d47f799f2dd Mon Sep 17 00:00:00 2001
From: liujie <1793218484@qq.com>
Date: 星期一, 11 八月 2025 08:59:19 +0800
Subject: [PATCH] 赛事模块
---
cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupGameStatisticsListInfo.js | 44 +++++++++++++++++++++-
cloud-server-management/src/main/webapp/WEB-INF/view/system/worldCupRecords/addWorldCupGameStatisticsListInfo.html | 1
cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/TStoreInfo.js | 23 +++++++----
3 files changed, 58 insertions(+), 10 deletions(-)
diff --git a/cloud-server-management/src/main/webapp/WEB-INF/view/system/worldCupRecords/addWorldCupGameStatisticsListInfo.html b/cloud-server-management/src/main/webapp/WEB-INF/view/system/worldCupRecords/addWorldCupGameStatisticsListInfo.html
index a6cb4c2..a611a86 100644
--- a/cloud-server-management/src/main/webapp/WEB-INF/view/system/worldCupRecords/addWorldCupGameStatisticsListInfo.html
+++ b/cloud-server-management/src/main/webapp/WEB-INF/view/system/worldCupRecords/addWorldCupGameStatisticsListInfo.html
@@ -27,6 +27,7 @@
<table class="table table-bordered" style="width: 70%;margin-left: 228px;" id="userTableOne">
<thead>
<tr>
+ <td>id</td>
<td>人员</td>
<td>联系电话</td>
<td>性别</td>
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/TStoreInfo.js b/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/TStoreInfo.js
index 26206e8..3061aac 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/TStoreInfo.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/TStoreInfo.js
@@ -15,9 +15,12 @@
TStoreProvince.initColumn = function () {
return [
{field: 'selectItem', checkbox: true},
- {title: '序号', field: 'id', visible: true, align: 'center', valign: 'middle'},
- {title: '所在省市', field: 'provinceCity', visible: true, align: 'center', valign: 'middle'},
- {title: '门店名称', field: 'name', visible: true, align: 'center', valign: 'middle'},
+ {title: '序号', field: 'id', visible: false, align: 'center', valign: 'middle'},
+ {title: '姓名', field: 'name', visible: true, align: 'center', valign: 'middle'},
+ {title: '性别', field: 'sex', visible: true, align: 'center', valign: 'middle'},
+ {title: '年龄', field: 'age', visible: true, align: 'center', valign: 'middle'},
+ {title: '联系电话', field: 'phone', visible: true, align: 'center', valign: 'middle'},
+ {title: '身份证号', field: 'idCard', visible: true, align: 'center', valign: 'middle'},
];
};
@@ -51,22 +54,26 @@
var name ='';
for(var i in selected){
if(typeof selected[i].id != "undefined"){
- console.log( selected[i].ids,55555)
+ console.log( selected[i].id,55555)
name = selected[0].accountName
arr.push({
id: selected[i].id,
- provinceCity: typeof selected[i].provinceCity != "undefined" ? selected[i].provinceCity : "",
- accountName: typeof selected[i].accountName != "undefined" ? selected[i].accountName : "",
name: typeof selected[i].name != "undefined" ? selected[i].name : "",
- ids:typeof selected[i].ids != "undefined" ? selected[i].ids : "",
+ phone: typeof selected[i].phone != "undefined" ? selected[i].phone : "",
+ sex: typeof selected[i].sex != "undefined" ? selected[i].sex : "",
+ age:typeof selected[i].age != "undefined" ? selected[i].age : "",
})
}
}
- window.parent.TGoodsInfoDlg.selecUserOpt(arr);
+ window.parent.WorldCupGameStatisticsListInfo.selecUserOpt(arr);
TStoreProvince.storeOfClosePage();
}
+TStoreProvince.storeOfClosePage = function (){
+ parent.layer.close(parent.layer.getFrameIndex(window.frameElement.id));
+}
+
/**
* 查询列表
diff --git a/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupGameStatisticsListInfo.js b/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupGameStatisticsListInfo.js
index 54d5666..6d7d6e2 100644
--- a/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupGameStatisticsListInfo.js
+++ b/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupGameStatisticsListInfo.js
@@ -6,7 +6,9 @@
seItem: null, //选中的条目
table: null,
layerIndex: -1,
+ storeIds: [],
};
+
/**
* 初始化表格的列
*/
@@ -100,8 +102,46 @@
});
};
-
-
+WorldCupGameStatisticsListInfo.selecUserOpt = function (arrays){
+ console.log(3333)
+ //获取所有的值
+ var subArr= this.storeIds;
+ $(".timeClass").each(function () {
+ subArr.push($(this).find("input[name*='id']").val());
+ });
+ var str = '';
+ for(var i in arrays){
+ var b = true;
+ for(var j in subArr){
+ if(arrays[i].id === Number(subArr[j])){
+ b = false;
+ break
+ }
+ }
+ if(b){
+ this.storeIds.push(arrays[i].id)
+ str += '<tr class="timeClass">' +
+ '<td><input type="hidden" id="id" name="id" value="'+arrays[i].id+'"><input type="hidden" id="id" name="id" value="'+arrays[i].id+'">' + arrays[i].id + '</td>' +
+ '<td><input type="hidden" id="name" name="name" value="'+arrays[i].name+'">' + arrays[i].name + '</td>' +
+ '<td><input type="hidden" id="phone" name="phone" value="'+arrays[i].phone+'">' + arrays[i].phone +
+ '<td><input type="hidden" id="sex" name="sex" value="'+arrays[i].sex+'">' + arrays[i].sex +
+ '<td><input type="hidden" id="age" name="age" value="'+arrays[i].age+'">' + arrays[i].age +
+ '</td><td><button onclick="deleteSub(this)">移除</button></td></tr>';
+ }
+ }
+ console.log("添加门店后的场地数组和门店数组")
+ console.log(this.storeIds)
+ console.log(this.siteIds)
+ $("#coun").append(str);
+}
+function deleteSub(e) {
+ console.log(e);
+ var row = $(e).closest('tr');
+ var value = row.find('#id').val();
+ WorldCupGameStatisticsListInfo.storeIds.splice(WorldCupGameStatisticsListInfo.storeIds.indexOf(parseInt(value)), 1)
+ $(e).parent().parent().remove();
+ console.log('storeIds',WorldCupGameStatisticsListInfo.storeIds)
+}
/**
* 关闭此对话框
--
Gitblit v1.7.1