1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
webpackJsonp([320],{G59g:function(e,t){},PioT:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var s=a("BO1k"),i=a.n(s),o=a("mvHQ"),l=a.n(o),n=a("Dd8w"),r=a.n(n),c=a("NYxO"),d=a("veZ4"),p=(a("t4zo"),a("ysqt")),h=a("bzuE"),u={components:{btnInput:p.a,upload:d.a},data:function(){return{total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10},options:[],formData:{},rulesForm:{updateType:[{required:!0,message:"请选择取消录用人员简历分类",trigger:"change"}]},value:"",tableData:[],dialogTitle:"",rowIds:[],depOptions:[],sexoptions:[{value:1,label:"转入重点人才库"},{value:2,label:"转入黑名单"},{value:6,label:"其他"}],chooseId:"",selectDeptId:"",config:h.a,btnDelDisabled:!0,btnOtherDisabled:!0,dialogLoading:!1,dialogVisible:!1,columnSetDialogVisible:!1,columnSetDialogTitle:"设置显示字段列表",tableId:"hireList_index_table",pictLoading:!1,showTableColumnsDefault:[{title:"姓名",prop_:"candidateName",select:!0},{title:"性别",prop_:"genderName",select:!0},{title:"年龄",prop_:"age",select:!0},{title:"联系电话",prop_:"mobilePhone",select:!0},{title:"应聘部门",prop_:"deptName",select:!0},{title:"应聘职位",prop_:"matchPositionName",select:!0},{title:"最高学历",prop_:"highestEducationName",select:!0},{title:"所学专业",prop_:"major",select:!0},{title:"毕业学校",prop_:"graduateSchool",select:!0},{title:"简历下载",prop_:"download",select:!0},{title:"应聘日期",prop_:"createTime",select:!0},{title:"面试结果",prop_:"interviewResultsName",select:!0},{title:"录用状态",prop_:"interviewStateName",select:!0}],showTableColumns:[{title:"姓名",prop_:"candidateName",select:!0},{title:"性别",prop_:"genderName",select:!0},{title:"年龄",prop_:"age",select:!0},{title:"联系电话",prop_:"mobilePhone",select:!0},{title:"应聘部门",prop_:"deptName",select:!0},{title:"应聘职位",prop_:"matchPositionName",select:!0},{title:"最高学历",prop_:"highestEducationName",select:!0},{title:"所学专业",prop_:"major",select:!0},{title:"毕业学校",prop_:"graduateSchool",select:!0},{title:"简历下载",prop_:"download",select:!0},{title:"应聘日期",prop_:"createTime",select:!0},{title:"面试结果",prop_:"interviewResultsName",select:!0},{title:"录用状态",prop_:"interviewStateName",select:!0}],showTableColumnsTemp:[],formTableData:[]}},computed:r()({},Object(c.c)({userInfo:"user/getUserInfo"})),mounted:function(){this.showTableColumns=JSON.parse(l()(this.showTableColumns)),this.showTableColumnsTemp=JSON.parse(l()(this.showTableColumns)),this.initData(),this.getList(),this.getShowColumns()},methods:{download:function(e){var t=this;console.log(e);var a={id:e.id,assocType:"RESUME_FILE",fileName:e.candidateName};console.log(a),this.$api.salesAPI.downloadByCusName(a).then(function(e){console.log(e),200==e.status?(window.open(e.request.responseURL),t.$message({message:"下载成功",type:"success"})):t.$message({message:e.msg,type:"error"})})},search:function(){this.search_data.pageno=1,this.getList()},getList:function(){var e=this;this.pictLoading=!0,this.$api.interviewManagementAPI.hireList(this.search_data).then(function(t){e.pictLoading=!1,t.data?(e.total=t.data.totalRows,e.tableData=t.data.datas?t.data.datas:[],e.tableData.forEach(function(e){e.createTime=e.createTime.substr(0,10)})):(e.total=0,e.tableData=[])}).catch(function(e){console.log(e)})},setDefaultDept:function(){if(this.depOptions.length>0&&this.search_data.deptId){var e=l()(this.search_data.deptId),t=this.treeFindPath(this.depOptions,function(t){return t.id===e});this.selectDeptId=JSON.parse(l()(t))}},handleChange:function(e){this.search_data.deptId=e[e.length-1],this.selectDeptId=e},initData:function(){var e=this;this.$api.commonAPI.getDeptsTree().then(function(t){0===t.code&&(e.depOptions=t.data.children,e.setDefaultDept(),e.setDeptList(e.depOptions))}).catch(function(e){console.log(e)})},setDeptList:function(e){var t=!0,a=!1,s=void 0;try{for(var o,l=i()(e);!(t=(o=l.next()).done);t=!0){var n=o.value;n.hasChildren?this.setDeptList(n.children):n.children=void 0}}catch(e){a=!0,s=e}finally{try{!t&&l.return&&l.return()}finally{if(a)throw s}}},setOffer:function(){var e=this,t=[];this.rowIds.forEach(function(e){t.push(e.candidateId)});var a={candidateIds:t,updateType:3};this.$confirm("确认发送Offer吗?","提示",{type:"warning"}).then(function(){e.$api.interviewManagementAPI.updateResumeState(a).then(function(t){0===t.code?(e.$message({message:t.msg,type:"success"}),e.getList()):e.$message({message:t.msg?t.msg:"发送失败,请重试",type:"error"})}).catch(function(t){e.$message({message:"发送失败,请重试",type:"error"})})})},goCancel:function(){this.formData={},this.dialogVisible=!0,this.dialogTitle="选择简历分类"},save:function(e){var t=this,a=[];this.rowIds.forEach(function(e){a.push(e.candidateId)});var s={candidateIds:a,updateType:this.formData.updateType};this.$confirm("确认取消录用吗?","提示",{type:"warning"}).then(function(){t.$api.interviewManagementAPI.updateResumeState(s).then(function(e){0===e.code?(t.$message({message:e.msg,type:"success"}),t.dialogVisible=!1,t.getList()):t.$message({message:e.msg?e.msg:"取消失败,请重试",type:"error"})}).catch(function(e){t.$message({message:"取消失败,请重试",type:"error"})})})},viewDetail:function(e){var t=e.candidateId;this.$router.push({path:"/advertiseManagement/candidateInfo_detail",query:{id:t,from:"hireList",t:Date.now()}})},hire:function(){var e=this.rowIds[0].candidateId;console.log(e),this.$router.push({path:"/staffManagement/jobbing_add",query:{candidateId:e,t:Date.now()}})},handleSelectionChange:function(e){console.log(e),this.rowIds=e,this.setBtn(e)},handleSizeChange:function(e){this.search_data.pagesize=e,this.getList()},handleCurrentChange:function(e){this.search_data.pageno=e,this.getList()},setBtn:function(e){var t=!0,a=!0;e.length>0?(a=!1,1==e.length&&(t=!1)):(t=!0,a=!0),this.btnOtherDisabled=a,this.btnDelDisabled=t},showColumnSetDialog:function(){this.columnSetDialogVisible=!0,this.showTableColumnsTemp=JSON.parse(l()(this.showTableColumns))},toUp:function(e){if(0==e.$index)return!1;for(var t=void 0,a=0;a<this.showTableColumns.length;a++)this.showTableColumns[a].prop_==e.row.prop_&&(t=a);var s=this.showTableColumns[t];this.showTableColumns[t]=this.showTableColumns[t-1],this.showTableColumns[t-1]=s,this.$forceUpdate()},toDown:function(e){if(e.$index==this.showTableColumns.length-1)return!1;for(var t=void 0,a=0;a<this.showTableColumns.length;a++)this.showTableColumns[a].prop_==e.row.prop_&&(t=a);var s=this.showTableColumns[t];this.showTableColumns[t]=this.showTableColumns[t+1],this.showTableColumns[t+1]=s,this.$forceUpdate()},toDefault:function(){this.showTableColumns=JSON.parse(l()(this.showTableColumnsDefault)),this.$forceUpdate()},saveAndCloseColumnSetDialog:function(){var e=this,t=this.tableId,a=l()(this.showTableColumns);this.columnSetDialogVisible=!1,this.$api.tableColumnAPI.saveShowColumns({tableNo:t,tableColumns:a}).then(function(t){var a=JSON.parse(l()(e.showTableColumns));e.formTableData=[];for(var s=0;s<a.length;s++)a[s].select&&e.formTableData.push(a[s])}).catch(function(e){console.log(e)})},handleClose:function(){this.showTableColumns=JSON.parse(l()(this.showTableColumnsTemp)),this.columnSetDialogVisible=!1},getShowColumns:function(){var e=this,t=this.tableId;this.formTableData=[],this.$api.tableColumnAPI.getShowColumns({tableNo:t}).then(function(t){if(0==t.code)if(t.results){e.showTableColumns=JSON.parse(t.results);for(var a=JSON.parse(l()(e.showTableColumns)),s=0;s<a.length;s++)a[s].select&&e.formTableData.push(a[s]);e.$forceUpdate()}else{for(var i=JSON.parse(l()(e.showTableColumnsDefault)),o=0;o<i.length;o++)i[o].select&&e.formTableData.push(i[o]);e.$forceUpdate()}else e.$message({message:t.msg?t.msg:"获取列表信息失败",type:"error"})}).catch(function(t){e.$message({message:t,type:"error"}),console.log(t)})}},watch:{}},m={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-box"},[a("div",{staticClass:"sys-operate"},[a("el-button",{directives:[{name:"has",rawName:"v-has",value:"hireList:hireList:offer",expression:"'hireList:hireList:offer'"}],attrs:{type:"primary",disabled:e.btnOtherDisabled},on:{click:function(t){return e.setOffer()}}},[e._v("发送Offer")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"hireList:hireList:cancel",expression:"'hireList:hireList:cancel'"}],attrs:{type:"primary",disabled:e.btnOtherDisabled},on:{click:function(t){return e.goCancel()}}},[e._v("取消录用")]),e._v(" "),a("el-button",{directives:[{name:"has",rawName:"v-has",value:"hireList:hireList:hire",expression:"'hireList:hireList:hire'"}],attrs:{type:"primary",disabled:e.btnDelDisabled},on:{click:function(t){return e.hire()}}},[e._v("入职")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:e.showColumnSetDialog}},[e._v(e._s(e.config.configureBtnName))])],1),e._v(" "),a("div",{staticClass:"sys-search"},[a("el-form",{staticClass:"form_item_search_out",attrs:{inline:""}},[a("div",{staticClass:"form_item_input_out"},[a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"部门"}},[a("el-cascader",{attrs:{o:"",clearable:"",options:e.depOptions,props:{expandTrigger:"hover",label:"text",value:"id",checkStrictly:!0}},on:{change:e.handleChange},model:{value:e.selectDeptId,callback:function(t){e.selectDeptId=t},expression:"selectDeptId"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"招聘职位"}},[a("el-input",{attrs:{clearable:"",placeholder:"模糊查询"},model:{value:e.search_data.advertisePositionName,callback:function(t){e.$set(e.search_data,"advertisePositionName",t)},expression:"search_data.advertisePositionName"}})],1),e._v(" "),a("el-form-item",{staticClass:"form_item-inline",staticStyle:{width:"33%"},attrs:{label:"姓名"}},[a("el-input",{attrs:{clearable:"",placeholder:"模糊查询"},model:{value:e.search_data.candidateName,callback:function(t){e.$set(e.search_data,"candidateName",t)},expression:"search_data.candidateName"}})],1)],1),e._v(" "),a("div",{staticClass:"form_item_btn_out"},[a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.search()}}},[e._v("查询")])],1)],1)])],1),e._v(" "),a("div",{staticClass:"sys-table"},[e.formTableData.length>0?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],ref:"tb",attrs:{border:"",id:"out-table",data:e.tableData,"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),e._l(e.formTableData,function(t,s){return a("el-table-column",{key:s,attrs:{prop:t.prop_,label:t.title,align:"center","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(s){return[a("div",["candidateName"==t.prop_?a("div",[a("el-link",{attrs:{type:"primary"},on:{click:function(t){return t.stopPropagation(),e.viewDetail(s.row)}}},[e._v(e._s(s.row.candidateName))])],1):"download"==t.prop_?a("div",[s.row.isEmptyFile?e._e():a("span",{staticStyle:{color:"blue",cursor:"pointer"},on:{click:function(t){return e.download(s.row)}}},[e._v("下载")]),e._v(" "),s.row.isEmptyFile?a("span",{staticStyle:{color:"black",cursor:"pointer"},on:{click:function(t){return e.download(s.row)}}},[e._v("下载")]):e._e()]):a("div",[a("div",{staticStyle:{overflow:"hidden"}},[e._v(e._s(s.row[t.prop_]))])])])]}}],null,!0)})})],2):e._e()],1),e._v(" "),a("div",{staticClass:"sys-pagination"},[a("el-pagination",{attrs:{"current-page":e.search_data.pageno,"page-sizes":e.pageSizes,"page-size":e.search_data.pagesize,layout:"total, sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1),e._v(" "),a("el-dialog",{attrs:{title:e.columnSetDialogTitle,center:"",visible:e.columnSetDialogVisible,width:"531px","before-close":e.handleClose},on:{"update:visible":function(t){e.columnSetDialogVisible=t}}},[a("el-table",{key:Math.random(),staticStyle:{width:"100%"},attrs:{border:"",data:e.showTableColumns,"max-height":"350"}},[a("el-table-column",{attrs:{prop:"title",label:"列表名称",width:"180",fixed:""}}),e._v(" "),a("el-table-column",{attrs:{prop:"select",label:"是否显示",width:"180"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{model:{value:t.row.select,callback:function(a){e.$set(t.row,"select",a)},expression:"scope.row.select"}})]}}])}),e._v(" "),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.toUp(t)}}},[e._v("前移")]),e._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return e.toDown(t)}}},[e._v("后移")])]}}])})],1),e._v(" "),a("el-row",{staticClass:"row-bg",staticStyle:{"margin-top":"10px"},attrs:{type:"flex",justify:"center"}},[a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",size:"middle"},on:{click:e.saveAndCloseColumnSetDialog}},[e._v("完成")])],1),e._v(" "),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",size:"middle"},on:{click:e.toDefault}},[e._v("恢复默认")])],1)],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.dialogTitle,center:"",visible:e.dialogVisible,width:"670px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.dialogLoading,expression:"dialogLoading"}],ref:"form",staticClass:"company-form",attrs:{"label-width":"210px",model:e.formData,rules:e.rulesForm}},[a("el-form-item",{attrs:{label:"请选择取消录用人员简历分类",prop:"updateType"}},[a("el-select",{attrs:{placeholder:"请选择",clearable:""},model:{value:e.formData.updateType,callback:function(t){e.$set(e.formData,"updateType",t)},expression:"formData.updateType"}},e._l(e.sexoptions,function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})}),1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.save("form")}}},[e._v("保存")])],1)],1)],1)},staticRenderFns:[]};var f=a("VU/8")(u,m,!1,function(e){a("G59g")},"data-v-7d52226f",null);t.default=f.exports}}); |