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/worldCupRecords/worldCupRecords.js | 36 ++++++++++++++++++++++++++++++------ 1 files changed, 30 insertions(+), 6 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupRecords.js b/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupRecords.js index 092d1c6..2b7dca5 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupRecords.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupRecords.js @@ -44,6 +44,27 @@ }); this.layerIndex = index; } +/** + * 新增赛事记录 + * @returns {boolean} + */ +WorldCupRecords.addWorldCupRecordsInfo = function (){ + var selected = $('#WorldCupRecordsTable2').bootstrapTable('getSelections'); + if(selected.length == 0){ + Feng.info("请先选中表格中的某一记录!"); + return false; + } + let seItem2 = selected[0]; + var index = layer.open({ + type: 2, + title: '添加赛事记录', + area: ['100%', '100%'], //宽高 + fix: false, //不固定 + maxmin: true, + content: Feng.ctxPath + '/worldCupRecords/addWorldCupGameStatisticsInfo?id=' + seItem2.id + }); + this.layerIndex = index; +} WorldCupRecords.openUserGameRecord = function (){ var index = layer.open({ @@ -59,7 +80,7 @@ WorldCupRecords.exportUserStatistics = function (){ let phone = $("#phone").val(); - let name =$("#name").val(); + let name =$("#userName").val(); let idcard =$("#idcard").val(); window.location.href = Feng.ctxPath + '/worldCupRecords/exportUserStatistics?phone=' + phone + "&name=" + name + "&idcard=" + idcard } @@ -77,12 +98,14 @@ var queryData = {}; queryData['province'] = $("#province").val(); queryData['city'] =$("#city").val(); + queryData['time'] =$("#time").val(); WorldCupRecords.table1.refresh({query: queryData}); }; WorldCupRecords.resetSearch1 = function () { $("#province").val(""); $("#city").val(""); + $("#time").val(""); WorldCupRecords.search1(); }; @@ -100,20 +123,21 @@ WorldCupRecords.search3 = function () { var queryData = {}; queryData['phone'] = $("#phone").val(); - queryData['name'] =$("#name").val(); + queryData['name'] =$("#userName").val(); queryData['idcard'] =$("#idcard").val(); WorldCupRecords.table3.refresh({query: queryData}); }; WorldCupRecords.resetSearch3 = function () { - $("#province").val(""); - $("#city").val(""); + $("#phone").val(""); + $("#userName").val(""); + $("#idcard").val(""); WorldCupRecords.search3(); }; $(function () { var defaultColunms1 = [ - {field: 'selectItem', checkbox: true}, + {field: 'selectItem', visible: false, checkbox: false}, {title: 'id', field: 'id', visible: false, align: 'center', valign: 'middle'}, {title: '名次', field: 'row_num', visible: true, align: 'center', valign: 'middle',width:'20%',}, {title: '用户姓名', field: 'name', visible: true, align: 'center', valign: 'middle',}, @@ -166,7 +190,7 @@ } }, ]; - var table3 = new BSTable("WorldCupRecordsTable3", "/worldCupRecords/worldCupGameStatisticsInfoList", defaultColunms3); + var table3 = new BSTable("WorldCupRecordsTable3", "/worldCupRecords/getUserGameRecordList", defaultColunms3); table3.setPaginationType("server"); WorldCupRecords.table3 = table3.init(); }); -- Gitblit v1.7.1