import{u as E}from"./useTable-2ca1782f-1782468512657v=1.0.0.js";import{u as f,b as Z,_ as w}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{r as _,x as h,k as L,al as s,y as N,H as T,I as o,M as b,Q as p,u as e}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import{g as D}from"./collageManageApi-6fb2328f-1782468512657v=1.0.0.js";import"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";const V=()=>{const u=f(),c=_([{label:"\u5B66\u5E74",prop:"schoolYearId",isFilterEnum:!0,enum:u.academicYearOptions,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74",props:{clearable:!1}}},{prop:"semester",label:"\u5B66\u671F",isFilterEnum:!0,enum:u.getEnumListByKey("semesterDev"),search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u671F",props:{clearable:!1}}}]),l=_([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u5B66\u5E74",prop:"schoolYearIdCn"},{label:"\u5B66\u671F",prop:"semesterCn"},{label:"\u9662\u7CFB\u7F16\u53F7",prop:"collegeNo"},{label:"\u9662\u7CFB\u540D\u79F0",prop:"collegeName"},{label:"\u9662\u7CFB\u7B80\u79F0",prop:"collegeSimpleName"}]);return{columns:c,tableColumns:l,dataCallBack:t=>(t.listData.forEach(g=>{}),t),paramCallBack:t=>t}},U=V,$=h({name:"collageManageIndex"}),q=h({...$,setup(u){const c=Z(),l=f(),{tableColumns:m,columns:i,dataCallBack:t,paramCallBack:g}=U(),{tableData:k,pageable:n,baseParam:A,searchParam:d,totalParam:K,pageParam:O,handleSizeChange:x,handleCurrentChange:y,getTableList:B,search:z,reset:I,loading:S}=E(D,t,g);L(async()=>{d.value={schoolYearId:l.schoolYearId,semester:l.semester},await B()});const P=C=>{c.push({name:"collageManageDetail",query:{id:C.collegeId}})};return(C,a)=>{const v=s("HZSearchForm"),H=s("el-link"),F=s("HZProTable"),M=s("el-pagination"),Y=s("HZPageLayout");return N(),T(Y,null,{title:o(()=>a[2]||(a[2]=[b(" \u9662\u7CFB\u7BA1\u7406 ",-1)])),searchForm:o(()=>[p(v,{"search-param":e(d),columns:e(i),search:e(z),reset:()=>{e(I)(null,{schoolYearId:e(l).schoolYearId,semester:e(l).semester})}},null,8,["search-param","columns","search","reset"])]),pagination:o(()=>[p(M,{"current-page":e(n).page,"onUpdate:currentPage":a[0]||(a[0]=r=>e(n).page=r),"page-size":e(n).size,"onUpdate:pageSize":a[1]||(a[1]=r=>e(n).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(n).count,onSizeChange:e(x),onCurrentChange:e(y)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:o(()=>a[6]||(a[6]=[])),default:o(()=>[p(F,{columns:e(m),data:e(k),isFlex:!1,loading:e(S)},{tableHeader:o(()=>a[3]||(a[3]=[])),toolButton:o(()=>a[4]||(a[4]=[])),operation:o(r=>[p(H,{type:"primary",onClick:Q=>P(r.row)},{default:o(()=>a[5]||(a[5]=[b(" \u67E5\u770B ",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const X=w(q,[["__scopeId","data-v-4a2ea285"]]);export{X as default};
