(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0c19a9"],{"476f":function(e,a,t){"use strict";t.r(a);var r=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"app-container"},[t("el-tabs",{attrs:{type:"border-card"}},[t("el-tab-pane",{attrs:{label:"推荐职位",lazy:!0}},[t("clist",{attrs:{listtype:"job"}})],1),t("el-tab-pane",{attrs:{label:"推荐简历",lazy:!0}},[t("clist",{attrs:{listtype:"resume"}})],1)],1)],1)},n=[],s=function(){var e=this,a=e.$createElement,t=e._self._c||a;return t("div",{staticClass:"app-container"},[t("el-form",{directives:[{name:"loading",rawName:"v-loading",value:e.infoLoading,expression:"infoLoading"}],staticClass:"common-form",attrs:{"label-width":"0","inline-message":!0}},[t("el-form-item",[t("el-table",{attrs:{border:"",data:e.list}},[t("el-table-column",{attrs:{label:"权重项",align:"center",prop:"name"}}),t("el-table-column",{attrs:{align:"center",label:"权重值"},scopedSlots:e._u([{key:"default",fn:function(a){return[t("el-form-item",[t("el-input",{staticStyle:{width:"120px"},attrs:{type:"number"},model:{value:a.row.value,callback:function(t){e.$set(a.row,"value",t)},expression:"scope.row.value"}})],1)]}}])})],1)],1),t("el-form-item",{attrs:{label:""}},[t("el-button",{attrs:{type:"primary"},on:{click:function(a){return e.onSubmit("form")}}},[e._v("保存")])],1)],1)],1)},i=[],c=(t("4160"),t("159b"),t("ade3")),l=t("5530"),o=t("1063"),u={props:["listtype"],data:function(){return{page_tit:"",form_name:"",infoLoading:!0,list:[]}},created:function(){this.fetchInfo()},methods:{fetchInfo:function(){var e=this;this.infoLoading=!0,Object(o["j"])({},"get").then((function(a){if("job"==e.listtype){e.form_name="job_recommend_weight",e.page_tit="职位";var t=Object(l["a"])({},a.data),r=t.job_recommend_weight;for(var n in r){var s="";switch(n){case"category":s="职位类别";break;case"trade":s="行业";break;case"wage":s="薪资";break;case"district":s="工作地区";break;case"nature":s="职位性质";break;case"service_added":s="增值服务";break;case"refreshtime":s="刷新时间";break;default:s="";break}e.list.push({name:s,alias:n,value:r[n]})}}else{e.form_name="resume_recommend_weight",e.page_tit="简历";var i=Object(l["a"])({},a.data),c=i.resume_recommend_weight;for(var o in c){var u="";switch(o){case"category":u="职位类别";break;case"trade":u="行业";break;case"wage":u="薪资";break;case"district":u="工作地区";break;case"nature":u="职位性质";break;case"service_added":u="增值服务";break;case"refreshtime":u="刷新时间";break;case"education":u="学历";break;case"experience":u="工作经验";break;case"birthyear":u="年龄要求";break;default:u="";break}e.list.push({name:u,alias:o,value:c[o]})}}e.infoLoading=!1})).catch((function(){}))},onSubmit:function(e){var a=this,t=!1,r={};this.list.forEach((function(e,a,t){r[e.alias]=e.value}));var n=Object(c["a"])({},this.form_name,r);if(!0===t)return!1;Object(o["j"])(n).then((function(e){return a.$message.success(e.message),!0})).catch((function(){}))}}},b=u,m=t("2877"),f=Object(m["a"])(b,s,i,!1,null,null,null),d=f.exports,p={components:{clist:d}},h=p,v=Object(m["a"])(h,r,n,!1,null,null,null);a["default"]=v.exports}}]);