import{r as _,Q as o,x as E,k as Z,al as u,y as T,H as V,I as t,M as m,u as a,L as A}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{u as K}from"./useTable-ad933c16-1783405707921v=1.0.0.js";import{u as O}from"./useHandleData-17459d42-1783405707921v=1.0.0.js";import{u as x,P as U,b as $,_ as q}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{u as R}from"./useGetCollage-bc6bc4bb-1783405707921v=1.0.0.js";import{b as G,d as Q}from"./clubManageApi-2b55464b-1783405707921v=1.0.0.js";import"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import"./collageManageApi-e21931eb-1783405707921v=1.0.0.js";const j=()=>{const i=x(),{getCollageList:d,collageList:n,getPageCollageList:g}=R();_([]),(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(U,{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=E({name:"clubManageIndex"}),X=E({...W,setup(i){const d=$(),n=x(),{tableColumns:g,columns:h,dataCallBack:b,paramCallBack:C}=J(),{tableData:f,pageable:s,baseParam:l,searchParam:p,totalParam:ee,pageParam:ae,handleSizeChange:I,handleCurrentChange:B,getTableList:y,search:v,reset:F,loading:z}=K(G,b,C);Z(async()=>{p.value={schoolYearId:n.schoolYearId,semester:n.semester},await y()});const L=()=>{d.push({name:"clubManageAdd",query:{id:0}})},M=c=>{d.push({name:"clubManageEdit",query:{id:c.clubId}})},P=async c=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await O(Q,{id:c.clubId},e),y()};return(c,e)=>{const S=u("HZSearchForm"),w=u("el-button"),k=u("el-link"),H=u("HZProTable"),D=u("el-pagination"),N=u("HZPageLayout");return T(),V(N,null,{title:t(()=>e[2]||(e[2]=[m(" \u4FF1\u4E50\u90E8\u7BA1\u7406 ",-1)])),searchForm:t(()=>[o(S,{"search-param":a(p),columns:a(h),search:a(v),reset:()=>{a(F)(null,{schoolYearId:a(n).schoolYearId,semester:a(n).semester})}},null,8,["search-param","columns","search","reset"])]),pagination:t(()=>[o(D,{"current-page":a(s).page,"onUpdate:currentPage":e[0]||(e[0]=r=>a(s).page=r),"page-size":a(s).size,"onUpdate:pageSize":e[1]||(e[1]=r=>a(s).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(s).count,onSizeChange:a(I),onCurrentChange:a(B)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[7]||(e[7]=[])),default:t(()=>[o(H,{columns:a(g),data:a(f),isFlex:!1,loading:a(z)},{tableHeader:t(()=>e[3]||(e[3]=[])),toolButton:t(()=>[o(w,{type:"primary",onClick:L},{default:t(()=>e[4]||(e[4]=[m(" \u65B0\u589E ",-1)])),_:1,__:[4]})]),operation:t(r=>[o(k,{type:"primary",onClick:Y=>M(r.row)},{default:t(()=>e[5]||(e[5]=[m("\u7F16\u8F91",-1)])),_:2,__:[5]},1032,["onClick"]),o(k,{type:"danger",onClick:Y=>P(r.row)},{default:t(()=>e[6]||(e[6]=[m("\u5220\u9664",-1)])),_:2,__:[6]},1032,["onClick"]),A(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> ')]),_:1},8,["columns","data","loading"])]),_:1})}}});const pe=q(X,[["__scopeId","data-v-5c151837"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/baseManage/clubManage/index.vue"]]);export{pe as default};
