post_appoint_list.blade.php 20 KB

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