import{u as F}from"./useTable-2ca1782f-1782468512657v=1.0.0.js";import{u as I,f as Y,b as Z,_ as w}from"./index-c87bcfde-1782468512657v=1.0.0.js";import{u as T}from"./useGetCollage-3b0599a7-1782468512657v=1.0.0.js";import{r as g,Q as p,x as k,k as D,al as u,y as N,H as O,I as o,u as e,M as h}from"./vendor-27e23c1b-1782468512657v=1.0.0.js";import{g as U}from"./majorManageApi-caa0d416-1782468512657v=1.0.0.js";import"./eleVendor-12a75a9a-1782468512657v=1.0.0.js";import"./collageManageApi-6fb2328f-1782468512657v=1.0.0.js";const V=()=>{const m=I(),{getCollageList:C,collageList:l,getPageCollageList:i}=T();g([]),(async()=>{})();const c=g([{label:"\u5B66\u5E74",prop:"schoolYearId",isFilterEnum:!0,enum:m.academicYearOptions,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74",props:{clearable:!1}}},{prop:"semester",label:"\u5B66\u671F",isFilterEnum:!0,enum:m.getEnumListByKey("semesterDev"),search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u671F",props:{clearable:!1}}},{prop:"collegeId",label:"\u5B66\u9662\u540D\u79F0",isFilterEnum:!0,enum:l,search:{render:({searchParam:t})=>p(Y,{ref:"pageSelectRef",value:t.collegeId,"onUpdate:value":r=>t.collegeId=r,"remote-method":i},null)}}]),d=g([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u5B66\u5E74",prop:"schoolYearIdCn"},{label:"\u5B66\u671F",prop:"semesterCn"},{label:"\u4E13\u4E1A\u540D\u79F0",prop:"majorName"},{label:"\u5B66\u9662\u540D\u79F0",prop:"collegeName"}]);return{columns:c,tableColumns:d,dataCallBack:t=>(t.listData.forEach(r=>{}),t),paramCallBack:t=>t}},$=V,A=k({name:"majorManageIndex"}),R=k({...A,setup(m){const C=Z(),l=I(),{tableColumns:i,columns:_,dataCallBack:c,paramCallBack:d}=$(),{tableData:b,pageable:n,baseParam:t,searchParam:r,totalParam:q,pageParam:G,handleSizeChange:x,handleCurrentChange:y,getTableList:B,search:v,reset:z,loading:M}=F(U,c,d);D(async()=>{r.value={schoolYearId:l.schoolYearId,semester:l.semester},await B()});const S=f=>{C.push({name:"majorManageDetail",query:{id:f.majorId}})};return(f,a)=>{const E=u("HZSearchForm"),P=u("el-link"),H=u("HZProTable"),L=u("el-pagination"),j=u("HZPageLayout");return N(),O(j,null,{searchForm:o(()=>[p(E,{"search-param":e(r),columns:e(_),search:e(v),reset:()=>{e(z)(null,{schoolYearId:e(l).schoolYearId,semester:e(l).semester})}},null,8,["search-param","columns","search","reset"])]),title:o(()=>a[2]||(a[2]=[h(" \u4E13\u4E1A\u7BA1\u7406 ",-1)])),pagination:o(()=>[p(L,{"current-page":e(n).page,"onUpdate:currentPage":a[0]||(a[0]=s=>e(n).page=s),"page-size":e(n).size,"onUpdate:pageSize":a[1]||(a[1]=s=>e(n).size=s),"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(H,{columns:e(i),data:e(b),isFlex:!1,loading:e(M)},{tableHeader:o(()=>a[3]||(a[3]=[])),toolButton:o(()=>a[4]||(a[4]=[])),operation:o(s=>[p(P,{type:"primary",onClick:K=>S(s.row)},{default:o(()=>a[5]||(a[5]=[h(" \u67E5\u770B ",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const te=w(R,[["__scopeId","data-v-3abdaa57"]]);export{te as default};
