post_select.blade.php 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312
  1. @extends('module.layouts.content')
  2. @push('meta')
  3. @endpush
  4. @push('css')
  5. <style >
  6. .op_block{
  7. position: relative;
  8. margin-top: 30px;
  9. }
  10. .draggable_content {
  11. width: 60%;
  12. float: left;
  13. margin: 20px 0 0;
  14. }
  15. .tips{
  16. float: right;
  17. width: 35%;
  18. margin: 20px 0 0;
  19. border: 1px solid #ccc;
  20. }
  21. .tips_body{
  22. padding: 20px;
  23. }
  24. .tips_body p{
  25. line-height: 30px;
  26. margin-bottom: 10px;
  27. font-size: 20px;
  28. }
  29. .draggable_content h2{
  30. line-height: 50px;
  31. text-align: center;
  32. border-bottom: 1px solid #ccc;
  33. }
  34. .draggable_content .select{
  35. border: 1px solid #ccc;
  36. width: 45%;
  37. margin-right: 30px;
  38. float: left;
  39. }
  40. .draggable_content .options{
  41. width: 50%;
  42. float: left;
  43. border: 1px solid #ccc;
  44. }
  45. .list-group{
  46. padding: 20px;
  47. width: 80%;
  48. margin: 20px auto;
  49. border: 2px dashed #ccc;
  50. min-height: 1200px;
  51. }
  52. .list-group-item{
  53. border-radius: 10px;
  54. border: 1px dashed #0a9fd9;
  55. line-height: 30px;
  56. margin-bottom: 10px;
  57. padding: 10px 30px;
  58. }
  59. .operation{
  60. width: 100%;
  61. float: left;
  62. text-align: center;
  63. margin-top: 30px;
  64. }
  65. .mask {
  66. position: absolute;
  67. top: 0px;
  68. left: 0px;
  69. background-color: #777;
  70. z-index: 9;
  71. filter: alpha(opacity=60);
  72. opacity:0.5;
  73. -moz-opacity:0.5;
  74. }
  75. </style>
  76. @endpush
  77. @push('js')
  78. <link href="{{ theme_asset('app/css/common.css') }}" rel="stylesheet">
  79. <link href="{{theme_asset('app/css/recruit/recruit.css')}}" rel="stylesheet" type="text/css"/>
  80. <link rel="stylesheet" href="{{ theme_asset('app/css/element.css') }}">
  81. @endpush
  82. @section('content')
  83. <div id="app">
  84. <div class="recruit_container clearfix">
  85. <div class="recruit_show_content" style="margin-top: 10px;width: 100%">
  86. <div class="title" style="text-align: center"><h2>晋江市公开招聘第十六批村务(社区)专职工作者择岗系统</h2></div>
  87. {{-- <div>--}}
  88. {{-- <div class="operation">--}}
  89. {{-- <el-button type="success" @click="rand()">生成随机测试数据</el-button> <el-button type="success" @click="enter()">进入指定测试数据</el-button>--}}
  90. {{-- </div>--}}
  91. {{-- <p style="text-align: center;line-height: 30px">当前测试数据:uid->{{ $info->uid }};recruit_id->{{ $info->recruit_id }};appoint_id->{{ $info->appoint_id }}</p>--}}
  92. {{-- </div>--}}
  93. <div role="alert" class="el-message el-message--error" style="position:relative" v-if="status == -1">
  94. <i class="el-message__icon el-icon-error"></i>
  95. <p class="el-message__content">您已放弃择岗</p>
  96. </div>
  97. <div role="alert" class="el-message el-message--success" style="position:relative" v-if="status == 1">
  98. <i class="el-message__icon el-icon-success"></i>
  99. <p class="el-message__content">您已提交择岗意向,请耐心等待结果!</p>
  100. </div>
  101. <div class="op_block clearfix" ref="opblock">
  102. <div class="draggable_content">
  103. <div class="select">
  104. <h2>意向镇(街道)</h2>
  105. <draggable :list="select_list" :disabled="!enabled" class="list-group" ghost-class="ghost" @start="dragging = true" @end="dragging = false" v-bind="dragOptions">
  106. <div class="list-group-item" v-for="(element,index) in select_list" :key="element.name">
  107. @{{ index+1 }} @{{ element.name }}
  108. </div>
  109. </draggable>
  110. </div>
  111. <div class="options">
  112. <h2>可选镇(街道)</h2>
  113. <draggable :list="options_list" :disabled="!enabled" class="list-group" ghost-class="ghost" @start="dragging = true" @end="dragging = false" v-bind="dragOptions">
  114. <div class="list-group-item" v-for="element in options_list" :key="element.name" v-text="element.name">
  115. </div>
  116. </draggable>
  117. </div>
  118. </div>
  119. <div class="tips">
  120. <h2 style="text-align: center;line-height: 50px;border-bottom: 1px solid #ccc">
  121. 择岗系统操作说明
  122. </h2>
  123. <div class="tips_body">
  124. <p>
  125. 1.志愿优先原则。择岗系统开放后,A类岗位考生按照志愿依次对尚未招满的A类岗位3个镇(街道、经济开发区)进行排序,系统将按照考生填报的镇(街道、经济开发区)顺序,依次进行检索录用。
  126. </p>
  127. <p>
  128. 2.排名优先原则。择岗系统关闭后,系统将按照参与择岗的考生综合成绩分数由高到低对考生进行排名,随后依照排名先后依次检索每一名考生的镇(街道、经济开发区)志愿,对其进行检索录用。
  129. </p>
  130. <p>
  131. 3.检索录用原则。系统按照考生排名当检索到某个考生时,首先将匹配考生填报的第一志愿镇(街道、经济开发区),若此时考生填报的第一志愿镇(街道、经济开发区)仍有空缺的岗位名额,系统将自动将考生录用到该镇(街道、经济开发区),择岗就完成,并不再对考生的其余志愿镇(街道、经济开发区)进行检索匹配;若此时考生填报的第一志愿镇(街道、经济开发区)岗位员额已满,系统将继续检索考生填报的第二志愿镇(街道、经济开发区),以此类推,循环往复,直至考生所填报的最后一个志愿镇(街道、经济开发区)。
  132. </p>
  133. <p>
  134. 4.其他注意事项。若出现考生综合成绩分数一致而选择同一镇(街道、经济开发区)岗位的情况,按照笔试卷面成绩由高到低排序,确定优先录取顺序;若笔试的卷面成绩也相同,按照写作成绩从高到低排序,确定优先录取顺序;若写作成绩也相同,比较考生所录用的志愿顺序,录用志愿顺序在前者优先录用,录用志愿顺序相同的则全部、超额录用。
  135. 择岗咨询电话:0595-36796789。
  136. </p>
  137. </div>
  138. </div>
  139. <div class="operation" v-if="status == 0">
  140. <el-button type="warning" @click="giveup()">放弃择岗</el-button> <el-button type="success" @click="post()">提交择岗</el-button>
  141. </div>
  142. <div id="mask" class="mask" :style="switch_mask" ></div>
  143. </div>
  144. </div>
  145. </div>
  146. </div>
  147. @endsection
  148. @section('script')
  149. <script src="{{theme_asset('app/js/vue.min.js')}}"></script>
  150. <script src="{{theme_asset('app/js/qs.min.js')}}"></script>
  151. <script src="{{theme_asset('app/js/axios.js')}}"></script>
  152. <script src="{{theme_asset('app/js/Sortable.min.js')}}"></script>
  153. <script src="{{theme_asset('app/js/vuedraggable.umd.min.js')}}"></script>
  154. <script src="{{theme_asset('app/js/element.js')}}"></script>
  155. <script>
  156. let recruit_id = '{{ $info->recruit_id }}';
  157. let appoint_id = '{{ $info->appoint_id }}';
  158. let status = '{{ $info->status }}';
  159. let type = '{{ $info->type }}';
  160. const app = new Vue({
  161. el: '#app',
  162. data: {
  163. enabled: true,
  164. select_list: eval({!! $select_list !!}),
  165. options_list: eval({!! $options_list !!}),
  166. dragging: false,
  167. loading: true,
  168. post_data: {
  169. recruit_id: recruit_id,
  170. appoint_id: appoint_id,
  171. uid: '{{ $info->uid }}'
  172. },
  173. status: status,
  174. switch_mask:{}
  175. },
  176. methods: {
  177. post: function() {
  178. if (this.select_list.length == 0) {
  179. this.$message.error('请选择意向街道!');
  180. return false;
  181. }
  182. if(this.select_list.length != 3){
  183. var msg = "择岗提交成功后不得改报,请您确认是否继续提交";
  184. }else{
  185. var msg = "您尚未选满3个镇(街道),请按照志愿依次对尚未招满的A类岗位3个镇(街道、经济开发区)进行排序。";
  186. }
  187. this.$confirm(msg, '警告', {
  188. confirmButtonText: '确认提交',
  189. cancelButtonText: '我再想想',
  190. type: 'warning'
  191. }).then(() => {
  192. this.loading = this.$loading({
  193. lock: false,
  194. text: '加载中',
  195. spinner: 'el-icon-loading',
  196. background: 'rgba(0, 0, 0, 0.7)'
  197. });
  198. this.post_data._token = '{{csrf_token()}}';
  199. this.post_data.select = this.select_list;
  200. axios.post("{{route('recruit.comfirm_post')}}",Qs.stringify(this.post_data)).then(response => {
  201. if(response.data.status){
  202. this.$alert(response.data.msg, '提交成功', {
  203. confirmButtonText: '确定',
  204. callback: action => {
  205. window.location.reload();
  206. }
  207. });
  208. }else{
  209. this.$message.error(response.data.msg);
  210. this.loading.close();
  211. return false;
  212. }
  213. });
  214. }).catch(() => {
  215. });
  216. },
  217. giveup: function(){
  218. var msg = "您正在进行放弃择岗的操作!";
  219. this.$confirm(msg, '警告', {
  220. confirmButtonText: '确认放弃',
  221. cancelButtonText: '我再想想',
  222. type: 'warning'
  223. }).then(() => {
  224. this.loading = this.$loading({
  225. lock: false,
  226. text: '加载中',
  227. spinner: 'el-icon-loading',
  228. background: 'rgba(0, 0, 0, 0.7)'
  229. });
  230. this.post_data._token = '{{csrf_token()}}';
  231. axios.post("{{route('recruit.give_up_post')}}",Qs.stringify(this.post_data)).then(response => {
  232. if(response.data.status){
  233. this.$alert(response.data.msg, '提交成功', {
  234. confirmButtonText: '确定',
  235. callback: action => {
  236. window.location.reload();
  237. }
  238. });
  239. }else{
  240. this.$message.error(response.data.msg);
  241. this.loading.close();
  242. return false;
  243. }
  244. });
  245. }).catch(() => {
  246. });
  247. },
  248. showMask: function(){
  249. this.switch_mask.width = '100%';
  250. this.switch_mask.height = '1400px';
  251. },
  252. rand: function(){
  253. let href = location.protocol + '//' + location.host + location.pathname;
  254. window.location.href = href;
  255. },
  256. enter: function(){
  257. this.$prompt('请输入用户ID', '提示', {
  258. confirmButtonText: '确定',
  259. cancelButtonText: '取消',
  260. inputPattern: /^-?\d+$/,
  261. inputErrorMessage: '用户ID不正确'
  262. }).then(({ value }) => {
  263. let href = location.protocol + '//' + location.host + location.pathname + '?uid='+value
  264. window.location.href = href;
  265. }).catch(() => {
  266. });
  267. }
  268. },
  269. computed: {
  270. dragOptions() {
  271. return {
  272. animation: 500,
  273. group: "description",
  274. disabled: false,
  275. ghostClass: "ghost"
  276. };
  277. }
  278. },
  279. created(){
  280. if(this.status == -1){
  281. this.showMask()
  282. }
  283. if(this.status != 0){
  284. this.enabled = false;
  285. }
  286. }
  287. })
  288. </script>
  289. @endsection