import{u as Y}from"./useTable-cf8e962b-1782729249161v=1.0.0.js";import{u as $}from"./useHandleData-54f3fb4d-1782729249161v=1.0.0.js";import{b as U,u as M,a as O,_ as q}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{u as G}from"./useGetYear-c4555ce2-1782729249161v=1.0.0.js";import{r as c,R as l,O as m,al as r,y as E,m as J,z as y,I as x,J as n,u as e,k as K,M as R}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import{c as j,d as Q}from"./exerciseApi-12628a0b-1782729249161v=1.0.0.js";import{_ as X}from"./ExercisePeopleDialog.vue_vue_type_script_setup_true_lang-0a7bd820-1782729249161v=1.0.0.js";import"./notData-926f7286-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";import"./base-ea2d5d04-1782729249161v=1.0.0.js";import"./useGetCollage-54a32763-1782729249161v=1.0.0.js";const ee=()=>{const _=c(!1),s=c(-1),{academicYearOptions:g}=G(),h=U(),d=t=>{s.value=t.eventRecordRuleId,_.value=!0},b=c([{prop:"schoolYearId",label:"\u5B66\u5E74",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5B66\u5E74"},enum:g},{prop:"eventName",label:"\u8D5B\u4E8B\u540D\u79F0",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u8D5B\u4E8B\u540D\u79F0"}},{prop:"standard",label:"\u8BA4\u5B9A\u6807\u51C6",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u8BA4\u5B9A\u6807\u51C6"},enum:h.getEnumListByKey("standard")}]),f=c([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{prop:"schoolYearName",label:"\u5B66\u5E74",minWidth:100},{prop:"eventName",label:"\u8D5B\u4E8B\u540D\u79F0",minWidth:150},{prop:"standardCn",label:"\u8BA4\u5B9A\u6807\u51C6",minWidth:120},{prop:"recordNum",label:"\u8BB0\u5F55\u6B21\u6570",minWidth:100},{prop:"personList",label:"\u4EBA\u5458\u540D\u5355",minWidth:200,render:t=>l(r("el-link"),{type:"primary",onClick:()=>d(t.row)},{default:()=>[t.row.num,m("\u4EBA")]})},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:b,tableColumns:f,dataCallBack:t=>(t.listData.forEach(C=>{}),t),paramCallBack:t=>t,dialogVisible:_,handleViewPersonList:d,curEventRecordRuleId:s}},ae=ee,te=E({name:"exerciseIndex"}),ne=E({...te,setup(_){const s=M(),g=O(),{tableColumns:h,columns:d,dataCallBack:b,paramCallBack:f,dialogVisible:i,handleViewPersonList:B,curEventRecordRuleId:t}=ae(),{tableData:C,pageable:u,baseParam:oe,searchParam:w,totalParam:le,pageParam:re,handleSizeChange:z,handleCurrentChange:I,getTableList:v,search:P,reset:H,loading:L}=Y(j,b,f),S=()=>{s.push({name:"exerciseAdd"})},V=p=>{s.push({name:"exerciseEdit",query:{id:p.eventRecordRuleId}})},F=async p=>{let a="\u5220\u9664\u5F53\u524D\u6570\u636E";await $(Q,{id:p.eventRecordRuleId},a),v()};return J(async()=>{C.value=[{id:1}],await v()}),(p,a)=>{const N=r("HZSearchForm"),D=r("el-button"),k=r("el-link"),Z=r("HZProTable"),T=r("el-pagination"),W=r("HZPageLayout");return y(),x(W,{title:e(g).meta.title},{searchForm:n(()=>[l(N,{"search-param":e(w),columns:e(d),search:e(P),reset:e(H)},null,8,["search-param","columns","search","reset"])]),pagination:n(()=>[l(T,{"current-page":e(u).page,"onUpdate:currentPage":a[0]||(a[0]=o=>e(u).page=o),"page-size":e(u).size,"onUpdate:pageSize":a[1]||(a[1]=o=>e(u).size=o),"page-sizes":[10,20,50,100],background:"",layout:"total, sizes, prev, pager, next",total:e(u).count,onSizeChange:e(z),onCurrentChange:e(I)},null,8,["current-page","page-size","total","onSizeChange","onCurrentChange"])]),dialog:n(()=>[e(i)?(y(),x(X,{key:0,visible:e(i),"onUpdate:visible":a[2]||(a[2]=o=>K(i)?i.value=o:null),eventRecordRuleId:e(t),title:"\u4EBA\u5458\u540D\u5355"},null,8,["visible","eventRecordRuleId"])):R("v-if",!0)]),default:n(()=>[l(Z,{columns:e(h),data:e(C),isFlex:!1,loading:e(L)},{tableHeader:n(()=>a[3]||(a[3]=[])),toolButton:n(()=>[l(D,{type:"primary",onClick:S},{default:n(()=>a[4]||(a[4]=[m(" \u65B0\u589E ",-1)])),_:1,__:[4]})]),operation:n(o=>[R(' <el-link type="primary" @click="handleView(scope.row)"> \u67E5\u770B </el-link> '),l(k,{type:"primary",onClick:A=>V(o.row)},{default:n(()=>a[5]||(a[5]=[m(" \u7F16\u8F91 ",-1)])),_:2,__:[5]},1032,["onClick"]),l(k,{type:"danger",onClick:A=>F(o.row)},{default:n(()=>a[6]||(a[6]=[m(" \u5220\u9664 ",-1)])),_:2,__:[6]},1032,["onClick"])]),_:1},8,["columns","data","loading"])]),_:1},8,["title"])}}});const fe=q(ne,[["__scopeId","data-v-3add27a4"]]);export{fe as default};
