import{u as K}from"./useTable-967985a7-1785478469326v=1.0.0.js";import R from"./Dataview-5dfe71cb-1785478469326v=1.0.0.js";import{u as T}from"./useSportsInformationList-19d44015-1785478469326v=1.0.0.js";import{c as Y,H as Z,B as V,_ as M}from"./index-5a47c360-1785478469326v=1.0.0.js";import{E as f}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";import{x as y,r as _,k as G,al as u,y as O,H as U,I as r,Q as n,u as a,L as j,M as q}from"./vendor-46662d77-1785478469326v=1.0.0.js";import"./index-e26c4070-1785478469326v=1.0.0.js";import"./useGetCollage-5696f774-1785478469326v=1.0.0.js";import"./useGetClass-6f71fc48-1785478469326v=1.0.0.js";import"./warnConfApi-c3a5d645-1785478469326v=1.0.0.js";const Q=y({name:"sportsInformationListIndex"}),W=y({...Q,setup($){const v=Y(),C=(t,e)=>{o.value[t]=e},{tableColumns:B,columns:x,dataCallBack:h,paramCallBack:i,getAcademicYearList:E,initYear:p,innerSearchParam:J}=T(C),{tableData:F,pageable:l,baseParam:X,searchParam:o,totalParam:ee,pageParam:ae,handleSizeChange:k,handleCurrentChange:I,getTableList:d,search:S,reset:te,loading:b}=K(V,h,i);_({});const g=_([{title:"\u603B\u4EBA\u6570",value:0,compare:0,suffix:"",key:"total",compareKey:"compareTotal"},{title:"\u9884\u8B66\u4EBA\u6570",value:0,compare:0,suffix:"",key:"warnNum",compareKey:"compareWarnNum"},{title:"\u4F53\u80B2\u8BFE\u901A\u8FC7\u7387",value:0,compare:0,suffix:"%",key:"courseGradeStatusRate",compareKey:"compareCourseGradeStatusRate"},{title:"\u4F53\u6D4B\u53CA\u683C\u7387",value:0,compare:0,suffix:"%",key:"fitnessTestScoreRate",compareKey:"compareFitnessTestScoreRate"},{title:"\u8BFE\u5916\u4F53\u80B2\u953B\u70BC\u6EE1\u5206\u7387",value:0,compare:0,suffix:"%",key:"exerciseCompletedRate",compareKey:"compareExerciseCompletedRate"},{title:"\u8D5B\u4E8B\u6D3B\u52A8\u53C2\u4E0E\u4EBA\u6570",value:0,compare:0,suffix:"",key:"eventNum",compareKey:"compareEventNum"},{title:"\u573A\u9986\u4F7F\u7528\u6B21\u6570",value:0,compare:0,suffix:"",key:"venueNum",compareKey:"compareVenueNum"}]),m=async()=>{try{const t={...o.value};t.collegeId===-1&&delete t.collegeId;const e=await Z(t);e.code===0?g.value.forEach(s=>{s.value=e.data[s.key],s.compare=e.data[s.compareKey]}):f.error(e.msg)}catch(t){f.error(t)}},L=()=>{m(),S()},P=()=>{o.value={schoolYearId:p.value,semester:"0",collegeId:""},m(),d()};G(async()=>{await E(),o.value={schoolYearId:p.value,semester:"0",collegeId:""},d(),m()});const z=t=>{v.push({name:"sportsInformationListDetail",query:{id:t.tsId,name:t.name,schoolYearId:Number(o.value.schoolYearId),semester:o.value.semester}})};return(t,e)=>{const s=u("HZSearchForm"),A=u("PercentageExport"),N=u("el-link"),H=u("HZProTable"),w=u("el-pagination"),D=u("HZPageLayout");return O(),U(D,{title:"\u4F53\u80B2\u4FE1\u606F\u6570\u636E\u5217\u8868"},{searchForm:r(()=>[n(s,{"search-param":a(o),columns:a(x),search:L,reset:P},null,8,["search-param","columns"])]),pagination:r(()=>[n(w,{"current-page":a(l).page,"onUpdate:currentPage":e[0]||(e[0]=c=>a(l).page=c),"page-size":a(l).size,"onUpdate:pageSize":e[1]||(e[1]=c=>a(l).size=c),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next, jumper",total:a(l).count,onSizeChange:a(k),onCurrentChange:a(I)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:r(()=>e[4]||(e[4]=[])),default:r(()=>[n(R,{dataList:a(g)},null,8,["dataList"]),n(H,{columns:a(B),data:a(F),loading:a(b),isFlex:!1},{tableHeader:r(()=>e[2]||(e[2]=[])),toolButton:r(()=>[n(A,{style:{"margin-right":"10px"},type:"synSportInfo",params:{...a(i)(a(o))},label:"\u5BFC\u51FA"},null,8,["params"]),j(' <el-button @click="handleExport"> \u5BFC\u51FA </el-button> ')]),operation:r(c=>[n(N,{type:"primary",onClick:oe=>z(c.row)},{default:r(()=>e[3]||(e[3]=[q(" \u67E5\u770B ",-1)])),_:2,__:[3]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const ge=M(W,[["__scopeId","data-v-b7cc2e68"]]);export{ge as default};
