import{u as F}from"./useTable-cf8e962b-1782729249161v=1.0.0.js";import{b as Z,h as A,u as K,a as Y,_ as M}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{u as R}from"./useGetYear-c4555ce2-1782729249161v=1.0.0.js";import{u as $}from"./useGetEventType-5f65b1bd-1782729249161v=1.0.0.js";import{c as i,r as y,R as r,y as _,m as j,al as p,z as q,I as G,J as o,u as t,O as T}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./notData-926f7286-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import"./base-ea2d5d04-1782729249161v=1.0.0.js";import"./eventTypeApi-be275193-1782729249161v=1.0.0.js";const N=()=>{const l=Z(),{academicYearOptions:u}=R(!0);i(()=>l.getEnumListByKey("semester"));const{eventTypeOptions:m}=$(!0),d=y([]);i(()=>d.value.length==0),i(()=>l.getEnumListByKey("eventPhase"));const g=i(()=>l.getEnumListByKey("eventApplyStatus"));i(()=>l.getEnumListByKey("auditStatus"));const v=y([{prop:"schoolYearId",label:"\u5B66\u5E74",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74"},enum:u},{prop:"name",label:"\u8D5B\u4E8B\u540D\u79F0",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u8D5B\u4E8B\u540D\u79F0"}},{prop:"eventTypeId",label:"\u8D5B\u4E8B\u7C7B\u578B",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u8D5B\u4E8B\u7C7B\u578B"},enum:m}]),h=y([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{prop:"eventId",label:"\u8D5B\u4E8BID",minWidth:100},{prop:"schoolYearIdCn",label:"\u5B66\u5E74",minWidth:100},{prop:"semesterCn",label:"\u5B66\u671F",minWidth:100},{prop:"name",label:"\u8D5B\u4E8B\u540D\u79F0",minWidth:180},{prop:"eventTypeIdCn",label:"\u8D5B\u4E8B\u7C7B\u578B",minWidth:120},{prop:"tag",label:"\u8D5B\u4E8B\u6807\u7B7E",minWidth:150},{prop:"applyTimeStr",label:"\u62A5\u540D\u65F6\u95F4",minWidth:180,render:e=>r("div",null,[r("div",{class:"text-primary"},[e.row.applyStartTime]),r("div",{class:"text-primary"},[e.row.applyEndTime])])},{prop:"eventTimeStr",label:"\u6BD4\u8D5B\u65F6\u95F4",minWidth:180,render:e=>r("div",null,[r("div",{class:"text-primary"},[e.row.eventStartTime]),r("div",{class:"text-primary"},[e.row.eventEndTime])])},{prop:"eventApplyStatus",label:"\u62A5\u540D\u72B6\u6001",minWidth:120,isFilterEnum:!0,enum:g},{prop:"createTime",label:"\u64CD\u4F5C\u65F6\u95F4",minWidth:120},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:220}]);return{columns:v,tableColumns:h,dataCallBack:e=>(e.listData.forEach(a=>{a.applyTimeStr=a.applyStartTime+" \u81F3 "+a.applyEndTime,a.eventTimeStr=a.eventStartTime+" \u81F3 "+a.eventEndTime}),e),paramCallBack:e=>(e.semester==0&&delete e.semester,e.eventTime&&e.eventTime.length>0&&(e.startCreateTime=e.eventTime[0],e.endCreateTime=e.eventTime[1],delete e.eventTime),e),tagOptions:d,eventTypeOptions:m}},U=N,V=l=>A.post("/javaPpoEventactivity/event/authPage",l,{headers:{noLoading:!0}}),J=_({name:"selfSignupIndex"}),Q=_({...J,setup(l){const u=K(),m=Y(),{tableColumns:d,columns:g,tagOptions:v,eventTypeOptions:h,dataCallBack:S,paramCallBack:b}=U(),{tableData:e,pageable:a,baseParam:X,searchParam:f,totalParam:ee,pageParam:te,handleSizeChange:x,handleCurrentChange:k,getTableList:B,search:E,reset:P,loading:z}=F(V,S,b),I=async c=>{u.push({name:"eventListDetail",query:{id:c.eventId,jumpFrom:"selfSignup"}})},w=async c=>{u.push({name:"selfSignupMySignup",query:{id:c.eventId}})};return j(async()=>{await B()}),(c,n)=>{const L=p("HZSearchForm"),C=p("el-button"),W=p("HZProTable"),D=p("el-pagination"),H=p("HZPageLayout");return q(),G(H,{title:t(m).meta.title},{searchForm:o(()=>[r(L,{"search-param":t(f),columns:t(g),search:t(E),reset:t(P)},null,8,["search-param","columns","search","reset"])]),pagination:o(()=>[r(D,{"current-page":t(a).page,"onUpdate:currentPage":n[0]||(n[0]=s=>t(a).page=s),"page-size":t(a).size,"onUpdate:pageSize":n[1]||(n[1]=s=>t(a).size=s),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:t(a).count,onSizeChange:t(x),onCurrentChange:t(k)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:o(()=>n[6]||(n[6]=[])),default:o(()=>[r(W,{columns:t(d),data:t(e),isFlex:!1,loading:t(z)},{tableHeader:o(()=>n[2]||(n[2]=[])),toolButton:o(()=>n[3]||(n[3]=[])),operation:o(s=>[r(C,{type:"primary",link:"",onClick:O=>I(s.row)},{default:o(()=>n[4]||(n[4]=[T("\u53C2\u8D5B\u62A5\u540D",-1)])),_:2,__:[4]},1032,["onClick"]),r(C,{type:"primary",link:"",onClick:O=>w(s.row)},{default:o(()=>n[5]||(n[5]=[T("\u6211\u7684\u62A5\u540D",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const me=M(Q,[["__scopeId","data-v-5d68bed2"]]);export{me as default};
