fd3923f96fe529815733.js 6.1 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[25],{432:function(t,e,n){var content=n(498);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,n(4).default)("522a1658",content,!0,{sourceMap:!1})},497:function(t,e,n){"use strict";var r=n(432);n.n(r).a},498:function(t,e,n){(e=n(3)(!1)).push([t.i,".count-list[data-v-b633b3c2]{padding-bottom:10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.count-item[data-v-b633b3c2]{margin-right:20px;font-size:16px}.content[data-v-b633b3c2]{white-space:nowrap;overflow-x:scroll;height:calc(100vh - 150px)}.btn[data-v-b633b3c2]{width:80px}.order-footer[data-v-b633b3c2]{margin-top:10px}",""]),t.exports=e},557:function(t,e,n){"use strict";n.r(e);n(32);var r=n(5),o={data:function(){return{page:1,auditData:"",form:{reason:""},isDialogShow:!1}},mounted:function(){this.getAuditList()},methods:{getAuditList:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,data,r;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.page,data={page:n},e.next=4,t.$post("/api/admin/recruit/getAuditList",data);case 4:(r=e.sent)&&1===r.status&&(t.auditData=r.data,console.log(t.auditData));case 6:case"end":return e.stop()}}),e)})))()},handleApproveClick:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){var data,r;return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return"approve",data={recruitId:t,action:"approve"},n.next=4,e.$post("/api/admin/recruit/audit",data);case 4:(r=n.sent)&&1===r.status&&(console.log(r),e.$message({message:r.info,type:"success"}),e.getAuditList());case 6:case"end":return n.stop()}}),n)})))()},handleRejectClick:function(t){var e=this;return Object(r.a)(regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.recruitId=t,e.isDialogShow=!0;case 2:case"end":return n.stop()}}),n)})))()},handleCancleClick:function(){this.form={reason:""},this.isDialogShow=!1},handleComfirmClick:function(){var t=this;return Object(r.a)(regeneratorRuntime.mark((function e(){var n,r,data,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.recruitId,"reject",r=t.form.reason,data={recruitId:n,action:"reject",reason:r},e.next=6,t.$post("/api/admin/recruit/audit",data);case 6:(o=e.sent)&&1===o.status&&(console.log(o),t.$message({message:o.info,type:"success"}),t.getAuditList()),t.form={reason:""},t.isDialogShow=!1;case 10:case"end":return e.stop()}}),e)})))()},handleCurrentChange:function(t){this.page=t,this.getAuditList()},clickRow:function(t){var e=t.id;this.$router.push({path:"/main/job",query:{id:e}})}}},l=(n(497),n(2)),component=Object(l.a)(o,(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t.auditData?n("div",{staticClass:"count-list"},[n("div",{staticClass:"count-item"},[t._v("全部:"+t._s(t.auditData.countAllStatus))]),t._v(" "),n("div",{staticClass:"count-item"},[t._v("审核中:"+t._s(t.auditData.countWaitAudit))]),t._v(" "),n("div",{staticClass:"count-item"},[t._v("开放中:"+t._s(t.auditData.countOpen))]),t._v(" "),n("div",{staticClass:"count-item"},[t._v("停止招聘:"+t._s(t.auditData.countOffline))])]):t._e(),t._v(" "),t.auditData&&t.auditData.list?n("div",{staticClass:"content"},[n("el-table",{staticStyle:{width:"100%"},attrs:{data:t.auditData.list,height:"100%",border:""},on:{"row-click":t.clickRow}},[n("el-table-column",{attrs:{prop:"id",label:"岗位ID",width:"70"}}),t._v(" "),n("el-table-column",{attrs:{prop:"occupationName",label:"职位类型"}}),t._v(" "),n("el-table-column",{attrs:{prop:"workTypeName",label:"工作方式"}}),t._v(" "),n("el-table-column",{attrs:{label:"工作周期"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.month)+"个月")])]}}],null,!1,902821951)}),t._v(" "),n("el-table-column",{attrs:{label:"驻场地区"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("span",[t._v(t._s(e.row.cityName||"-"))])]}}],null,!1,906931819)}),t._v(" "),n("el-table-column",{attrs:{prop:"salaryName",label:"薪酬范围"}}),t._v(" "),n("el-table-column",{attrs:{prop:"auditAtFormat",label:"发布日期"}}),t._v(" "),n("el-table-column",{attrs:{prop:"countApplied",label:"已投递",width:"70"}}),t._v(" "),n("el-table-column",{attrs:{prop:"countTalk",label:"沟通中",width:"70"}}),t._v(" "),n("el-table-column",{attrs:{prop:"statusName",label:"岗位状态",width:"90"}}),t._v(" "),n("el-table-column",{attrs:{label:"操作",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return["2"===e.row.status?n("div",[n("el-button",{staticClass:"btn",attrs:{type:"primary"},on:{click:function(n){return n.stopPropagation(),t.handleApproveClick(e.row.id)}}},[t._v("通过")]),t._v(" "),n("el-button",{staticClass:"btn",attrs:{type:"danger"},on:{click:function(n){return n.stopPropagation(),t.handleRejectClick(e.row.id)}}},[t._v("不通过")])],1):t._e(),t._v(" "),"3"===e.row.status?n("div",[n("el-button",{staticClass:"btn",attrs:{type:"danger"},on:{click:function(n){return n.stopPropagation(),t.handleRejectClick(e.row.id)}}},[t._v("不通过")])],1):t._e()]}}],null,!1,1238089454)})],1)],1):t._e(),t._v(" "),n("el-pagination",{staticClass:"order-footer",attrs:{background:"",layout:"prev, pager, next","page-size":20,total:Number(t.auditData.total)},on:{"current-change":t.handleCurrentChange}}),t._v(" "),n("el-dialog",{attrs:{title:"请输入审核不通过的原因",visible:t.isDialogShow},on:{"update:visible":function(e){t.isDialogShow=e}}},[n("el-form",{attrs:{model:t.form}},[n("el-form-item",{attrs:{label:""}},[n("el-input",{model:{value:t.form.reason,callback:function(e){t.$set(t.form,"reason",e)},expression:"form.reason"}})],1)],1),t._v(" "),n("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(e){return t.handleCancleClick()}}},[t._v("取 消")]),t._v(" "),n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleComfirmClick()}}},[t._v("确 定")])],1)],1)],1)}),[],!1,null,"b633b3c2",null);e.default=component.exports}}]);