jyyx_appoint_list.blade.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366
  1. <section class="content">
  2. <div class="row">
  3. <div class="col-md-12">
  4. <div class="box">
  5. {{ csrf_field() }}
  6. <div class="box-body table-responsive">
  7. <div class="col-md-3 clearfix">
  8. <div class="box-body table-responsive" style="padding:5px;">
  9. <div class="form-group clearfix" style="margin-bottom:0;">
  10. <label for="prefix" class="control-label">精确查询:</label>
  11. <div style="float: left;width: 150px;">
  12. <input type="text" class="form-control" name="realname" id="realname" placeholder="请输入姓名" @if(array_key_exists('realname',$search_data)) value="{{$search_data['realname']}}" @endif>
  13. </div>
  14. </div>
  15. </div>
  16. </div>
  17. </div>
  18. <div class="box-footer">
  19. <div class="btn-group" style="margin-left: 440px;">
  20. <button type="button" class="btn btn-info btn-primary js-search" data-type="1"><i class="fa fa-search">搜索</i></button>
  21. </div>
  22. </div>
  23. <div class="box-body table-responsive">
  24. <div class="col-md-12">
  25. <div class="box-header with-border">
  26. <h3 class="box-title">查询结果</h3>
  27. </div>
  28. <div class="box-body table-responsive no-padding">
  29. <table class="table table-hover">
  30. <thead>
  31. <tr>
  32. <th height="26" class="admin_list_tit">
  33. <input type="checkbox" name=" " title="全选/反选" id="chk" />
  34. </th>
  35. <th width="150">姓名</th>
  36. <th width="150">电话</th>
  37. <th>备注</th>
  38. <th width="150">下载情况</th>
  39. <th width="150">操作</th>
  40. </tr>
  41. </thead>
  42. <tbody>
  43. @if(isset($list) && $list->total())
  44. @foreach($list as $k=>$v)
  45. <tr>
  46. <td>
  47. <input ls="{{$v->id}}" name="id[]" id="appointinfo_{{$v->id}}" type="checkbox" value="{{$v->id}}" />
  48. </td>
  49. <td>
  50. <span style="color: #0A246A; margin-right: 3px;">{!! $v->realname !!}</span>
  51. </td>
  52. <td>
  53. {{ $v->mobile }}
  54. </td>
  55. <td>
  56. {{ $v->status }}
  57. </td>
  58. <td>{!! $v->remark !!}</td>
  59. <td>
  60. <button class='btn btn-primary btn-xs fetch_word' data-aid="{{$v->id}}" style="margin-bottom: 10px">下载简历</button>
  61. </td>
  62. </tr>
  63. @endforeach
  64. @else
  65. <tr>
  66. <td colspan="11">
  67. <div class="list_empty_group">
  68. <div class="list_empty">
  69. <div class="list_empty_left"></div>
  70. <div class="list_empty_right">
  71. <div class="sorry_box">对不起,暂无相关信息!</div>
  72. </div>
  73. <div class="clear"></div>
  74. </div>
  75. </div>
  76. </td>
  77. </tr>
  78. @endif
  79. </tbody>
  80. </table>
  81. </div>
  82. @if(isset($list))
  83. {{ $list->appends($search_data)->links('module.widgets.pagination') }}
  84. @endif
  85. </div>
  86. </div>
  87. </div>
  88. </div>
  89. </div>
  90. </section>
  91. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.disappear.tooltip.js') }}"></script>
  92. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.userselectlayer.js') }}"></script>
  93. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.user.city.js') }}"></script>
  94. <script type="text/javascript" src="{{ theme_asset('app/js/jquery.modal.dialog.js') }}"></script>
  95. <script>
  96. //图片预览
  97. this.vtip = function() {
  98. this.xOffset = -10; // x distance from mouse
  99. this.yOffset = 15; // y distance from mouse
  100. $(".vtip").unbind().hover(
  101. function(e) {
  102. this.t = $(this).attr("title");
  103. this.title = '';
  104. this.top = (e.pageY + yOffset);
  105. this.left = (e.pageX + xOffset);
  106. $('body').css("cursor","help");
  107. $('p#vtip').width()>450?$('p#vtip').width(450):'';
  108. $('body').append( '<p id="vtip">' + this.t + '</p>' );
  109. $('p#vtip').css("top", this.top+"px").css("left", this.left+"px").fadeIn(0);
  110. },
  111. function() {
  112. this.title = this.t;
  113. $('body').css("cursor","");
  114. $("p#vtip").fadeOut("slow").remove();
  115. }
  116. ).mousemove(
  117. function(e) {
  118. this.top = (e.pageY + yOffset);
  119. this.left = (e.pageX + xOffset);
  120. $("p#vtip").css("top", this.top+"px").css("left", this.left+"px");
  121. }
  122. );
  123. };
  124. //提交数组整理
  125. this.show = function(type = 0){
  126. var id_array = new Array();
  127. if(type == 0){
  128. $('input[name="id\[\]"]:checked').each(function() {
  129. id_array.push($(this).val()); //向数组中添加元素
  130. });
  131. }else{
  132. id_array.push($("#appointinfo_"+type).val());
  133. }
  134. if (id_array.length == 0) {
  135. disapperTooltip('remind', '请选择用户');
  136. return false;
  137. } else {
  138. var idstr = id_array.join(','); //将数组元素连接起来以构建一个字符串
  139. if (idstr == '' || idstr == null) {
  140. idstr = 0;
  141. }
  142. return idstr;
  143. }
  144. }
  145. $(document).ready(function() {
  146. vtip();
  147. $(document).off("click",'.appoint_audit').on('click','.appoint_audit',function () {
  148. appointAudit($(this).data('param'));
  149. });
  150. $(document).off("click",'.supplement').on('click','.supplement',function () {
  151. supplement($(this).data('param'));
  152. });
  153. $(document).off("click",'.health').on('click','.health',function () {
  154. health($(this).data('param'),$(this).data("type"));
  155. });
  156. $(document).off("click",'.fetch_word').on('click','.fetch_word',function () {
  157. var appoint_id = $(this).attr('data-aid');
  158. var qsDialog = $(this).dialog({
  159. title: 'word简历下载',
  160. loading: true,
  161. showFooter: false,
  162. yes: function() {
  163. $('.J_btnyes').val('发送中...');
  164. $.post("{{ route('Health.jyyxStatus') }}", {_token:'{{ csrf_token() }}',id:appoint_id}, function(result) {
  165. if (result.status == 1) {
  166. disapperTooltip('success', result.msg);
  167. window.location.href = result.url;
  168. setTimeout(function() {
  169. $.pjax.reload('#pjax-container');
  170. qsDialog.hide(true);
  171. }, 2000);
  172. } else {
  173. $('.J_btnyes').val('确定');
  174. disapperTooltip('remind', result.msg);
  175. }
  176. }, 'json');
  177. }
  178. });
  179. qsDialog.setCloseDialog(false);
  180. qsDialog.setContent("即将下载简历,请确认?");
  181. qsDialog.showFooter(true);
  182. });
  183. $("#ButtonAudit").click(function() {
  184. appointAudit(0)
  185. })
  186. /*查看人员信息*/
  187. $('.ButCompared').click(function() {
  188. var qsDialog = $(this).dialog({
  189. title: '查看报名信息',
  190. loading: true,
  191. footer: false
  192. });
  193. var param = $(this).data('param');
  194. var url = $(this).data('url') + "?id=" + param;
  195. $.getJSON(url, function(result) {
  196. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  197. });
  198. });
  199. });
  200. /*查看日志信息*/
  201. $('.ButExamineLog').click(function() {
  202. var qsDialog = $(this).dialog({
  203. title: '查看审核信息',
  204. loading: true,
  205. footer: false
  206. });
  207. var param = $(this).data('param');
  208. var url = $(this).data('url') + "?id=" + param;
  209. $.getJSON(url, function(result) {
  210. qsDialog.setContent('<div style="max-height:600px;overflow-y:auto;">' + result.data + '<\/div>');
  211. });
  212. });
  213. $('.js-search').click(function() {
  214. var realname = $.trim($('#realname').val());
  215. var parm = [];
  216. if (realname) {
  217. parm.push(`realname=${realname}`);
  218. }
  219. if (parm.length == 0) {
  220. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/health/jyyx_appoint_list')}}";
  221. } else {
  222. window.location = "{{ url('/ST3IXxKlOa4eGEv0eTw0CfORI9444Mgj/health/jyyx_appoint_list')}}?" + parm.join('&');
  223. }
  224. });
  225. //提交准考证
  226. $("#build").click(function() {
  227. $("form[name=form1]").attr("action", "{:U('buildcard')}" + "&recruit_id=" + recruit_ids +
  228. "&time=" + time + "&audits=" + audits + "&times=" + times + "&home=" + home + "&address=" + address + "&expand=" + expand);
  229. $("form[name=form1]").submit();
  230. });
  231. //撤销准考证
  232. $("#del_ticket").click(function() {
  233. var ticket_id = $("input[name='ticket_id']:checked").val();
  234. var r_id = $("input[name='r_id']").val();
  235. $("form[name=form1]").attr("action", "{:U('delcard')}" + "&ticket_id=" + ticket_id + "&r_id=" + r_id);
  236. $("form[name=form1]").submit();
  237. });
  238. /*全选*/
  239. $("#chk").click(function() {
  240. if (this.checked == false) {
  241. // console.log("反选")
  242. $("td :checkbox").prop("checked", false);
  243. }
  244. if (this.checked == true) {
  245. // console.log("全选")
  246. $("td :checkbox").prop("checked", true);
  247. }
  248. })
  249. //子复选框有一个未选中时,去掉全选按钮的选中状态
  250. $("td :checkbox").click(function() {
  251. var allCheckNum = $("td input[type='checkbox']").length;
  252. var checkedNum = $("td input[type='checkbox']:checked").length;
  253. if (checkedNum == allCheckNum) {
  254. // console.log("全选");
  255. document.getElementById("chk").checked = true;
  256. } else {
  257. // console.log("反选");
  258. document.getElementById("chk").checked = false;
  259. }
  260. })
  261. </script>
  262. <link href="{{ theme_asset('app/css/person/common.css') }}" rel="stylesheet">
  263. <style type="text/css">
  264. 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 }
  265. p#vtip img{width: 200px}
  266. /*body{min-width: 1680px;overflow: auto;}*/
  267. .clearfix:after {
  268. display: block;
  269. clear: both;
  270. content: "";
  271. visibility: hidden;
  272. height: 0;
  273. }
  274. .clearfix {
  275. zoom: 1;
  276. /*为了兼容IE*/
  277. }
  278. .box .box-body {
  279. position: relative;
  280. }
  281. .box .form-group label {
  282. float: left;
  283. width: 120px;
  284. line-height: 34px;
  285. text-align: right;
  286. }
  287. .box .input-group {
  288. width: 360px;
  289. }
  290. .list_empty_group {
  291. text-align: center;
  292. line-height: 80px;
  293. color: #404446;
  294. font-size: 22px;
  295. }
  296. .jobslist_table .li-table-btn {
  297. width: 120px;
  298. height: 50px;
  299. line-height: 50px;
  300. }
  301. .modal {
  302. display: block;
  303. position: static;
  304. }
  305. .qs-category-unlimited .selected-group .selected-box .s-cell {
  306. width: 112px;
  307. }
  308. .qs-category-unlimited .cate-type .dd {
  309. margin: 0px;
  310. font-size: 14px;
  311. }
  312. .qs-category-unlimited .cate-type .one-select label {
  313. display: block;
  314. margin: 0px;
  315. width: 110px;
  316. }
  317. .qs-category-unlimited .cate-type .one-select .check-box {
  318. margin: 0px;
  319. }
  320. .modal_body_box .list_nav1 li label {
  321. margin-bottom: 0px;
  322. }
  323. .disappear_tooltip .content {
  324. min-height: auto;
  325. padding: 0px;
  326. padding-left: 10px;
  327. padding-right: 10px;
  328. }
  329. </style>