import{_ as a,p as e,u as t,s,G as l,ap as o,v as c,x as i,a as r,w as n,l as u,o as d,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-BoIbtAZO.js";import{_ as y,a as v}from"./matchingDegree.DIUzxusN.js";import{_ as j}from"./dict-Label.Dsm7GAlr.js";const T=a({__name:"collection",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/collection/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((()=>{z()})),o((()=>{z()})),(a,e)=>{const t=u,s=c(i("Salary-Expectation"),y),l=c(i("matchingDegree"),v);return d(),r(t,{class:"collection-content"},{default:n((()=>[p(t,{class:"one-cards"},{default:n((()=>[(d(!0),m(f,null,g(S.list,((a,e)=>(d(),r(t,{class:"card-box",key:e,onClick:e=>{return t=a.jobId,void h(`/packageA/pages/post/post?jobId=${btoa(t)}`);var t}},{default:n((()=>[p(t,{class:"box-row mar_top0"},{default:n((()=>[p(t,{class:"row-left"},{default:n((()=>[_(x(a.jobTitle),1)])),_:2},1024),p(t,{class:"row-right"},{default:n((()=>[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:n((()=>[p(t,{class:"row-left"},{default:n((()=>[a.educatio?(d(),r(t,{key:0,class:"row-tag"},{default:n((()=>[p(j,{dictType:"education",value:a.education},null,8,["value"])])),_:2},1024)):b("",!0),a.experience?(d(),r(t,{key:1,class:"row-tag"},{default:n((()=>[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:n((()=>[p(t,{class:"row-item mineText"},{default:n((()=>[_(x(a.postingDate||"发布日期"),1)])),_:2},1024),p(t,{class:"row-item mineText"},{default:n((()=>[_(x(w(k)(a.vacancies)),1)])),_:2},1024),p(t,{class:"row-item mineText textblue"},{default:n((()=>[p(l,{job:a},null,8,["job"])])),_:2},1024),p(t,{class:"row-item"})])),_:2},1024),p(t,{class:"box-row"},{default:n((()=>[p(t,{class:"row-left mineText"},{default:n((()=>[_(x(a.companyName),1)])),_:2},1024),p(t,{class:"row-right mineText"},{default:n((()=>[_(" 青岛 "),p(j,{dictType:"area",value:a.jobLocationAreaCode},null,8,["value"])])),_:2},1024)])),_:2},1024)])),_:2},1032,["onClick"])))),128))])),_:1})])),_:1})}}},[["__scopeId","data-v-99c64065"]]);export{T as default};
