From 41156504948b983a3273ef3a5641932ac80dfd76 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期五, 15 三月 2024 18:37:21 +0800 Subject: [PATCH] 修改bug --- cloud-server-management/src/main/webapp/static/modular/system/worldCupRecords/worldCupGameStatisticsListInfo.js | 14 +++++++------- 1 files changed, 7 insertions(+), 7 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 9926e20..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 + '\')" style="color:blue;">修改比分</a>'; + formatter:function (data, item) { + return '<a href="#" onclick="WorldCupGameStatisticsListInfo.changeScore(\'' + data + '\',' + item.blue + ',' + item.red + ')" style="color:blue;">修改比分</a>'; } }, ]; @@ -42,18 +42,18 @@ /** * 商户号认证 */ -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" style="text-align: right;">蓝方得分:</label>' + ' <div class="col-sm-8">\n' + - ' <input id="blue" class="form-control" 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" style="text-align: right;">红方得分:</label>' + ' <div class="col-sm-8">\n' + - ' <input id="red" class="form-control" type="number" min="0"/>\n' + + ' <input id="red" class="form-control" type="number" min="0" value="' + red + '"/>\n' + ' </div>\n' + ' </div>\n' + ' </div>' @@ -82,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); } -- Gitblit v1.7.1