index.blade.php 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280
  1. {!! $grid !!}
  2. <style>
  3. 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 }
  4. p#vtip #vtipArrow { position: absolute; top: -10px; left: 5px }
  5. .table.company_audit_log td{width: 20%;}
  6. .table.company_audit_log td:nth-child(2){width: 30%;}
  7. .table.company_audit_log td:nth-child(3){width: 50%;}
  8. .viewer-container .viewer-toolbar>li{width: 24px !important;height: 24px !important;loat: left; border: 1px solid #eee;margin-bottom: 10px; margin-right: 10px;}
  9. .viewer-container .viewer-toolbar>.viewer-play{width: 30px !important;height: 30px !important;}
  10. .viewer-container .viewer-toolbar{width: 320px;}
  11. .viewer-container .viewer-toolbar>li:before{margin: 1px;}
  12. .viewer-container .viewer-toolbar>.viewer-play:before{margin: 4px;}
  13. .viewer-container .viewer-prev{display: none;}
  14. .viewer-container .viewer-next{display: none;}
  15. </style>
  16. <div class="modal fade" id="dialog" tabindex="-1" role="dialog" aria-labelledby="ModalLabel">
  17. <div class="modal-dialog" role="document">
  18. <div class="modal-content">
  19. <div class="modal-header">
  20. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
  21. </button>
  22. <h4 class="modal-title" id="myModalLabel1">业务</h4>
  23. </div>
  24. <div class="modal-body">
  25. {{-- <div class="overlay">
  26. <i class="fa fa-refresh fa-spin"></i>
  27. </div>--}}
  28. <div class="contentfade">
  29. </div>
  30. </div>
  31. </div>
  32. </div>
  33. </div>
  34. <div class="modal fade" id="viewlog" tabindex="-1" role="dialog" aria-labelledby="ModalLabel">
  35. <div class="modal-dialog" role="document">
  36. <div class="modal-content">
  37. <div class="modal-header">
  38. <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
  39. </button>
  40. <h4 class="modal-title" id="log">日志</h4>
  41. </div>
  42. <div class="view-body" style="padding: 15px;max-height:500px;overflow: auto;">
  43. <div class="overlay">
  44. <i class="fa fa-refresh fa-spin"></i>
  45. </div>
  46. <div class="view-box">
  47. </div>
  48. </div>
  49. </div>
  50. </div>
  51. </div>
  52. <script>
  53. $(function () {
  54. $('table td .show-img').viewer({
  55. url: 'data-original',
  56. title:false, // 显示当前图片的标题
  57. navbar:false, //显示缩略图导航
  58. /* toolbar:false //显示工具栏*/
  59. });
  60. $(document).off('click','.logview').on('click','.logview',function() {
  61. var com_id = $(this).data('id');
  62. $.post("{{route('personalTalents.log')}}",{'id':com_id, '_token': '{{ csrf_token() }}'},function(result){
  63. $(".view-body").html(result['html']);
  64. $("#log").html(result['detail'])
  65. $("#viewlog").show();
  66. $("#viewlog").addClass('in');
  67. });
  68. });
  69. $('.btn-refresh').click(function () {
  70. var arr = new Array();
  71. $(".grid-row-checkbox:checked").each(function(i){
  72. arr[i] = $(this).data('id');
  73. });
  74. var vals = arr.join(",");
  75. var url = "{{route('company.refresh')}}";
  76. $.post(url,{'ids':vals,'_token':'{{ csrf_token() }}'},function (res) {
  77. $.pjax.reload('#pjax-container');
  78. });
  79. });
  80. $(document).off("click",'.jobaudit').on('click','.jobaudit',function () {
  81. $("#myModalLabel1").html('业务');
  82. $('#ids').val($(this).data('code'));
  83. $('#audit').addClass('in');
  84. $('#audit').css('display', 'block');
  85. $(' #audit .contentfade').html('');
  86. });
  87. $(document).off("click","#audit .btn-primary").on('click',"#audit .btn-primary",function () {
  88. $('#auditForm').submit();
  89. })
  90. $('.business').on('click', function () {
  91. $("#myModalLabel1").html('业务');
  92. var company_id = $(this).attr('id');
  93. $('#dialog').addClass('in');
  94. $('#dialog').css('display', 'block');
  95. $('.contentfade').html('');
  96. $.ajax({
  97. url:"{{admin_base_path('/firm/ajax/getinfo/')}}",
  98. data:{'id':company_id,'utype':1,'_token':'{{csrf_token()}}'},
  99. // dataType:'json',
  100. beforeSend:function(){
  101. $('.overlay').show();
  102. },
  103. success:function (res) {
  104. $('.contentfade').html(res);
  105. },
  106. complete: function () {
  107. $('.overlay').hide();
  108. },
  109. })
  110. });
  111. $(document).on('click','#social_input',function() {
  112. $("#dialog").show();
  113. $("#dialog").addClass('in');
  114. });
  115. $(document).on('click','#tijiao',function() {
  116. $("#form1").submit();
  117. });
  118. $(".close").off().on('click', function () {
  119. $(this).closest(".modal").removeClass('in');
  120. $(this).closest(".modal").hide();
  121. });
  122. $(document).off("click",'#admin_user').on('click','#admin_user',function () {
  123. var id_array=new Array();
  124. $('input[class="grid-row-checkbox"]:checked').each(function(){
  125. id_array.push($(this).attr('data-id'));
  126. });
  127. var idstr=id_array.join(',');
  128. if( idstr=='' || idstr==null ){
  129. swal('请勾选需要设置客服的会员', '', 'error');
  130. }else{
  131. $.ajax({
  132. type: "POST",
  133. url: "{{route('adminUser.set')}}",
  134. data: {
  135. id:idstr,
  136. _token:LA.token,
  137. },
  138. dataType: "json",
  139. success: function(result){
  140. $(".contentfade").html(result.html);
  141. $("#myModalLabel1").html(result.detail);
  142. $("#dialog").show();
  143. $("#dialog").addClass('in');
  144. }
  145. });
  146. }
  147. });
  148. $(document).off("click",'.levelSet').on('click','.levelSet',function () {
  149. var idstr=$(this).data('code');
  150. if( idstr=='' || idstr==null ){
  151. swal('请选择需要审核的会员', '', 'error');
  152. }else{
  153. $.ajax({
  154. type: "POST",
  155. url: "{{route('level.set')}}",
  156. data: {
  157. id:idstr,
  158. _token:LA.token,
  159. },
  160. dataType: "json",
  161. success: function(result){
  162. $(".contentfade").html(result.html);
  163. $("#myModalLabel1").html(result.detail);
  164. $("#dialog").show();
  165. $("#dialog").addClass('in');
  166. }
  167. });
  168. }
  169. });
  170. $(document).off("click",'.agreeSet').on('click','.agreeSet',function () {
  171. var idstr=$(this).data('code');
  172. if( idstr=='' || idstr==null ){
  173. swal('请选择需要推送的会员', '', 'error');
  174. }else{
  175. $.ajax({
  176. type: "POST",
  177. url: "{{route('agree.set')}}",
  178. data: {
  179. id:idstr,
  180. _token:LA.token,
  181. },
  182. dataType: "json",
  183. success: function(result){
  184. $(".contentfade").html(result.html);
  185. $("#myModalLabel1").html(result.detail);
  186. $("#dialog").show();
  187. $("#dialog").addClass('in');
  188. }
  189. });
  190. }
  191. });
  192. $(document).off("click",'.pushSet').on('click','.pushSet',function () {
  193. var idstr=$(this).data('code');
  194. if( idstr=='' || idstr==null ){
  195. swal('请选择需要推送的会员', '', 'error');
  196. }else{
  197. $.ajax({
  198. type: "POST",
  199. url: "{{route('push.set')}}",
  200. data: {
  201. id:idstr,
  202. _token:LA.token,
  203. },
  204. dataType: "json",
  205. success: function(result){
  206. $(".contentfade").html(result.html);
  207. $("#myModalLabel1").html(result.detail);
  208. $("#dialog").show();
  209. $("#dialog").addClass('in');
  210. }
  211. });
  212. }
  213. });
  214. vtip = function() {
  215. this.xOffset = -10; // x distance from mouse
  216. this.yOffset = 15; // y distance from mouse
  217. $(".vtip").unbind().hover(
  218. function(e) {
  219. this.t = $(this).attr("title");
  220. this.title = '';
  221. this.top = (e.pageY + yOffset);
  222. this.left = (e.pageX + xOffset);
  223. $('body').css("cursor","help");
  224. $('p#vtip').width()>450?$('p#vtip').width(450):'';
  225. $('body').append( '<p id="vtip">' + this.t + '</p>' );
  226. $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
  227. },
  228. function() {
  229. this.title = this.t;
  230. $('body').css("cursor","");
  231. $("p#vtip").fadeOut("slow").remove();
  232. }
  233. ).mousemove(
  234. function(e) {
  235. this.top = (e.pageY + yOffset);
  236. this.left = (e.pageX + xOffset);
  237. $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
  238. }
  239. );
  240. };
  241. vtip();
  242. $('select[name="parent_id"]').parent().parent().attr('id','parent_id_div');
  243. $('select[name="type_id"]').parent().parent().attr('id','type_id_div');
  244. $('#parent_id_div select[name="parent_id"]').change(function(){
  245. if($(this).val() ==''){
  246. $('#type_id_div').css('display','none');
  247. $('select[name="type_id"]').val('');
  248. }else{
  249. $('#type_id_div').css('display','block');
  250. }
  251. });
  252. var parent_id = $('#parent_id_div select[name="parent_id"]').val();
  253. if(parent_id ==''){
  254. $('#type_id_div').css('display','none');
  255. }else{
  256. $('#type_id_div').css('display','block');
  257. }
  258. })
  259. </script>