import{_ as a,p as e,u as t,s,G as l,aq as o,v as c,x as i,a as n,w as r,l as d,o as u,k as p,b as m,r as g,F as f,y as _,z as x,j as b,H as w}from"./index-DdiBakOJ.js";import{_ as y,a as v}from"./matchingDegree.C4MMzh2G.js";import{_ as j}from"./dict-Label.ot3xNx0t.js";const T=a({__name:"Intendedposition",setup(a){const{$api:T,navTo:h,vacanciesTo:k}=e("globalFunction");t(),s({});const S=s({page:0,list:[],total:0,maxPage:1,pageSize:10});function z(a="add"){"refresh"===a&&(S.page=0,S.maxPage=1),"add"===a&&S.page<S.maxPage&&(S.page+=1);let e={current:S.page,pageSize:S.pageSize};T.createRequest("/app/user/apply/job",e).then((e=>{const{rows:t,total:s}=e;if("add"===a){const a=S.pageSize*(S.page-1),e=S.list.length,s=t;S.list.splice(a,e,...s)}else S.list=t;S.total=e.total,S.maxPage=Math.ceil(S.total/S.pageSize)}))}return l((()=>{console.log("onLoad"),z()})),o((()=>{z()})),(a,e)=>{const t=d,s=c(i("Salary-Expectation"),y),l=c(i("matchingDegree"),v);return u(),n(t,{class:"collection-content"},{default:r((()=>[p(t,{class:"one-cards"},{default:r((()=>[(u(!0),m(f,null,g(S.list,((a,e)=>(u(),n(t,{class:"card-box",key:e,onClick:e=>{return t=a.jobId,void h(`/packageA/pages/post/post?jobId=${btoa(t)}`);var t}},{default:r((()=>[p(t,{class:"box-row mar_top0"},{default:r((()=>[p(t,{class:"row-left"},{default:r((()=>[_(x(a.jobTitle),1)])),_:2},1024),p(t,{class:"row-right"},{default:r((()=>[p(s,{"max-salary":a.maxSalary,"min-salary":a.minSalary},null,8,["max-salary","min-salary"])])),_:2},1024)])),_:2},1024),p(t,{class:"box-row"},{default:r((()=>[p(t,{class:"row-left"},{default:r((()=>[a.educatio?(u(),n(t,{key:0,class:"row-tag"},{default:r((()=>[p(j,{dictType:"education",value:a.education},null,8,["value"])])),_:2},1024)):b("",!0),a.experience?(u(),n(t,{key:1,class:"row-tag"},{default:r((()=>[p(j,{dictType:"experience",value:a.experience},null,8,["value"])])),_:2},1024)):b("",!0)])),_:2},1024)])),_:2},1024),p(t,{class:"box-row mar_top0"},{default:r((()=>[p(t,{class:"row-item mineText"},{default:r((()=>[_(x(a.postingDate||"发布日期"),1)])),_:2},1024),p(t,{class:"row-item mineText"},{default:r((()=>[_(x(w(k)(a.vacancies)),1)])),_:2},1024),p(t,{class:"row-item mineText textblue"},{default:r((()=>[p(l,{job:a},null,8,["job"])])),_:2},1024),p(t,{class:"row-item"})])),_:2},1024),p(t,{class:"box-row"},{default:r((()=>[p(t,{class:"row-left mineText"},{default:r((()=>[_(x(a.companyName),1)])),_:2},1024),p(t,{class:"row-right mineText"},{default:r((()=>[_(" 青岛 "),p(j,{dictType:"area",value:a.jobLocationAreaCode},null,8,["value"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-6c0afbd6"]]);export{T as default};
