123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280 |
- {!! $grid !!}
- <style>
- p#vtip { display: none; position: absolute; padding: 10px; left: 5px; font-size: 0.8em; background-color: white; border: 1px solid #a6c9e2; -moz-border-radius: 5px; -webkit-border-radius: 5px; z-index: 9999 }
- p#vtip #vtipArrow { position: absolute; top: -10px; left: 5px }
- .table.company_audit_log td{width: 20%;}
- .table.company_audit_log td:nth-child(2){width: 30%;}
- .table.company_audit_log td:nth-child(3){width: 50%;}
- .viewer-container .viewer-toolbar>li{width: 24px !important;height: 24px !important;loat: left; border: 1px solid #eee;margin-bottom: 10px; margin-right: 10px;}
- .viewer-container .viewer-toolbar>.viewer-play{width: 30px !important;height: 30px !important;}
- .viewer-container .viewer-toolbar{width: 320px;}
- .viewer-container .viewer-toolbar>li:before{margin: 1px;}
- .viewer-container .viewer-toolbar>.viewer-play:before{margin: 4px;}
- .viewer-container .viewer-prev{display: none;}
- .viewer-container .viewer-next{display: none;}
- </style>
- <div class="modal fade" id="dialog" tabindex="-1" role="dialog" aria-labelledby="ModalLabel">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
- </button>
- <h4 class="modal-title" id="myModalLabel1">业务</h4>
- </div>
- <div class="modal-body">
- {{-- <div class="overlay">
- <i class="fa fa-refresh fa-spin"></i>
- </div>--}}
- <div class="contentfade">
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="modal fade" id="viewlog" tabindex="-1" role="dialog" aria-labelledby="ModalLabel">
- <div class="modal-dialog" role="document">
- <div class="modal-content">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span>
- </button>
- <h4 class="modal-title" id="log">日志</h4>
- </div>
- <div class="view-body" style="padding: 15px;max-height:500px;overflow: auto;">
- <div class="overlay">
- <i class="fa fa-refresh fa-spin"></i>
- </div>
- <div class="view-box">
- </div>
- </div>
- </div>
- </div>
- </div>
- <script>
- $(function () {
- $('table td .show-img').viewer({
- url: 'data-original',
- title:false, // 显示当前图片的标题
- navbar:false, //显示缩略图导航
- /* toolbar:false //显示工具栏*/
- });
- $(document).off('click','.logview').on('click','.logview',function() {
- var com_id = $(this).data('id');
- $.post("{{route('personalTalents.log')}}",{'id':com_id, '_token': '{{ csrf_token() }}'},function(result){
- $(".view-body").html(result['html']);
- $("#log").html(result['detail'])
- $("#viewlog").show();
- $("#viewlog").addClass('in');
- });
- });
- $('.btn-refresh').click(function () {
- var arr = new Array();
- $(".grid-row-checkbox:checked").each(function(i){
- arr[i] = $(this).data('id');
- });
- var vals = arr.join(",");
- var url = "{{route('company.refresh')}}";
- $.post(url,{'ids':vals,'_token':'{{ csrf_token() }}'},function (res) {
- $.pjax.reload('#pjax-container');
- });
- });
- $(document).off("click",'.jobaudit').on('click','.jobaudit',function () {
- $("#myModalLabel1").html('业务');
- $('#ids').val($(this).data('code'));
- $('#audit').addClass('in');
- $('#audit').css('display', 'block');
- $(' #audit .contentfade').html('');
- });
- $(document).off("click","#audit .btn-primary").on('click',"#audit .btn-primary",function () {
- $('#auditForm').submit();
- })
- $('.business').on('click', function () {
- $("#myModalLabel1").html('业务');
- var company_id = $(this).attr('id');
- $('#dialog').addClass('in');
- $('#dialog').css('display', 'block');
- $('.contentfade').html('');
- $.ajax({
- url:"{{admin_base_path('/firm/ajax/getinfo/')}}",
- data:{'id':company_id,'utype':1,'_token':'{{csrf_token()}}'},
- // dataType:'json',
- beforeSend:function(){
- $('.overlay').show();
- },
- success:function (res) {
- $('.contentfade').html(res);
- },
- complete: function () {
- $('.overlay').hide();
- },
- })
- });
- $(document).on('click','#social_input',function() {
- $("#dialog").show();
- $("#dialog").addClass('in');
- });
- $(document).on('click','#tijiao',function() {
- $("#form1").submit();
- });
-
- $(".close").off().on('click', function () {
- $(this).closest(".modal").removeClass('in');
- $(this).closest(".modal").hide();
- });
- $(document).off("click",'#admin_user').on('click','#admin_user',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('adminUser.set')}}",
- data: {
- id:idstr,
- _token:LA.token,
- },
- dataType: "json",
- success: function(result){
- $(".contentfade").html(result.html);
- $("#myModalLabel1").html(result.detail);
- $("#dialog").show();
- $("#dialog").addClass('in');
- }
- });
- }
- });
- $(document).off("click",'.levelSet').on('click','.levelSet',function () {
- var idstr=$(this).data('code');
- if( idstr=='' || idstr==null ){
- swal('请选择需要审核的会员', '', 'error');
- }else{
- $.ajax({
- type: "POST",
- url: "{{route('level.set')}}",
- data: {
- id:idstr,
- _token:LA.token,
- },
- dataType: "json",
- success: function(result){
- $(".contentfade").html(result.html);
- $("#myModalLabel1").html(result.detail);
- $("#dialog").show();
- $("#dialog").addClass('in');
- }
- });
- }
- });
- $(document).off("click",'.agreeSet').on('click','.agreeSet',function () {
- var idstr=$(this).data('code');
- if( idstr=='' || idstr==null ){
- swal('请选择需要推送的会员', '', 'error');
- }else{
- $.ajax({
- type: "POST",
- url: "{{route('agree.set')}}",
- data: {
- id:idstr,
- _token:LA.token,
- },
- dataType: "json",
- success: function(result){
- $(".contentfade").html(result.html);
- $("#myModalLabel1").html(result.detail);
- $("#dialog").show();
- $("#dialog").addClass('in');
- }
- });
- }
- });
- $(document).off("click",'.pushSet').on('click','.pushSet',function () {
- var idstr=$(this).data('code');
- if( idstr=='' || idstr==null ){
- swal('请选择需要推送的会员', '', 'error');
- }else{
- $.ajax({
- type: "POST",
- url: "{{route('push.set')}}",
- data: {
- id:idstr,
- _token:LA.token,
- },
- dataType: "json",
- success: function(result){
- $(".contentfade").html(result.html);
- $("#myModalLabel1").html(result.detail);
- $("#dialog").show();
- $("#dialog").addClass('in');
- }
- });
- }
- });
- vtip = function() {
- this.xOffset = -10; // x distance from mouse
- this.yOffset = 15; // y distance from mouse
- $(".vtip").unbind().hover(
- function(e) {
- this.t = $(this).attr("title");
- this.title = '';
- this.top = (e.pageY + yOffset);
- this.left = (e.pageX + xOffset);
- $('body').css("cursor","help");
- $('p#vtip').width()>450?$('p#vtip').width(450):'';
- $('body').append( '<p id="vtip">' + this.t + '</p>' );
- $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
- },
- function() {
- this.title = this.t;
- $('body').css("cursor","");
- $("p#vtip").fadeOut("slow").remove();
- }
- ).mousemove(
- function(e) {
- this.top = (e.pageY + yOffset);
- this.left = (e.pageX + xOffset);
- $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
- }
- );
- };
- vtip();
- $('select[name="parent_id"]').parent().parent().attr('id','parent_id_div');
- $('select[name="type_id"]').parent().parent().attr('id','type_id_div');
- $('#parent_id_div select[name="parent_id"]').change(function(){
- if($(this).val() ==''){
- $('#type_id_div').css('display','none');
- $('select[name="type_id"]').val('');
- }else{
- $('#type_id_div').css('display','block');
- }
- });
- var parent_id = $('#parent_id_div select[name="parent_id"]').val();
- if(parent_id ==''){
- $('#type_id_div').css('display','none');
- }else{
- $('#type_id_div').css('display','block');
- }
- })
- </script>
|