import{r as d,Q as p,x as k,k as F,al as u,y as Y,H as Z,I as o,u as e,M as f}from"./vendor-6ae0c374-1783405707921v=1.0.0.js";import{u as w}from"./useTable-ad933c16-1783405707921v=1.0.0.js";import{u as x,P as D,b as T,_ as N}from"./index-71d7b18c-1783405707921v=1.0.0.js";import{u as O}from"./useGetCollage-bc6bc4bb-1783405707921v=1.0.0.js";import{g as U}from"./majorManageApi-836cbfa2-1783405707921v=1.0.0.js";import"./eleVendor-d42abce8-1783405707921v=1.0.0.js";import"./collageManageApi-e21931eb-1783405707921v=1.0.0.js";const V=()=>{const m=x(),{getCollageList:C,collageList:l,getPageCollageList:c}=O();d([]),(async()=>{})();const i=d([{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(D,{ref:"pageSelectRef",value:t.collegeId,"onUpdate:value":r=>t.collegeId=r,"remote-method":c},null)}}]),g=d([{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:i,tableColumns:g,dataCallBack:t=>(t.listData.forEach(r=>{}),t),paramCallBack:t=>t}},A=V,R=k({name:"majorManageIndex"}),$=k({...R,setup(m){const C=T(),l=x(),{tableColumns:c,columns:_,dataCallBack:i,paramCallBack:g}=A(),{tableData:h,pageable:n,baseParam:t,searchParam:r,totalParam:q,pageParam:G,handleSizeChange:I,handleCurrentChange:y,getTableList:v,search:B,reset:M,loading:z}=w(U,i,g);F(async()=>{r.value={schoolYearId:l.schoolYearId,semester:l.semester},await v()});const P=b=>{C.push({name:"majorManageDetail",query:{id:b.majorId}})};return(b,a)=>{const S=u("HZSearchForm"),E=u("el-link"),j=u("HZProTable"),H=u("el-pagination"),L=u("HZPageLayout");return Y(),Z(L,null,{searchForm:o(()=>[p(S,{"search-param":e(r),columns:e(_),search:e(B),reset:()=>{e(M)(null,{schoolYearId:e(l).schoolYearId,semester:e(l).semester})}},null,8,["search-param","columns","search","reset"])]),title:o(()=>a[2]||(a[2]=[f(" \u4E13\u4E1A\u7BA1\u7406 ",-1)])),pagination:o(()=>[p(H,{"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(I),onCurrentChange:e(y)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:o(()=>a[6]||(a[6]=[])),default:o(()=>[p(j,{columns:e(c),data:e(h),isFlex:!1,loading:e(z)},{tableHeader:o(()=>a[3]||(a[3]=[])),toolButton:o(()=>a[4]||(a[4]=[])),operation:o(s=>[p(E,{type:"primary",onClick:K=>P(s.row)},{default:o(()=>a[5]||(a[5]=[f(" \u67E5\u770B ",-1)])),_:2,__:[5]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const te=N($,[["__scopeId","data-v-613c5424"],["__file","D:/desktop/huaZhong/huazhong-common/apps/vue-admin/src/views/baseManage/majorManage/index.vue"]]);export{te as default};
