|
|
@@ -57,6 +57,7 @@
|
|
|
@{{#if(d.status==4){ }}
|
|
|
<span><li class="layui-btn layui-btn-sm layui-btn-danger" onclick="revoke(@{{d.match_id}})">已作废</li></span>
|
|
|
@{{#} }}
|
|
|
+ <button onclick="resultLog(@{{d.match_id}})" class="layui-btn layui-btn-sm layui-btn-green set">赛事结果比分记录</button>
|
|
|
</script>
|
|
|
|
|
|
<script type="text/html" id="status">
|
|
|
@@ -118,7 +119,26 @@
|
|
|
</form>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+
|
|
|
+ <style>
|
|
|
+
|
|
|
+ .log_title{
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ .log_head_div{
|
|
|
+ font-size: 17px;
|
|
|
+ margin-bottom: 5px;
|
|
|
+ }
|
|
|
+ .log_content_div td{
|
|
|
+ padding: 5px;
|
|
|
+ border: 1px solid #888888;
|
|
|
+ }
|
|
|
+
|
|
|
+ hr{
|
|
|
+ margin: 14px 0;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
<script>
|
|
|
$(function () {
|
|
|
$('body').on('click', 'a[eventtype="event-delete"]', function () {
|
|
|
@@ -148,7 +168,7 @@
|
|
|
success: function(data) {
|
|
|
conttxt ='<div style="margin-left:80px;margin-top:20px;font-size:18px;line-height:150%;"><input type="hidden" id="matchid" name="matchid" value="'+match_id+'" /><div style="display: flex;"><li>第一局比分(主/客):</li><input style="width:50px;" type="text" id="homeo" name="homeo" value="'+data.wqresult[1]['home']+'" autocomplete="off"> / <input style="width:50px;" type="text" id="guesto" name="guesto" value="'+data.wqresult[1]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第二局比分(主/客):</li><input style="width:50px;" type="text" id="homet" name="homet" value="'+data.wqresult[2]['home']+'" autocomplete="off"> / <input style="width:50px;" type="text" id="guestt" name="guestt" value="'+data.wqresult[2]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第三局比分(主/客):</li><input style="width:50px;" type="text" id="homes" name="homes" value="'+data.wqresult[3]['home']+'" autocomplete="off"> / <input style="width:50px;" type="text" id="guests" name="guests" value="'+data.wqresult[3]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第四局比分(主/客):</li><input style="width:50px;" type="text" id="homef" name="homef" value="'+data.wqresult[4]['home']+'" autocomplete="off"> / <input style="width:50px;" type="text" id="guestf" name="guestf" value="'+data.wqresult[4]['guest']+'" autocomplete="off"></div><div style="display: flex;"><li>第五局比分(主/客):</li><input style="width:50px;" type="text" id="homee" name="homee" value="'+data.wqresult[5]['home']+'" autocomplete="off"> / <input style="width:50px;" type="text" id="gueste" name="gueste" value="'+data.wqresult[5]['guest']+'" autocomplete="off"></div>';
|
|
|
|
|
|
- conttxt += '<br><div style="margin-left:230px;"><button class="layui-btn layui-btn-sm layui-btn-green set" onclick="buttonClick()"><h3>确定</h3></button> <button onclick="czClick()" class="layui-btn layui-btn-sm layui-btn-danger" id="reset"><h3>取消</h3></button></div></div>';
|
|
|
+ conttxt += '<br><div style="margin-left:230px;"><button class="layui-btn layui-btn-sm layui-btn-green set" id="buttonClick" onclick="buttonClick()"><h3>确定</h3></button> <button onclick="czClick()" class="layui-btn layui-btn-sm layui-btn-danger" id="reset"><h3>取消</h3></button></div></div>';
|
|
|
|
|
|
layerOpen = layer.open({
|
|
|
type: 1 //Page层类型
|
|
|
@@ -168,6 +188,7 @@
|
|
|
//layer弹窗结束
|
|
|
|
|
|
function buttonClick(){
|
|
|
+ $("#buttonClick").attr('disabled', true);
|
|
|
var matchid = $("#matchid").val();
|
|
|
var homeo = $("#homeo").val();
|
|
|
var guesto = $("#guesto").val();
|
|
|
@@ -280,6 +301,66 @@
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+ //layer弹窗开始
|
|
|
+ let resultLogOpen = '';
|
|
|
+ function resultLog(match_id){
|
|
|
+ $.ajax({
|
|
|
+ type: 'POST',
|
|
|
+ dataType: 'json',
|
|
|
+ url: '/admin/Sportswq/resultLog',
|
|
|
+ data: {match_id:match_id},
|
|
|
+ success: function(data) {
|
|
|
+ let length = data.list.length;
|
|
|
+ if(length <= 0){
|
|
|
+ layer.alert('该赛事还没有赛事结果比分记录');
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+
|
|
|
+ let html = '';
|
|
|
+ let info = '';
|
|
|
+ for(let i=0; i<length; i++){
|
|
|
+ info = data['list'][i];
|
|
|
+ if(info.type == 1){ //结果
|
|
|
+
|
|
|
+ html +='<div style="margin-left: 20px;"><div class="log_head_div"><span class="log_title">修改人</span>:'+info['loginname']+' <span class="log_title">添加时间</span>:'+info['create_at']+' <span class="log_title">添加类型</span>:赛事结果</div>'
|
|
|
+ +'<div class="log_content_div"><table><tr>' +
|
|
|
+ '<td>第一局比分(主/客)</td>' +
|
|
|
+ '<td>第二局比分(主/客)</td>' +
|
|
|
+ '<td>第三局比分(主/客)</td>' +
|
|
|
+ '<td>第四局比分(主/客)</td>' +
|
|
|
+ '<td>第五局比分(主/客)</td>' +
|
|
|
+ '</tr><tr>' +
|
|
|
+ '<td>'+info['inning'][1]['home']+' / '+info['inning'][1]['guest']+'</td>' +
|
|
|
+ '<td>'+info['inning'][2]['home']+' / '+info['inning'][2]['guest']+'</td>' +
|
|
|
+ '<td>'+info['inning'][3]['home']+' / '+info['inning'][3]['guest']+'</td>' +
|
|
|
+ '<td>'+info['inning'][4]['home']+' / '+info['inning'][4]['guest']+'</td>' +
|
|
|
+ '<td>'+info['inning'][5]['home']+' / '+info['inning'][5]['guest']+'</td>' +
|
|
|
+ '</tr></table></div></div><hr>';
|
|
|
+ }else{ //比分
|
|
|
+ html +='<div style="margin-left: 20px"><div class="log_head_div"><span class="log_title">修改人</span>:'+info['loginname']+' <span class="log_title">添加时间</span>:'+info['create_at']+' <span class="log_title">添加类型</span>:赛事比分</div>'
|
|
|
+ +'<div>赛事比分(主/客):'+info['home_player_score']+' / '+info['guest_player_score']+'</div></div><hr>';
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ html += '<br><div style="margin:0px auto 10px;width: 112px;"><button class="layui-btn layui-btn-sm layui-btn-green set" id="buttonClick" onclick="rlClick()"><h3>确定</h3></button> <button onclick="rlClick()" class="layui-btn layui-btn-sm layui-btn-danger" id="reset"><h3>取消</h3></button></div></div>';
|
|
|
+
|
|
|
+ resultLogOpen = layer.open({
|
|
|
+ type: 1 //Page层类型
|
|
|
+ ,area: ['660px', '500px']
|
|
|
+ ,title: '<h2>赛事结果比分记录<h2>'
|
|
|
+ ,shade: 0.6 //遮罩透明度
|
|
|
+ ,maxmin: true //允许全屏最小化
|
|
|
+ ,anim: 1 //0-6的动画形式,-1不开启
|
|
|
+ ,content:html
|
|
|
+ });
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+ function rlClick() {
|
|
|
+ layer.close(resultLogOpen)
|
|
|
+ }
|
|
|
+
|
|
|
</script>
|
|
|
@push('dataTableJS')
|
|
|
/*var active = {
|