import{u as Z}from"./useTable-2ca1782f-1782468512657v=1.0.0.js";import{u as T}from"./useHandleData-2745be0e-1782468512657v=1.0.0.js";import{u as E,f as V,b as $,_ as A}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{u as K}from"./useGetCollage-3b0599a7-1782468512657v=1.0.0.js";import{r as _,Q as o,x as I,k as O,al as u,y as U,H as q,I as t,M as m,u as a,L as R}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import{b as G,d as Q}from"./clubManageApi-720ad24a-1782468512657v=1.0.0.js";import"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import"./collageManageApi-6fb2328f-1782468512657v=1.0.0.js";const j=()=>{const i=E(),{getCollageList:d,collageList:n,getPageCollageList:g}=K();_([]),(async()=>{})();const b=_([{label:"\u5B66\u5E74",prop:"schoolYearId",isFilterEnum:!0,enum:i.academicYearOptions,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74",props:{clearable:!1}}},{prop:"semester",label:"\u5B66\u671F",isFilterEnum:!0,enum:i.getEnumListByKey("semesterDev"),search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u671F",props:{clearable:!1}}},{prop:"collegeId",label:"\u5B66\u9662\u540D\u79F0",isFilterEnum:!0,enum:n,search:{render:({searchParam:l})=>o(V,{ref:"pageSelectRef",value:l.collegeId,"onUpdate:value":p=>l.collegeId=p,"remote-method":g},null)}}]),C=_([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u5B66\u5E74",prop:"schoolYearIdCn"},{label:"\u5B66\u671F",prop:"semesterCn"},{label:"\u5B66\u9662\u540D\u79F0",prop:"collegeName",isFilterEnum:!0,enum:i.getEnumListByKey("clubName")},{label:"\u4FF1\u4E50\u90E8\u540D\u79F0",prop:"clubName",isFilterEnum:!0,enum:i.getEnumListByKey("collegeName")},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:b,tableColumns:C,dataCallBack:l=>(l.listData.forEach(p=>{}),l),paramCallBack:l=>l}},J=j,W=I({name:"clubManageIndex"}),X=I({...W,setup(i){const d=$(),n=E(),{tableColumns:g,columns:f,dataCallBack:b,paramCallBack:C}=J(),{tableData:y,pageable:r,baseParam:l,searchParam:p,totalParam:ee,pageParam:ae,handleSizeChange:x,handleCurrentChange:B,getTableList:h,search:F,reset:v,loading:L}=Z(G,b,C);O(async()=>{p.value={schoolYearId:n.schoolYearId,semester:n.semester},await h()});const z=()=>{d.push({name:"clubManageAdd",query:{id:0}})},S=c=>{d.push({name:"clubManageEdit",query:{id:c.clubId}})},w=async c=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await T(Q,{id:c.clubId},e),h()};return(c,e)=>{const H=u("HZSearchForm"),M=u("el-button"),k=u("el-link"),P=u("HZProTable"),N=u("el-pagination"),Y=u("HZPageLayout");return U(),q(Y,null,{title:t(()=>e[2]||(e[2]=[m(" \u4FF1\u4E50\u90E8\u7BA1\u7406 ",-1)])),searchForm:t(()=>[o(H,{"search-param":a(p),columns:a(f),search:a(F),reset:()=>{a(v)(null,{schoolYearId:a(n).schoolYearId,semester:a(n).semester})}},null,8,["search-param","columns","search","reset"])]),pagination:t(()=>[o(N,{"current-page":a(r).page,"onUpdate:currentPage":e[0]||(e[0]=s=>a(r).page=s),"page-size":a(r).size,"onUpdate:pageSize":e[1]||(e[1]=s=>a(r).size=s),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(r).count,onSizeChange:a(x),onCurrentChange:a(B)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[7]||(e[7]=[])),default:t(()=>[o(P,{columns:a(g),data:a(y),isFlex:!1,loading:a(L)},{tableHeader:t(()=>e[3]||(e[3]=[])),toolButton:t(()=>[o(M,{type:"primary",onClick:z},{default:t(()=>e[4]||(e[4]=[m(" \u65B0\u589E ",-1)])),_:1,__:[4]})]),operation:t(s=>[o(k,{type:"primary",onClick:D=>S(s.row)},{default:t(()=>e[5]||(e[5]=[m("\u7F16\u8F91",-1)])),_:2,__:[5]},1032,["onClick"]),o(k,{type:"danger",onClick:D=>w(s.row)},{default:t(()=>e[6]||(e[6]=[m("\u5220\u9664",-1)])),_:2,__:[6]},1032,["onClick"]),R(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> ')]),_:1},8,["columns","data","loading"])]),_:1})}}});const pe=A(X,[["__scopeId","data-v-ecb83db1"]]);export{pe as default};
