import{r,C as J,D as M,e as n,E as C,o as u,c as V,G as c,H as k,i as t,f as e,h as s,l as O,F as Q,I as T,J as b,m as y,B as G,v as H}from"./index-C1_1_QXk.js";import{p as $,m as z}from"./message-DjfehpFe.js";const A={class:"app-container"},W=G({name:"Post"}),le=Object.assign(W,{setup(X){const{proxy:x}=H(),h=r([]),w=r([]);r(!1);const m=r(!0),N=r(!0),d=r(0);r("");const P=J({form:{},queryParams:{page:1,limit:10,name:"",phoneNumber:"",openId:""}}),{queryParams:a,form:Y,rules:Z}=M(P);$().then(i=>{h.value=[{value:"",label:"请选择"},...i.map(l=>(l=JSON.parse(l),{value:l.id,label:l.name,id:l.id}))]});function _(){m.value=!0,z(a.value).then(i=>{w.value=i.data.data,d.value=i.count,m.value=!1})}function f(){a.value.page=1,a.value.limit=10,_()}function S(){a.value={},f()}function j(){x.$router.push("message/message-send")}return _(),(i,l)=>{const B=n("el-input"),g=n("el-form-item"),I=n("el-option"),L=n("el-select"),v=n("el-button"),U=n("el-form"),q=n("el-col"),D=n("el-row"),p=n("el-table-column"),K=n("el-table"),R=n("pagination"),E=C("hasPermi"),F=C("loading");return u(),V("div",A,[c(e(U,{model:t(a),ref:"queryRef",inline:!0},{default:s(()=>[e(g,{label:"消息标题",prop:"title"},{default:s(()=>[e(B,{modelValue:t(a).title,"onUpdate:modelValue":l[0]||(l[0]=o=>t(a).title=o),placeholder:"请输入标题",clearable:"",style:{width:"200px"},onKeyup:O(f,["enter"])},null,8,["modelValue","onKeyup"])]),_:1}),e(g,{label:"招聘项目",prop:"projectId"},{default:s(()=>[e(L,{modelValue:t(a).pro_id,"onUpdate:modelValue":l[1]||(l[1]=o=>t(a).pro_id=o),placeholder:"请选择",style:{width:"240px"}},{default:s(()=>[(u(!0),V(Q,null,T(t(h),o=>(u(),b(I,{key:o.value,label:o.label,value:o.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(g,null,{default:s(()=>[e(v,{type:"primary",icon:"Search",onClick:f},{default:s(()=>[y("搜索")]),_:1}),e(v,{icon:"Refresh",onClick:S},{default:s(()=>[y("重置")]),_:1})]),_:1})]),_:1},8,["model"]),[[k,t(N)]]),e(D,{gutter:10,class:"mb8"},{default:s(()=>[e(q,{span:1.5},{default:s(()=>[c((u(),b(v,{type:"primary",plain:"",onClick:j,icon:"Message"},{default:s(()=>[y("发送消息")]),_:1})),[[E,["message:add"]]])]),_:1})]),_:1}),c((u(),b(K,{data:t(w)},{default:s(()=>[e(p,{label:"消息标题",align:"left",prop:"title"}),e(p,{label:"发送人",align:"center",prop:"userName"}),e(p,{label:"发送时间",align:"center",prop:"createTime"}),e(p,{label:"招聘项目",align:"center",prop:"proName"}),e(p,{label:"内容",align:"left",prop:"content"})]),_:1},8,["data"])),[[F,t(m)]]),c(e(R,{total:t(d),page:t(a).page,"onUpdate:page":l[2]||(l[2]=o=>t(a).page=o),limit:t(a).limit,"onUpdate:limit":l[3]||(l[3]=o=>t(a).limit=o),onPagination:_},null,8,["total","page","limit"]),[[k,t(d)>0]])])}}});export{le as default};
