From 8afc5bfc1e5df1e2f0a8872a344da3b3fd5d63b9 Mon Sep 17 00:00:00 2001
From: mitao <2763622819@qq.com>
Date: 星期五, 11 四月 2025 20:24:10 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/2.0' into 2.0

---
 cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupGameStatisticsListInfo.js |   27 +++++++++++++++------------
 1 files changed, 15 insertions(+), 12 deletions(-)

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 eec2c24..54d5666 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
@@ -19,8 +19,8 @@
         {title: '比分', field: 'score', visible: true, align: 'center', valign: 'middle'},
         {title: '结果', field: 'matchResult', visible: true, align: 'center', valign: 'middle'},
         {title: '操作', field: 'id', visible: true, align: 'center', valign: 'middle',
-            formatter:function (data) {
-                return '<a href="#" onclick="WorldCupGameStatisticsListInfo.changeScore(\'' + data + '\')">修改比分</a>';
+            formatter:function (data, item) {
+                return '<a href="#" onclick="WorldCupGameStatisticsListInfo.changeScore(\'' + data + '\',' + item.blue + ',' + item.red + ')" style="color:blue;">修改比分</a>';
             }
         },
     ];
@@ -42,30 +42,31 @@
 /**
  * 商户号认证
  */
-WorldCupGameStatisticsListInfo.changeScore = function (id) {
+WorldCupGameStatisticsListInfo.changeScore = function (id, blue, red) {
     const str = '<div class="row">\n' +
         '                <div class="form-group" style="height: 50px;">\n' +
-        '                   <label class="col-sm-3 control-label">蓝方得分:</label>' +
+        '                   <label class="col-sm-3 control-label" style="text-align: right;">蓝方得分:</label>' +
         '                    <div class="col-sm-8">\n' +
-        '                        <input id="blue" type="number" min="0"/>\n' +
+        '                        <input id="blue" class="form-control" type="number" min="0" value="' + blue + '"/>\n' +
         '                    </div>\n' +
         '                </div>\n' +
         '                <div class="form-group" style="height: 50px;">\n' +
-        '                   <label class="col-sm-3 control-label">红方得分:</label>' +
+        '                   <label class="col-sm-3 control-label" style="text-align: right;">红方得分:</label>' +
         '                    <div class="col-sm-8">\n' +
-        '                        <input id="red" type="number" min="0"/>\n' +
+        '                        <input id="red" class="form-control" type="number" min="0" value="' + red + '"/>\n' +
         '                    </div>\n' +
         '                </div>\n' +
         '       </div>'
     layer.open({
         type: 1
         ,title: '修改比分'
-        ,area: ['500px', '400px']
+        ,area: ['500px', '300px']
         ,offset: 'auto' //具体配置参考:http://www.layui.com/doc/modules/layer.html#offset
         ,id: 'layerDemo' //防止重复弹出
         ,content: '<div style="padding: 20px">' + str + '</div>'
         ,btnAlign: 'c' //按钮居中
         ,shade: 0.5 //不显示遮罩
+        ,btn: ['确认', '关闭']
         ,yes: function (){
             let blue = $('#blue').val();
             let red = $('#red').val();
@@ -81,8 +82,8 @@
             var ajax = new $ax(Feng.ctxPath + "/worldCupRecords/changeScore", function (res) {
                 if (res.code==200){
                     Feng.success("修改成功!");
-                    window.parent.WorldCupGameStatisticsInfo.refresh();
-                    WorldCupGameStatisticsListInfo.close();
+                    WorldCupGameStatisticsListInfo.search();
+                    layer.closeAll();
                 }else{
                     Feng.error(res.msg);
                 }
@@ -111,7 +112,8 @@
 
 WorldCupGameStatisticsListInfo.search = function () {
     var queryData = {};
-    queryData['id']  = $("#id").val();
+    queryData['participantId']  = $("#participantId").val();
+    queryData['participantType']  = $("#participantType").val();
     queryData['name']  = $("#name").val();
     WorldCupGameStatisticsListInfo.table.refresh({query: queryData});
 };
@@ -126,7 +128,8 @@
     var table = new BSTable(WorldCupGameStatisticsListInfo.id, "/worldCupRecords/worldCupGameStatisticsListInfo", defaultColunms);
     table.setPaginationType("server");
     table.setQueryParams({
-        'id': $('#id').val()
+        'participantId': $('#participantId').val(),
+        'participantType': $('#participantType').val()
     })
     WorldCupGameStatisticsListInfo.table = table.init();
 

--
Gitblit v1.7.1