import{r as m,Q as n,n as Z,x as E,k as w,al as i,y as D,H as R,I as t,M as v,u as e}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{u as T}from"./useTable-ad933c16-1783405707921v=1.0.0.js";import{u as k,P as y,b as U,_ as A}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{u as K}from"./useGetCollage-bc6bc4bb-1783405707921v=1.0.0.js";import{u as O}from"./useGetMajor-0048e7c8-1783405707921v=1.0.0.js";import{g as V}from"./classManageApi-893dbbd8-1783405707921v=1.0.0.js";import"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import"./collageManageApi-e21931eb-1783405707921v=1.0.0.js";import"./majorManageApi-836cbfa2-1783405707921v=1.0.0.js";const G=()=>{const r=k(),{getCollageList:_,collageList:u,getPageCollageList:g}=K(),{getPageMajorList:C}=O();m([]),(async()=>{})();const c=m(!1),d=m(null),s=m([{label:"\u5B66\u5E74",prop:"schoolYearId",isFilterEnum:!0,enum:r.academicYearOptions,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74",props:{clearable:!1}}},{prop:"semester",label:"\u5B66\u671F",isFilterEnum:!0,enum:r.getEnumListByKey("semesterDev"),search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u671F",props:{clearable:!1}}},{prop:"collegeId",label:"\u5B66\u9662",search:{render:({searchParam:l})=>n(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,c.value=!0),Z(()=>{l.majorId=null})}},null)}},{prop:"majorId",label:"\u4E13\u4E1A",isFilterEnum:!0,search:{render:({searchParam:l})=>n(y,{ref:"majorPageSelectRef",placeholder:"\u5168\u90E8\u4E13\u4E1A",value:l.majorId,"onUpdate:value":o=>l.majorId=o,isReload:c.value,"onUpdate:isReload":o=>c.value=o,clearable:!0,disabled:!l.collegeId,"remote-method":C,params:{collegeId:d.value}},null)}}]),h=m([{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:r.getEnumListByKey("collegeName")},{label:"\u4E13\u4E1A\u540D\u79F0",prop:"majorName",isFilterEnum:!0,enum:r.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=E({name:"classManageIndex"}),Q=E({...q,setup(r){const _=U(),u=k(),{tableColumns:g,columns:C,dataCallBack:b,paramCallBack:c}=$(),{tableData:d,pageable:s,baseParam:h,searchParam:f,totalParam:x,pageParam:l,handleSizeChange:o,handleCurrentChange:B,getTableList:M,search:S,reset:z,loading:L}=T(V,b,c);w(async()=>{f.value={schoolYearId:u.schoolYearId,semester:u.semester},await M()});const P=I=>{_.push({name:"classManageDetail",query:{id:I.classId}})};return(I,a)=>{const j=i("HZSearchForm"),F=i("el-link"),H=i("HZProTable"),N=i("el-pagination"),Y=i("HZPageLayout");return D(),R(Y,null,{title:t(()=>a[2]||(a[2]=[v(" \u73ED\u7EA7\u7BA1\u7406 ",-1)])),searchForm:t(()=>[n(j,{"search-param":e(f),columns:e(C),search:e(S),reset:()=>{e(z)(null,{schoolYearId:e(u).schoolYearId,semester:e(u).semester})}},null,8,["search-param","columns","search","reset"])]),pagination:t(()=>[n(N,{"current-page":e(s).page,"onUpdate:currentPage":a[0]||(a[0]=p=>e(s).page=p),"page-size":e(s).size,"onUpdate:pageSize":a[1]||(a[1]=p=>e(s).size=p),"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(()=>[n(H,{columns:e(g),data:e(d),isFlex:!1,loading:e(L)},{tableHeader:t(()=>a[3]||(a[3]=[])),toolButton:t(()=>a[4]||(a[4]=[])),operation:t(p=>[n(F,{type:"primary",onClick:J=>P(p.row)},{default:t(()=>a[5]||(a[5]=[v(" \u67E5\u770B ",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const re=A(Q,[["__scopeId","data-v-4c6c9c58"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/baseManage/classManage/index.vue"]]);export{re as default};
