import{u as A}from"./useTable-34acff72-1782572373740v=1.0.0.js";import{u as $}from"./useHandleData-64cc6aad-1782572373740v=1.0.0.js";import{b as U,u as j,a as M,_ as q}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{u as J}from"./useGetYear-5b3908a7-1782572373740v=1.0.0.js";import{u as K}from"./useGetDIct-7b6bc50c-1782572373740v=1.0.0.js";import{r as u,R as s,O as d,al as n,y as x,m as Q,z as v,I as E,J as o,u as a,k as W,B as X,M as ee}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{b as ae,d as te}from"./offCampusGradeApi-a03fdc28-1782572373740v=1.0.0.js";import oe from"./index-e049e929-1782572373740v=1.0.0.js";import"./notData-cef8761e-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import"./base-f440e6a9-1782572373740v=1.0.0.js";const re=_=>{const i=U(),{academicYearOptions:c}=J(),{dictlist:m}=K("sprot_project");u([]),(async()=>{})(),u([]),(async()=>{})(),u([]),(async()=>{})();const g=u([{prop:"schoolYearId",label:"\u5B66\u5E74",isFilterEnum:!0,enum:c,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74"}},{prop:"eventName",label:"\u8D5B\u4E8B\u540D\u79F0",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u8D5B\u4E8B\u540D\u79F0"}},{prop:"gradeType",label:"\u8D5B\u4E8B\u7C7B\u578B",isFilterEnum:!0,enum:i.getEnumListByKey("gradeType"),search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u8D5B\u4E8B\u7C7B\u578B"}},{prop:"sportsIds",label:"\u8FD0\u52A8\u9879\u76EE",isFilterEnum:!0,enum:m,search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u8FD0\u52A8\u9879\u76EE",props:{multiple:!0}}}]),f=u([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u8D5B\u4E8B\u7C7B\u578B",prop:"gradeTypeCn"},{label:"\u8D5B\u4E8B\u540D\u79F0",prop:"eventName"},{label:"\u8FD0\u52A8\u9879\u76EE",prop:"sportsNames"},{label:"\u5B66\u5E74",prop:"schoolYearName"},{label:"\u8D5B\u4E8B\u6210\u7EE9",prop:"gradeRecordNum",render:t=>s(n("el-link"),{type:"primary",onClick:()=>{_(t.row)},style:{whiteSpace:"normal",wordBreak:"break-all",lineHeight:"20px"}},{default:()=>[t.row.gradeRecordNum,d("\u4EBA")]})},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:g,tableColumns:f,dataCallBack:t=>(t.listData.forEach(w=>{}),t),paramCallBack:t=>(t.sportsIds&&(t.sportsIds=t.sportsIds.join(",")),t)}},se=re,ne={class:"dialog-footer"},le=x({name:"offCampusGradeIndex"}),ue=x({...le,setup(_){const i=j(),c=M(),m=u(""),l=u(!1),C=p=>{l.value=!0,m.value=p.gradeId},{tableColumns:b,columns:g,dataCallBack:f,paramCallBack:h}=se(C),{tableData:y,pageable:t,baseParam:w,searchParam:S,totalParam:pe,pageParam:de,handleSizeChange:G,handleCurrentChange:N,getTableList:k,search:O,reset:z,loading:F}=A(ae,f,h);Q(async()=>{await k()});const T=()=>{i.push({name:"offCampusGradeAdd"})},D=p=>{i.push({name:"offCampusGradeEdit",query:{id:p.gradeId}})},H=async p=>{let e="\u5220\u9664\u5F53\u524D\u6570\u636E";await $(te,{id:p.gradeId},e),k()};return(p,e)=>{const P=n("HZSearchForm"),B=n("el-button"),I=n("el-link"),R=n("HZProTable"),V=n("el-pagination"),Y=n("el-dialog"),Z=n("HZPageLayout");return v(),E(Z,{title:a(c).meta.title},{searchForm:o(()=>[s(P,{"search-param":a(S),columns:a(g),search:a(O),reset:a(z)},null,8,["search-param","columns","search","reset"])]),pagination:o(()=>[s(V,{"current-page":a(t).page,"onUpdate:currentPage":e[0]||(e[0]=r=>a(t).page=r),"page-size":a(t).size,"onUpdate:pageSize":e[1]||(e[1]=r=>a(t).size=r),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:a(t).count,onSizeChange:a(G),onCurrentChange:a(N)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:o(()=>[s(Y,{modelValue:a(l),"onUpdate:modelValue":e[3]||(e[3]=r=>W(l)?l.value=r:null),title:"\u8D5B\u4E8B\u6210\u7EE9\u8BE6\u60C5",width:"70%"},{footer:o(()=>[X("div",ne,[s(B,{onClick:e[2]||(e[2]=r=>l.value=!1)},{default:o(()=>e[8]||(e[8]=[d("\u786E\u5B9A",-1)])),_:1,__:[8]})])]),default:o(()=>[a(l)?(v(),E(oe,{key:0,gradeId:a(m),showForm:!1},null,8,["gradeId"])):ee("v-if",!0)]),_:1},8,["modelValue"])]),default:o(()=>[s(R,{columns:a(b),data:a(y),isFlex:!1,loading:a(F)},{tableHeader:o(()=>e[4]||(e[4]=[])),toolButton:o(()=>[s(B,{type:"primary",onClick:T},{default:o(()=>e[5]||(e[5]=[d(" \u65B0\u589E ",-1)])),_:1,__:[5]})]),operation:o(r=>[s(I,{type:"primary",onClick:L=>D(r.row)},{default:o(()=>e[6]||(e[6]=[d(" \u7F16\u8F91 ",-1)])),_:2,__:[6]},1032,["onClick"]),s(I,{type:"danger",onClick:L=>H(r.row)},{default:o(()=>e[7]||(e[7]=[d(" \u5220\u9664 ",-1)])),_:2,__:[7]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const Be=q(ue,[["__scopeId","data-v-78b3aaf7"]]);export{Be as default};
