@extends('vip.layouts') @section('seo_title') 足球联赛管理 @endsection @section('content')
{{--
--}} {{----}} {{--
--}}
{{--
--}} {{----}} {{--
--}} {{----}} {{--
--}} {{--
--}}
{{--
--}} {{----}} {{--
--}} {{----}} {{--
--}} {{--
--}}
{{--返回--}} 提交 重置 @if(checkRriv('/admin/BaseLeague/add'))添加@endif @if(checkRriv('/admin/BaseLeague/delete'))删除@endif
@push('dataTableJS') //var active = { // reload: function(){ // //执行重载 // table.reload('{{ $dataId }}', { // page: { // curr: 1 //重新从第 1 页开始 // } // ,where: { // infoname:$('#infoname').val(), // } // }); // } // }; function dataTableLoadFinished(res,curr,count){ var str=''; console.log(res); } //推荐|不推荐 form.on('switch(openRecommend)', function(obj){ var recommend = 0; if(obj.elem.checked==true){ recommend = 1; } setcolumn('/admin/SportsSoccer/recommendmatch',this.name,recommend,this.value,obj); //layer.tips(msg, obj.othis); }); function setcolumn(url,column,value,id,obj){ $.ajax({ url: url+'?'+column+'='+value+'&id='+id, dataType: 'json', type: 'get', success:function(data){ layer.msg(data.msg); if(data.status!=1){ if(value==1){ obj.othis[0].setAttribute("class", "layui-unselect layui-form-switch"); obj.othis[0].innerHTML='推荐'; }else{ obj.othis[0].setAttribute("class",'layui-unselect layui-form-switch layui-form-onswitch'); obj.othis[0].innerHTML='不推荐'; } } } }); } //$('.lay-btn-diy').on('click', function(){ // var type = $(this).data('type'); // active[type] ? active[type].call(this) : ''; // }); //重置表单 $('.reset').on('click',function(){ $('input').val(''); $('#infoname').val(''); // var type = $(this).data('type'); // active[type] ? active[type].call(this) : ''; }); //刷新表单 // $('.set').on('click',function(){ // var type = $(this).data('type'); // active[type] ? active[type].call(this) : ''; // }); @endpush @include('vip.datatable') @endsection