import{u as R}from"./useTable-2ca1782f-1782468512657v=1.0.0.js";import{u as E,f as y,b as T,_ as Z}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{u as w}from"./useGetCollage-3b0599a7-1782468512657v=1.0.0.js";import{u as D}from"./useGetMajor-862aba28-1782468512657v=1.0.0.js";import{r as c,Q as r,n as U,x as k,k as A,al as i,y as K,H as O,I as t,M as v,u as e}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import{g as V}from"./classManageApi-9a7ec3ed-1782468512657v=1.0.0.js";import"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import"./collageManageApi-6fb2328f-1782468512657v=1.0.0.js";import"./majorManageApi-caa0d416-1782468512657v=1.0.0.js";const $=()=>{const n=E(),{getCollageList:_,collageList:u,getPageCollageList:g}=w(),{getPageMajorList:C}=D();c([]),(async()=>{})();const p=c(!1),d=c(null),s=c([{label:"\u5B66\u5E74",prop:"schoolYearId",isFilterEnum:!0,enum:n.academicYearOptions,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74",props:{clearable:!1}}},{prop:"semester",label:"\u5B66\u671F",isFilterEnum:!0,enum:n.getEnumListByKey("semesterDev"),search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u671F",props:{clearable:!1}}},{prop:"collegeId",label:"\u5B66\u9662",search:{render:({searchParam:l})=>r(y,{ref:"pageSelectRef",placeholder:"\u5168\u90E8\u5B66\u9662",value:l.collegeId,"onUpdate:value":o=>l.collegeId=o,clearable:!0,"remote-method":g,onChange:o=>{o&&(d.value=o,p.value=!0),U(()=>{l.majorId=null})}},null)}},{prop:"majorId",label:"\u4E13\u4E1A",isFilterEnum:!0,search:{render:({searchParam:l})=>r(y,{ref:"majorPageSelectRef",placeholder:"\u5168\u90E8\u4E13\u4E1A",value:l.majorId,"onUpdate:value":o=>l.majorId=o,isReload:p.value,"onUpdate:isReload":o=>p.value=o,clearable:!0,disabled:!l.collegeId,"remote-method":C,params:{collegeId:d.value}},null)}}]),h=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:n.getEnumListByKey("collegeName")},{label:"\u4E13\u4E1A\u540D\u79F0",prop:"majorName",isFilterEnum:!0,enum:n.getEnumListByKey("majorName")},{label:"\u73ED\u7EA7\u540D\u79F0",prop:"className"}]);return{columns:s,tableColumns:h,dataCallBack:l=>(l.listData.forEach(o=>{}),l),paramCallBack:l=>l}},G=$,q=k({name:"classManageIndex"}),Q=k({...q,setup(n){const _=T(),u=E(),{tableColumns:g,columns:C,dataCallBack:b,paramCallBack:p}=G(),{tableData:d,pageable:s,baseParam:h,searchParam:f,totalParam:x,pageParam:l,handleSizeChange:o,handleCurrentChange:B,getTableList:L,search:S,reset:j,loading:z}=R(V,b,p);A(async()=>{f.value={schoolYearId:u.schoolYearId,semester:u.semester},await L()});const M=I=>{_.push({name:"classManageDetail",query:{id:I.classId}})};return(I,a)=>{const F=i("HZSearchForm"),P=i("el-link"),H=i("HZProTable"),N=i("el-pagination"),Y=i("HZPageLayout");return K(),O(Y,null,{title:t(()=>a[2]||(a[2]=[v(" \u73ED\u7EA7\u7BA1\u7406 ",-1)])),searchForm:t(()=>[r(F,{"search-param":e(f),columns:e(C),search:e(S),reset:()=>{e(j)(null,{schoolYearId:e(u).schoolYearId,semester:e(u).semester})}},null,8,["search-param","columns","search","reset"])]),pagination:t(()=>[r(N,{"current-page":e(s).page,"onUpdate:currentPage":a[0]||(a[0]=m=>e(s).page=m),"page-size":e(s).size,"onUpdate:pageSize":a[1]||(a[1]=m=>e(s).size=m),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(s).count,onSizeChange:e(o),onCurrentChange:e(B)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>a[6]||(a[6]=[])),default:t(()=>[r(H,{columns:e(g),data:e(d),isFlex:!1,loading:e(z)},{tableHeader:t(()=>a[3]||(a[3]=[])),toolButton:t(()=>a[4]||(a[4]=[])),operation:t(m=>[r(P,{type:"primary",onClick:J=>M(m.row)},{default:t(()=>a[5]||(a[5]=[v(" \u67E5\u770B ",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const ne=Z(Q,[["__scopeId","data-v-54741c85"]]);export{ne as default};
