72e18f9d6ca414103dab.js 9.6 KB

1
  1. (window.webpackJsonp=window.webpackJsonp||[]).push([[28],{430:function(t,e,l){var content=l(494);"string"==typeof content&&(content=[[t.i,content,""]]),content.locals&&(t.exports=content.locals);(0,l(4).default)("6a797d20",content,!0,{sourceMap:!1})},493:function(t,e,l){"use strict";var n=l(430);l.n(n).a},494:function(t,e,l){(t.exports=l(3)(!1)).push([t.i,".el-row[data-v-0945e24e]{margin-bottom:20px}.top[data-v-0945e24e]{margin-top:10px}",""])},539:function(t,e,l){"use strict";l.r(e);l(119),l(169),l(39);var n=l(6),o={data:function(){return{related_id:"",uid:"",title:"",related_type:"",job_type:"",manager:"",salary_from:"",salary_to:"",month:"",work_year:"",directions:"",match_skills:"",skill:"",job_description:"",match_directions:"",jump_url:"",citys:[{city:"0",label:"不限"},{city:"1",label:"北京"},{city:"2",label:"上海"},{city:"3",label:"广州"},{city:"4",label:"深圳"},{city:"5",label:"成都"},{city:"6",label:"杭州"}],city:"0",openStatus:[{id:0,label:"下架隐藏"},{id:1,label:"开放中"},{id:2,label:"停止申请"},{id:3,label:"开发中"},{id:4,label:"已结束"}],statusValue:0,files:[{id:"1",label:"是"},{id:"0",label:"否"}],file:"0"}},mounted:function(){this.getPresentInfo()},methods:{getPresentInfo:function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(){var e,l,body,n,o;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return e=window.location.search.substring(1),l=e.split("&"),body={job_id:l[0].split("=")[1],job_type:l[1].split("=")[1]},-1!=(n=window.location.href).indexOf("dev")?this.jump_url="https://dev.test.proginn.com/rooter/cloudjobitem/":-1!=n.indexOf("local")?this.jump_url="http://local.proginn.com/rooter/cloudjobitem/":this.jump_url="https://proginn.com/rooter/cloudjobitem/",t.next=7,this.$post("/api/admin/present_job/present_info",body);case 7:o=t.sent,this.related_id=o.data.job.id,this.uid=o.data.job.uid,this.title=o.data.job.title2,this.related_type=o.data.job_type,this.manager=o.data.manager,this.salary_from=o.data.job.match_salary_min,this.salary_to=o.data.job.match_salary_max,this.month=o.data.job.month?o.data.job.month:"",this.work_year=o.data.job.work_year?o.data.job.work_year:"",this.directions=o.data.job.directions,this.match_skills=o.data.job.match_skills,this.skill=o.data.job.skill,this.statusValue=o.data.job.status?o.data.job.status:0,this.city=o.data.job.city?o.data.job.city:0,this.file=o.data.job.show_file?o.data.job.show_file:"0",this.job_type=l[1].split("=")[1],this.job_description=o.data.job.description,this.match_directions=o.data.job.match_directions;case 26:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),cancelPresent:function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(){return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:window.history.back();case 1:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),savePresent:function(){var t=Object(n.a)(regeneratorRuntime.mark(function t(){var e,l,n,o,r,body,c;return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=!1,l=document.getElementById("salaryAlert"),n=document.getElementById("monthAlert"),o=document.getElementById("jobInfoAlert"),r=document.getElementById("workYear"),0==this.work_year.length&&(r.innerText="请输入工作年限",r.style.display="block",e=!0),0!=this.salary_from.length&&0!=this.salary_to.length||(l.innerText="请正确输入薪酬范围",l.style.display="block",e=!0),0==this.month.length&&(n.innerText="请输入驻场周期",n.style.display="block",e=!0),0==this.job_description.length&&(o.innerText="请输入工作内容",o.style.display="block",e=!0),(this.work_year<0||this.work_year>99)&&0!=this.work_year.length&&(r.innerText="工作年限正确填写范围0-99",r.style.display="block",e=!0),(this.salary_from<1||this.salary_from>1e6||this.salary_to<1||this.salary_to>1e6||this.salary_from>=this.salary_to)&&(l.innerText="薪酬填写范围1-1000000且前一个值要小于后一个值",l.style.display="block",e=!0),(this.month<1||this.month>99)&&0!=this.month.length&&(n.innerText="驻场周期正确填写范围1-99",n.style.display="block",e=!0),this.job_description.length>1e4&&(o.innerText="工作内容填写最多10000个字符且不能为空",o.style.display="block",e=!0),!e){t.next=15;break}return t.abrupt("return",!1);case 15:return body={related_id:this.related_id,title:this.title,related_type:this.job_type,status:this.statusValue,salary_from:this.salary_from,salary_to:this.salary_to,city:this.city,show_file:this.file,month:this.month,work_year:this.work_year,job_direction:this.match_directions,job_skills:this.match_skills,job_description:this.job_description},t.next=18,this.$post("/api/admin/present_job/present_edit",body);case 18:1==(c=t.sent).status&&(alert(c.info),location.href=this.jump_url+this.related_id);case 20:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}},r=(l(493),l(2)),component=Object(r.a)(o,function(){var t=this,e=t.$createElement,l=t._self._c||e;return l("div",{attrs:{id:"publish-present"}},[l("el-row",[l("el-col",{attrs:{span:24,align:"center"}},[l("h2",[t._v("驻场招聘信息表")])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:19}},[l("h3",[t._v("基本信息")])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[t._v("项目ID:"),l("span",[t._v(t._s(t.related_id))])]),t._v(" "),l("el-col",{attrs:{span:12}},[t._v("需求方:"),l("span",[t._v(t._s(t.uid))])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[t._v("项目名称:"),l("span",[t._v(t._s(t.title))])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[t._v("项目类型:"),l("span",[t._v(t._s(t.related_type))]),l("span",{staticStyle:{display:"none"}},[t._v(t._s(t.job_type))])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:12}},[t._v("客户经理:"),l("span",[t._v(t._s(t.manager))])]),t._v(" "),l("el-col",{attrs:{span:12}},[l("div",{staticClass:"inlineb"},[l("span",{},[t._v("开放状态:")]),t._v(" "),l("div",{staticClass:"inlineb"},[l("el-select",{model:{value:t.statusValue,callback:function(e){t.statusValue=e},expression:"statusValue"}},t._l(t.openStatus,function(t){return l("el-option",{key:t.id,attrs:{label:t.label,value:t.id}})}),1)],1)])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[l("h3",[t._v("驻场信息")])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[l("div",{staticClass:"inlineb"},[l("span",{},[t._v("薪酬范围:")]),t._v(" "),l("div",{staticClass:"inlineb"},[t._v("\n ¥"),l("el-input",{staticStyle:{width:"230px"},model:{value:t.salary_from,callback:function(e){t.salary_from=e},expression:"salary_from"}}),t._v("至\n ")],1),t._v(" "),l("div",{staticClass:"inlineb"},[t._v("\n ¥"),l("el-input",{staticStyle:{width:"230px"},model:{value:t.salary_to,callback:function(e){t.salary_to=e},expression:"salary_to"}})],1),t._v(" "),l("el-alert",{staticClass:"top",staticStyle:{display:"none"},attrs:{title:"",id:"salaryAlert",type:"error","show-icon":""}})],1)])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[l("div",{staticClass:"inlineb"},[l("span",{},[t._v("驻场地点:")]),t._v(" "),l("div",{staticClass:"inlineb"},[l("el-select",{model:{value:t.city,callback:function(e){t.city=e},expression:"city"}},t._l(t.citys,function(t){return l("el-option",{key:t.city,attrs:{label:t.label,value:t.city}})}),1)],1)])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[l("div",{staticClass:"inlineb"},[l("span",{},[t._v("驻场周期:")]),t._v(" "),l("div",{staticClass:"inlineb"},[l("el-input",{staticStyle:{width:"230px"},model:{value:t.month,callback:function(e){t.month=e},expression:"month"}}),t._v("个月\n ")],1),t._v(" "),l("el-alert",{staticClass:"top",staticStyle:{display:"none"},attrs:{title:"",id:"monthAlert",type:"error","show-icon":""}})],1)])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[l("div",{staticClass:"inlineb"},[l("span",{},[t._v("工作年限:")]),t._v(" "),l("div",{staticClass:"inlineb"},[l("el-input",{staticStyle:{width:"230px"},model:{value:t.work_year,callback:function(e){t.work_year=e},expression:"work_year"}}),t._v("年\n ")],1),t._v(" "),l("el-alert",{staticClass:"top",staticStyle:{display:"none"},attrs:{title:"",id:"workYear",type:"error","show-icon":""}})],1)])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[l("div",{staticClass:"inlineb"},[l("span",{},[t._v("是否有文件:")]),t._v(" "),l("div",{staticClass:"inlineb"},[l("el-select",{model:{value:t.file,callback:function(e){t.file=e},expression:"file"}},t._l(t.files,function(t){return l("el-option",{key:t.id,attrs:{label:t.label,value:t.id}})}),1)],1)])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[t._v("职位方向:"),l("span",[t._v(t._s(t.directions))]),l("span",{staticStyle:{display:"none"}},[t._v(t._s(t.match_directions))])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[t._v("技能要求:"),l("span",[t._v(t._s(t.skill))]),l("span",{staticStyle:{display:"none"}},[t._v(t._s(t.match_skills))])])],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:20}},[t._v("工作内容:\n "),l("el-alert",{staticClass:"top",staticStyle:{display:"none"},attrs:{title:"",id:"jobInfoAlert",type:"error","show-icon":""}}),t._v(" "),l("el-input",{attrs:{type:"textarea",autosize:{minRows:5,maxRows:4},placeholder:"请输入内容"},model:{value:t.job_description,callback:function(e){t.job_description=e},expression:"job_description"}})],1)],1),t._v(" "),l("el-row",[l("el-col",{attrs:{span:24}},[l("el-button",{attrs:{type:"primary"},on:{click:t.savePresent}},[t._v("保存")]),t._v(" "),l("el-button",{attrs:{type:"info"},on:{click:t.cancelPresent}},[t._v("取消")])],1)],1)],1)},[],!1,null,"0945e24e",null);e.default=component.exports}}]);