import{_ as U,r as f,c as s,x as F,o as c,d as k,e,f as a,y as B,z as y,A as M,k as t,t as o,n as P,F as h,B as I,q as Q}from"./index-9GQTZFO5.js";import{a as R,w as A,p as G,o as H,b as J}from"./personnel-CKKiegAK.js";const K={class:"app-container"},W={class:"dialog-footer"},X={__name:"index",setup(Y){const{proxy:w}=Q(),C=f([]),x=f(!1),N=f(0),r=f({pageNum:1,pageSize:10}),v=f(!1),i=f({userInfo:{},careerObjective:[],workExperience:[],educationalBackground:[]});function j(d){v.value=!0,i.value={userInfo:d,careerObjective:[],workExperience:[],educationalBackground:[]},A({personId:d.id}).then(n=>{i.value.workExperience=n.data.list}),G({personId:d.id}).then(n=>{i.value.educationalBackground=n.data.list}),H({personId:d.id}).then(n=>{i.value.careerObjective=n.data.list})}function b(){const d={...r.value};x.value=!0,R(d).then(n=>{C.value=n.data.list,N.value=n.data.total,x.value=!1})}function S(){r.value.pageNum=1,r.value.pageSize=10,b()}function $(){r.value={pageNum:1,pageSize:10},S()}function E(d){w.$modal.confirm("您确定要删除吗？").then(function(){return J({id:d.id})}).then(n=>{b(),w.$modal.msgSuccess("删除成功")}).catch(()=>{})}return b(),(d,n)=>{const T=s("el-input"),V=s("el-form-item"),m=s("el-button"),z=s("el-form"),p=s("el-table-column"),D=s("el-table"),q=s("pagination"),u=s("el-descriptions-item"),g=s("el-descriptions"),L=s("el-dialog"),O=F("loading");return c(),k("div",K,[e(z,{model:r.value,ref:"queryRef",inline:!0},{default:a(()=>[e(V,{label:"姓名"},{default:a(()=>[e(T,{placeholder:"请输入",modelValue:r.value.name,"onUpdate:modelValue":n[0]||(n[0]=l=>r.value.name=l)},null,8,["modelValue"])]),_:1}),e(V,null,{default:a(()=>[e(m,{type:"primary",icon:"Search",onClick:S},{default:a(()=>[t("搜索")]),_:1}),e(m,{icon:"Refresh",onClick:$},{default:a(()=>[t("重置")]),_:1})]),_:1})]),_:1},8,["model"]),B((c(),y(D,{data:C.value,"show-overflow-tooltip":""},{default:a(()=>[e(p,{label:"姓名",prop:"name"}),e(p,{label:"手机号",prop:"phoneNumber"}),e(p,{label:"年龄",prop:"age",align:"center"}),e(p,{label:"性别",prop:"sex"},{default:a(({row:l})=>[t(o(l.sex?"男":"女"),1)]),_:1}),e(p,{label:"证件号码",prop:"idNo"}),e(p,{label:"创建时间",prop:"createTime",align:"center"}),e(p,{label:"操作",width:"160",align:"center"},{default:a(({row:l})=>[e(m,{link:"",type:"primary",icon:"View",onClick:_=>j(l)},{default:a(()=>[t("简历查看")]),_:2},1032,["onClick"]),e(m,{link:"",type:"primary",icon:"Delete",onClick:_=>E(l)},{default:a(()=>[t("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[O,x.value]]),B(e(q,{total:N.value,page:r.value.pageNum,"onUpdate:page":n[1]||(n[1]=l=>r.value.pageNum=l),limit:r.value.pageSize,"onUpdate:limit":n[2]||(n[2]=l=>r.value.pageSize=l),onPagination:b},null,8,["total","page","limit"]),[[M,N.value>0]]),e(L,{title:"简历",modelValue:v.value,"onUpdate:modelValue":n[4]||(n[4]=l=>v.value=l),width:"1000px","append-to-body":"","close-on-click-modal":!1,class:"jltc"},{footer:a(()=>[P("div",W,[e(m,{type:"primary",onClick:n[3]||(n[3]=l=>v.value=!1)},{default:a(()=>[t("关 闭")]),_:1})])]),default:a(()=>[e(g,{title:"基本信息"},{default:a(()=>[e(u,{label:"姓名"},{default:a(()=>[t(o(i.value.userInfo.name),1)]),_:1}),e(u,{label:"性别"},{default:a(()=>[t(o(i.value.userInfo.sex?"男":"女"),1)]),_:1}),e(u,{label:"手机号码"},{default:a(()=>[t(o(i.value.userInfo.phoneNumber),1)]),_:1}),e(u,{label:"身份证号"},{default:a(()=>[t(o(i.value.userInfo.idNo),1)]),_:1})]),_:1}),(c(!0),k(h,null,I(i.value.careerObjective,(l,_)=>(c(),y(g,{title:`求职意向${_+1}`},{default:a(()=>[e(u,{label:"期望职位"},{default:a(()=>[t(o(l.industryName),1)]),_:2},1024),e(u,{label:"工作城市"},{default:a(()=>[t(o(l.province)+o(l.city)+o(l.region),1)]),_:2},1024),e(u,{label:"薪资要求"},{default:a(()=>[t(o(l.salaryMin)+"-"+o(l.salaryMax),1)]),_:2},1024),e(u,{label:"工作性质"},{default:a(()=>[t(o(l.workType),1)]),_:2},1024)]),_:2},1032,["title"]))),256)),(c(!0),k(h,null,I(i.value.workExperience,(l,_)=>(c(),y(g,{title:`工作经历${_+1}`},{default:a(()=>[e(u,{label:"公司名称"},{default:a(()=>[t(o(l.orgName),1)]),_:2},1024),e(u,{label:"职位名称"},{default:a(()=>[t(o(l.job),1)]),_:2},1024),e(u,{label:"在职时间"},{default:a(()=>[t(o(l.startTime)+" ~ "+o(l.endTime),1)]),_:2},1024),e(u,{label:"所属行业"},{default:a(()=>[t(o(l.industryName),1)]),_:2},1024),e(u,{label:"月薪"},{default:a(()=>[t(o(l.money),1)]),_:2},1024),e(u),e(u,{label:"工作描述"},{default:a(()=>[t(o(l.descr),1)]),_:2},1024)]),_:2},1032,["title"]))),256)),(c(!0),k(h,null,I(i.value.educationalBackground,(l,_)=>(c(),y(g,{title:`教育经历${_+1}`},{default:a(()=>[e(u,{label:"最高学历"},{default:a(()=>[t(o(l.qualification),1)]),_:2},1024),e(u,{label:"学校名称"},{default:a(()=>[t(o(l.school),1)]),_:2},1024),e(u,{label:"所学专业"},{default:a(()=>[t(o(l.major),1)]),_:2},1024),e(u,{label:"在校时间"},{default:a(()=>[t(o(l.startTime)+" ~ "+o(l.endTime),1)]),_:2},1024)]),_:2},1032,["title"]))),256))]),_:1},8,["modelValue"])])}}},le=U(X,[["__scopeId","data-v-9c3be8a8"]]);export{le as default};
