import{u as v}from"./useTable-967985a7-1785478469326v=1.0.0.js";import{u as H,c as I,_ as w}from"./index-5a47c360-1785478469326v=1.0.0.js";import{r as m,x as _,k as F,al as s,y as L,H as N,I as t,Q as u,u as a,M as g,L as V}from"./vendor-46662d77-1785478469326v=1.0.0.js";import{b as Z}from"./sportsTargetApi-e7a26b67-1785478469326v=1.0.0.js";import"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";const A=()=>{H();const i=m([]),l=m([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u5B66\u5E74",prop:"schoolYearName"},{label:"\u5B66\u671F",prop:"semesterCn"},{label:"\u6700\u540E\u4FEE\u6539\u65F6\u95F4",prop:"createTime"},{label:"\u4FEE\u6539\u4EBA",prop:"creatorName"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:i,tableColumns:l,dataCallBack:o=>(o.listData.forEach(c=>{}),o),paramCallBack:o=>o}},D=A,Y=_({name:"sportsTargetIndex"}),M=_({...Y,setup(i){const l=I(),{tableColumns:d,columns:C,dataCallBack:o,paramCallBack:c}=D(),{tableData:b,pageable:n,baseParam:U,searchParam:$,totalParam:q,pageParam:Q,handleSizeChange:f,handleCurrentChange:k,getTableList:x,search:R,reset:j,loading:y}=v(Z,o,c);F(async()=>{await x()});const B=()=>{l.push({name:"sportsTargetAdd"})},h=p=>{l.push({name:"sportsTargetEdit",query:{id:p.targetConfId,schoolYearId:p.schoolYearId,semester:p.semester}})};return(p,e)=>{const T=s("el-button"),E=s("el-link"),z=s("HZProTable"),P=s("el-pagination"),S=s("HZPageLayout");return L(),N(S,{title:"\u4F53\u80B2\u5DE5\u4F5C\u76EE\u6807\u7BA1\u7406"},{pagination:t(()=>[u(P,{"current-page":a(n).page,"onUpdate:currentPage":e[0]||(e[0]=r=>a(n).page=r),"page-size":a(n).size,"onUpdate:pageSize":e[1]||(e[1]=r=>a(n).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(n).count,onSizeChange:a(f),onCurrentChange:a(k)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:t(()=>e[5]||(e[5]=[])),default:t(()=>[u(z,{columns:a(d),data:a(b),isFlex:!1,loading:a(y)},{tableHeader:t(()=>e[2]||(e[2]=[])),toolButton:t(()=>[u(T,{type:"primary",onClick:B},{default:t(()=>e[3]||(e[3]=[g(" \u65B0\u589E\u76EE\u6807 ",-1)])),_:1,__:[3]})]),operation:t(r=>[V(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> '),u(E,{type:"primary",onClick:G=>h(r.row)},{default:t(()=>e[4]||(e[4]=[g(" \u7F16\u8F91 ",-1)])),_:2,__:[4]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1})}}});const ee=w(M,[["__scopeId","data-v-55abd6aa"]]);export{ee as default};
