| 1 |
- (window.webpackJsonp=window.webpackJsonp||[]).push([[50],{513:function(t,e,r){},654:function(t,e,r){"use strict";r(513)},780:function(t,e,r){"use strict";r.r(e);r(18),r(191),r(22),r(15),r(19),r(31),r(32);var o=r(10),n=r(6);r(30);function l(object,t){var e=Object.keys(object);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(object);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(object,t).enumerable}))),e.push.apply(e,r)}return e}function c(t){for(var i=1;i<arguments.length;i++){var source=null!=arguments[i]?arguments[i]:{};i%2?l(Object(source),!0).forEach((function(e){Object(o.a)(t,e,source[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(source)):l(Object(source)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(source,e))}))}return t}var m={data:function(){return{page:1,auditData:"",form:{reason:""},searchParams:{status:"0",uid:null,dateTime:[],startTime:null,endTime:null,recruitResult:"0",workType:"0"},isDialogShow:!1}},mounted:function(){this.getAuditList()},methods:{getAuditList:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,data,o;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t.searchParams.startTime=t.searchParams.dateTime[0],t.searchParams.endTime=t.searchParams.dateTime[1],r=t.page,data=c({page:r},t.searchParams),e.next=6,t.$post("/api/admin/recruit/getAuditList",data);case 6:(o=e.sent)&&1===o.status&&(t.auditData=o.data,console.log(t.auditData));case 8:case"end":return e.stop()}}),e)})))()},handleApproveClick:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){var data,o;return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return"approve",data={recruitId:t,action:"approve"},r.next=4,e.$post("/api/admin/recruit/audit",data);case 4:(o=r.sent)&&1===o.status&&(console.log(o),e.$message({message:o.info,type:"success"}),e.getAuditList());case 6:case"end":return r.stop()}}),r)})))()},handleRejectClick:function(t){var e=this;return Object(n.a)(regeneratorRuntime.mark((function r(){return regeneratorRuntime.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:e.recruitId=t,e.isDialogShow=!0;case 2:case"end":return r.stop()}}),r)})))()},handleCancleClick:function(){this.form={reason:""},this.isDialogShow=!1},handleComfirmClick:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,o,data,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.recruitId,"reject",o=t.form.reason,data={recruitId:r,action:"reject",reason:o},e.next=6,t.$post("/api/admin/recruit/audit",data);case 6:(n=e.sent)&&1===n.status&&(console.log(n),t.$message({message:n.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}})},goPublishCompanies:function(){window.location.href="/main/jobs_publish_company"},goChatUsers:function(){window.location.href="/main/chat_users"},goBehalfPost:function(){window.location.href="/main/jobs_behalf_post"},exportList:function(){var t=this;return Object(n.a)(regeneratorRuntime.mark((function e(){var r,o,n;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n in r=t.searchParams,o="",r)o+="&"+n+"="+r[n];console.log(o),window.location.href="/api/admin/recruit/exportList?download=1"+o;case 5:case"end":return e.stop()}}),e)})))()}}},v=(r(654),r(4)),component=Object(v.a)(m,(function(){var t=this,e=t._self._c;return e("div",[t.auditData?e("div",{staticClass:"count-list"},[e("div",{staticClass:"count-item"},[t._v("全部:"+t._s(t.auditData.countAllStatus))]),t._v(" "),e("div",{staticClass:"count-item"},[t._v("开放中:"+t._s(t.auditData.countOpen))]),t._v(" "),e("div",{staticClass:"count-item"},[t._v("停止招聘:"+t._s(t.auditData.countOffline))]),t._v(" "),e("div",{staticClass:"count-item",on:{click:function(e){return t.goPublishCompanies()}}},[t._v("发布企业:"+t._s(t.auditData.countCompanies))]),t._v(" "),e("div",{staticClass:"count-item",on:{click:function(e){return t.goChatUsers()}}},[t._v("聊天数据>>")]),t._v(" "),e("div",{staticClass:"count-item"},[t._v("当前统计数量:"+t._s(t.auditData.total))]),t._v(" "),e("div",{staticClass:"count-item",on:{click:function(e){return t.goBehalfPost()}}},[t._v("邀请代发岗位:"+t._s(t.auditData.countAuditAgencyPost))]),t._v(" "),e("div",[e("el-button",{on:{click:function(e){return t.$router.push("/main/recuit_purchase_conf")}}},[t._v("套餐配置")])],1)]):t._e(),t._v(" "),e("el-form",{attrs:{inline:!0}},[e("el-form-item",{attrs:{label:"岗位状态"}},[e("el-select",{attrs:{placeholder:"全部"},model:{value:t.searchParams.status,callback:function(e){t.$set(t.searchParams,"status",e)},expression:"searchParams.status"}},[e("el-option",{attrs:{label:"全部",value:"0"}}),t._v(" "),e("el-option",{attrs:{label:"审核中",value:"2"}}),t._v(" "),e("el-option",{attrs:{label:"开放中",value:"3"}}),t._v(" "),e("el-option",{attrs:{label:"停止招聘",value:"4"}}),t._v(" "),e("el-option",{attrs:{label:"审核失败",value:"6"}}),t._v(" "),e("el-option",{attrs:{label:"已删除",value:"5"}})],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"岗位类型"}},[e("el-select",{attrs:{placeholder:"全部"},model:{value:t.searchParams.workType,callback:function(e){t.$set(t.searchParams,"workType",e)},expression:"searchParams.workType"}},[e("el-option",{attrs:{label:"全部",value:"0"}}),t._v(" "),e("el-option",{attrs:{label:"远程",value:"1"}}),t._v(" "),e("el-option",{attrs:{label:"驻场",value:"2"}}),t._v(" "),e("el-option",{attrs:{label:"全职",value:"3"}})],1)],1),t._v(" "),e("el-form-item",{attrs:{label:"发布者"}},[e("el-input",{attrs:{placeholder:"全部"},model:{value:t.searchParams.uid,callback:function(e){t.$set(t.searchParams,"uid",e)},expression:"searchParams.uid"}})],1),t._v(" "),e("el-form-item",{attrs:{label:"招聘结果"}},[e("el-select",{attrs:{placeholder:"全部"},model:{value:t.searchParams.recruitResult,callback:function(e){t.$set(t.searchParams,"recruitResult",e)},expression:"searchParams.recruitResult"}},[e("el-option",{attrs:{label:"-",value:"0"}}),t._v(" "),e("el-option",{attrs:{label:"是",value:"1"}}),t._v(" "),e("el-option",{attrs:{label:"否",value:"2"}})],1)],1),t._v(" "),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.getAuditList}},[t._v("查询")])],1),t._v(" "),e("el-form-item",[e("el-button",{attrs:{type:"primary"},on:{click:t.exportList}},[t._v("导出报表")])],1)],1),t._v(" "),t.auditData&&t.auditData.list?e("div",{staticClass:"content"},[e("el-table",{staticStyle:{width:"100%"},attrs:{data:t.auditData.list,border:""},on:{"row-click":t.clickRow}},[e("el-table-column",{attrs:{prop:"id",label:"岗位ID",width:"70"}}),t._v(" "),e("el-table-column",{attrs:{prop:"occupationName",label:"职位类型"}}),t._v(" "),e("el-table-column",{attrs:{prop:"workTypeName",label:"工作方式"}}),t._v(" "),e("el-table-column",{attrs:{label:"转化来源"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s((r.row.sourceType||"")+"-"+(r.row.version||""))+t._s("-"!=r.row.conversionType?"-"+r.row.conversionType:""))])]}}],null,!1,35224064)}),t._v(" "),e("el-table-column",{attrs:{label:"工作周期"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.month)+"个月")])]}}],null,!1,902821951)}),t._v(" "),e("el-table-column",{attrs:{label:"驻场地区"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.cityName||"-"))])]}}],null,!1,906931819)}),t._v(" "),e("el-table-column",{attrs:{prop:"salaryName",label:"薪酬范围"}}),t._v(" "),e("el-table-column",{attrs:{label:"公司"},scopedSlots:t._u([{key:"default",fn:function(r){return[e("span",[t._v(t._s(r.row.companyInfo&&r.row.companyInfo.shortName?r.row.companyInfo.shortName:r.row.companyInfo&&r.row.companyInfo.name?r.row.companyInfo.name:""))])]}}],null,!1,2786846887)}),t._v(" "),e("el-table-column",{attrs:{prop:"auditAtFormat",label:"发布(刷新)日期"}}),t._v(" "),e("el-table-column",{attrs:{prop:"createdAtFormat",label:"创建日期"}}),t._v(" "),e("el-table-column",{attrs:{prop:"countApplied",label:"已投递",width:"70"}}),t._v(" "),e("el-table-column",{attrs:{prop:"countTalk",label:"沟通中",width:"70"}}),t._v(" "),e("el-table-column",{attrs:{prop:"statusName",label:"岗位状态",width:"90"}}),t._v(" "),e("el-table-column",{attrs:{prop:"recuitResult",label:"招聘结果",width:"90"},scopedSlots:t._u([{key:"default",fn:function(r){return[1==r.row.recruitResult?e("span",[t._v("是")]):t._e(),t._v(" "),2==r.row.recruitResult?e("span",[t._v("否")]):t._e(),t._v(" "),""==r.row.recruitResult||0==r.row.recruitResult?e("span",[t._v("-")]):t._e()]}}],null,!1,832012099)})],1)],1):t._e(),t._v(" "),e("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(" "),e("el-dialog",{attrs:{title:"请输入审核不通过的原因",visible:t.isDialogShow},on:{"update:visible":function(e){t.isDialogShow=e}}},[e("el-form",{attrs:{model:t.form}},[e("el-form-item",{attrs:{label:""}},[e("el-input",{model:{value:t.form.reason,callback:function(e){t.$set(t.form,"reason",e)},expression:"form.reason"}})],1)],1),t._v(" "),e("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[e("el-button",{on:{click:function(e){return t.handleCancleClick()}}},[t._v("取 消")]),t._v(" "),e("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.handleComfirmClick()}}},[t._v("确 定")])],1)],1)],1)}),[],!1,null,"79d43296",null);e.default=component.exports}}]);
|