qjwj_appoint_list.blade.php 18 KB

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