import{_ as F,r as i,c as u,x as Q,o as r,d as m,e as l,f as n,y as A,z as f,A as R,F as y,B as I,k as v,q as G}from"./index-D3UBN5Ps.js";import{r as j,i as H,o as J,e as K,q as M,_ as W,a as X,b as Y}from"./add-C-vNoPHO.js";const Z={class:"app-container"},ee={__name:"index",setup(le){const{proxy:q}=G(),C=i([]),k=i(!1),V=i(0),o=i({pageNum:1,pageSize:10}),h=i([]),L=i([]),x=i([]),w=i([]),N=i([]),_=i(!1);j().then(a=>{h.value=a.data.list}),H().then(a=>{N.value=a.data}),J().then(a=>{w.value=a.data.list}),K().then(a=>{a.data.list.forEach(t=>{t.name=t.description}),L.value=a.data.list}),M().then(a=>{x.value=a.data.list});function s(){const a={...o.value};a.time&&a.time.length==2&&(a.startTime=a.time[0]+" 00:00:00",a.endTime=a.time[1]+" 23:59:59"),delete a.time,k.value=!0,X(a).then(t=>{C.value=t.data.list,V.value=t.data.total,k.value=!1})}function T(){o.value.pageNum=1,o.value.pageSize=10,s()}function S(){o.value={pageNum:1,pageSize:10},T()}function $(a){q.$modal.confirm("您确定要删除吗？").then(function(){return Y({id:a.id})}).then(t=>{s(),q.$modal.msgSuccess("删除成功")}).catch(()=>{})}return s(),(a,t)=>{const b=u("el-option"),g=u("el-select"),p=u("el-form-item"),c=u("el-button"),z=u("el-form"),U=u("el-col"),B=u("el-row"),d=u("el-table-column"),D=u("el-table"),E=u("pagination"),O=Q("loading");return r(),m("div",Z,[l(z,{model:o.value,ref:"queryRef",inline:!0},{default:n(()=>[l(p,{label:"招聘企业"},{default:n(()=>[l(g,{modelValue:o.value.orgId,"onUpdate:modelValue":t[0]||(t[0]=e=>o.value.orgId=e),placeholder:"请选择",style:{width:"220px"}},{default:n(()=>[(r(!0),m(y,null,I(w.value,e=>(r(),f(b,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,{label:"招聘类型",prop:"recruitTypeId"},{default:n(()=>[l(g,{modelValue:o.value.recruitTypeId,"onUpdate:modelValue":t[1]||(t[1]=e=>o.value.recruitTypeId=e),placeholder:"请选择",filterable:"",style:{width:"100%"}},{default:n(()=>[(r(!0),m(y,null,I(h.value,e=>(r(),f(b,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,{label:"学历",prop:"qualificationId"},{default:n(()=>[l(g,{modelValue:o.value.qualificationId,"onUpdate:modelValue":t[2]||(t[2]=e=>o.value.qualificationId=e),placeholder:"请选择",filterable:"",style:{width:"100%"}},{default:n(()=>[(r(!0),m(y,null,I(x.value,e=>(r(),f(b,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,{label:"经验",prop:"experienceId"},{default:n(()=>[l(g,{modelValue:o.value.experienceId,"onUpdate:modelValue":t[3]||(t[3]=e=>o.value.experienceId=e),placeholder:"请选择",filterable:"",style:{width:"100%"}},{default:n(()=>[(r(!0),m(y,null,I(L.value,e=>(r(),f(b,{key:e.id,label:e.name,value:e.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(p,null,{default:n(()=>[l(c,{type:"primary",icon:"Search",onClick:T},{default:n(()=>[v("搜索")]),_:1}),l(c,{icon:"Refresh",onClick:S},{default:n(()=>[v("重置")]),_:1})]),_:1})]),_:1},8,["model"]),l(B,{gutter:10,class:"mb8"},{default:n(()=>[l(U,{span:1.5},{default:n(()=>[l(c,{type:"primary",plain:"",icon:"Plus",onClick:t[4]||(t[4]=e=>{_.value=!0,a.detailInfo={}})},{default:n(()=>[v("新增")]),_:1})]),_:1})]),_:1}),A((r(),f(D,{data:C.value,"show-overflow-tooltip":""},{default:n(()=>[l(d,{label:"招聘企业",prop:"orgName"}),l(d,{label:"职位",prop:"name"}),l(d,{label:"招聘类型",prop:"recruitType"}),l(d,{label:"经验",prop:"experience",align:"center"}),l(d,{label:"学历",prop:"qualification"}),l(d,{label:"地址",prop:"address"}),l(d,{label:"职位类型",prop:"industryName"}),l(d,{label:"创建时间",prop:"createTime",align:"center",width:"160"}),l(d,{label:"操作",width:"120",align:"center","class-name":"small-padding fixed-width"},{default:n(({row:e})=>[l(c,{link:"",type:"primary",icon:"Edit",onClick:P=>{_.value=!0,a.detailInfo=e}},{default:n(()=>[v("编辑")]),_:2},1032,["onClick"]),l(c,{link:"",type:"primary",icon:"Delete",onClick:P=>$(e)},{default:n(()=>[v("删除")]),_:2},1032,["onClick"])]),_:1})]),_:1},8,["data"])),[[O,k.value]]),A(l(E,{total:V.value,page:o.value.pageNum,"onUpdate:page":t[5]||(t[5]=e=>o.value.pageNum=e),limit:o.value.pageSize,"onUpdate:limit":t[6]||(t[6]=e=>o.value.pageSize=e),onPagination:s},null,8,["total","page","limit"]),[[R,V.value>0]]),l(W,{addVisible:_.value,onChangeVisible:t[7]||(t[7]=e=>_.value=!1),onGetList:s,detailInfo:a.detailInfo,selectOp:{recruitAllList:h.value,experienceList:L.value,qualificationList:x.value,orgList:w.value,industryList:N.value}},null,8,["addVisible","detailInfo","selectOp"])])}}},ne=F(ee,[["__scopeId","data-v-5f999d96"]]);export{ne as default};
