(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d3aa772"],{"0d90":function(e,t,a){},"3f2a":function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"d",(function(){return i})),a.d(t,"a",(function(){return l})),a.d(t,"b",(function(){return c})),a.d(t,"e",(function(){return s}));var n=a("b775"),o=a("d722");function r(e){return Object(n["a"])({url:o["a"].exportJob,method:"post",data:e})}function i(e){return Object(n["a"])({url:o["a"].exportJobById,method:"post",data:e})}function l(e){return Object(n["a"])({url:o["a"].exportCompany,method:"post",data:e})}function c(e){return Object(n["a"])({url:o["a"].exportCompanyById,method:"post",data:e})}function s(e){return Object(n["a"])({url:o["a"].exportResume,method:"post",data:e})}},"52b5":function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a("b775"),o=a("d722");function r(e){return Object(n["a"])({url:o["a"].getClassify,method:"get",params:e})}},d14b:function(e,t,a){"use strict";var n=a("0d90"),o=a.n(n);o.a},da47:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("el-card",{staticClass:"box-card"},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("职位信息导出")])]),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.infoLoading,expression:"infoLoading"}],ref:"form",staticClass:"common-form",attrs:{model:e.form,"label-width":"180px"}},[a("el-form-item",{attrs:{label:"添加时间"}},[a("el-date-picker",{attrs:{type:"daterange","value-format":"yyyy-MM-dd","range-separator":"至","start-placeholder":"开始日期","end-placeholder":"结束日期"},model:{value:e.form.daterange,callback:function(t){e.$set(e.form,"daterange",t)},expression:"form.daterange"}})],1),a("el-form-item",{attrs:{label:"学历要求"}},[a("el-select",{attrs:{placeholder:"不限"},model:{value:e.form.education,callback:function(t){e.$set(e.form,"education",t)},expression:"form.education"}},[a("el-option",{attrs:{label:"不限",value:""}}),e._l(e.options_education,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],2)],1),a("el-form-item",{attrs:{label:"工作经验要求"}},[a("el-select",{attrs:{placeholder:"不限"},model:{value:e.form.experience,callback:function(t){e.$set(e.form,"experience",t)},expression:"form.experience"}},[a("el-option",{attrs:{label:"不限",value:""}}),e._l(e.options_experience,(function(e,t){return a("el-option",{key:t,attrs:{label:e.name,value:e.id}})}))],2)],1),a("el-form-item",{attrs:{label:"导出条数"}},[a("el-select",{attrs:{placeholder:"请选择导出条数"},model:{value:e.form.limit,callback:function(t){e.$set(e.form,"limit",t)},expression:"form.limit"}},[a("el-option",{attrs:{label:"100",value:"100"}}),a("el-option",{attrs:{label:"200",value:"200"}}),a("el-option",{attrs:{label:"500",value:"500"}}),a("el-option",{attrs:{label:"800",value:"800"}}),a("el-option",{attrs:{label:"1000",value:"1000"}})],1)],1),a("el-form-item",{attrs:{label:"开始位置"}},[a("el-input",{attrs:{type:"number"},model:{value:e.form.offset,callback:function(t){e.$set(e.form,"offset",e._n(t))},expression:"form.offset"}})],1),a("el-form-item",{attrs:{label:""}},[a("el-button",{attrs:{type:"primary",loading:e.waiting},on:{click:function(t){return e.onSubmit("form")}}},[e._v(" 导出 ")])],1)],1)],1)],1)},o=[],r=(a("d81d"),a("5530")),i=a("2909"),l=a("52b5"),c=a("3f2a"),s={data:function(){return{waiting:!1,infoLoading:!1,options_education:[],options_experience:[],form:{daterange:[],education:"",experience:"",limit:"100",offset:1}}},created:function(){this.fetchData()},methods:{fetchData:function(){var e=this;this.infoLoading=!0,Object(l["a"])({type:"education,experience"}).then((function(t){e.options_education=Object(i["a"])(t.data.education),e.options_experience=Object(i["a"])(t.data.experience),e.infoLoading=!1})).catch((function(){}))},onSubmit:function(e){var t=this;t.waiting=!0;var a=Object(r["a"])({},t.form);Object(c["c"])(a).then((function(e){return 200==e.code?t.exportExcel(e.data.items):(t.$message.error(e.message),t.waiting=!1),!0})).catch((function(){t.waiting=!1}))},exportExcel:function(e){var t=this;Promise.all([a.e("chunk-b0749b2e"),a.e("chunk-5ae61143")]).then(function(){var n=a("39a0"),o=n.export_json_to_excel,r=["序号","职位ID","职位名称","企业名称","职位类别","薪资待遇","学历要求","工作经验要求","招聘人数","所属部门","年龄要求","工作地区","详细地址","联系人","联系手机","联系座机","联系人微信","联系人qq","联系人邮箱","添加时间","刷新时间","审核状态","招聘状态","点击量"],i=["number","id","jobname","companyname","category","wage","education","experience","amount","department","age","district","address","contact","mobile","telephone","weixin","qq","email","addtime","refreshtime","audit","is_display","click"],l=t.formatJson(i,e);o(r,l,"职位导出(开始位置："+t.form.offset+"，最大条数"+t.form.limit+")"),t.waiting=!1}.bind(null,a)).catch(a.oe)},formatJson:function(e,t){return t.map((function(t){return e.map((function(e){return t[e]}))}))}}},u=s,d=(a("d14b"),a("2877")),f=Object(d["a"])(u,n,o,!1,null,"482e2fd8",null);t["default"]=f.exports}}]);