| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 | {!! $gird !!}<script>	$(function () {        $(document).on('click','#consultant_reset_list',function () {            var id_array=new Array();            $('input[class="grid-row-checkbox"]:checked').each(function(){                id_array.push($(this).attr('data-id'));            });            var idstr=id_array.join(',');            if( idstr=='' || idstr==null ){                swal('请勾选需要重置的会员', '', 'error');            }else{                $.ajax({                    type: "post",                    url: "{{route('consultant.reset')}}",                    data: {                        id:idstr,                        _token:LA.token,                    },                    dataType: "json",                    success: function(result){                       if(result.code==0){                           swal(result.info, '', 'error');                           return false;                       }else{                           swal(result.info, '', 'success');                       }	                    setTimeout(function () {	                        window.location.reload();	                    }, 2000);                    }                });            }        })        $(document).on('click','.consultant_reset',function () {             var id = $(this).attr('ls');             if(id){                 $.ajax({                     type: "post",                     url: "{{route('consultant.reset')}}",                     data: {                         id:id,                         _token:LA.token,                     },                     dataType: "json",                     success: function(result){                         if(result.code==0){                             swal(result.info, '', 'error');                             return false;                         }else{                             swal(result.info, '', 'success');                         }                         setTimeout(function () {                             window.location.reload();                         }, 2000);                     }                 });             }        })		    })</script>
 |