import{p as b,q as I,_ as D}from"./index-5a47c360-1785478469326v=1.0.0.js";import{k as T,E as k}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";import{x as C,r as o,Q as d,k as L,al as M,y as p,z as u,I as m,u as s,M as _,A as i,O as N,L as P}from"./vendor-46662d77-1785478469326v=1.0.0.js";const S={key:0,class:"tip"},B={style:{color:"#1172cd","margin-left":"5px"}},R={class:"num"},V=C({__name:"ExtracurricularExercise",props:{tsId:{default:""},searchParam:{default:{}}},emits:[],setup(f,{expose:x,emit:Y}){const a=f,v=o([{label:"\u65E5\u671F",prop:"exerciseDate",render:({row:e})=>d("span",null,[T(e.exerciseDate).format("YYYY-MM-DD")])},{label:"\u8BFE\u5916\u953B\u70BC\u7C7B\u578B",prop:"exerciseTypeCn"},{label:"\u9879\u76EE",prop:"sportEvent"},{label:"\u6B21\u6570",prop:"exerciseNum"}]),l=o([]),r=o(!1),y=async()=>{try{r.value=!0;const e=await b({tsId:a.tsId,...a.searchParam});e.code===0&&(l.value=e.data.listData||[])}catch(e){k.error(e)}finally{r.value=!1}},n=o(""),E=async()=>{const e=await I({tsId:a.tsId,...a.searchParam});e.code===0&&(n.value=e.data)},c=()=>{y(),E()};return L(()=>{c()}),x({initData:c}),(e,t)=>{const g=M("HZProTable");return p(),u("div",null,[d(g,{columns:s(v),data:s(l),isFlex:!1,loading:s(r)},{tableHeader:m(()=>[typeof s(n)=="number"?(p(),u("div",S,[t[1]||(t[1]=_(" \u8DDD\u79BB\u8BFE\u5916\u4F53\u80B2\u953B\u70BC\u6EE1\u5206\u4ECD\u5DEE ",-1)),i("span",B,[i("span",R,N(s(n)),1),t[0]||(t[0]=_(" \u6B21",-1))])])):P("v-if",!0)]),toolButton:m(()=>t[2]||(t[2]=[i("div",{class:"kindReminder"},"\u6E29\u99A8\u63D0\u793A\uFF1A\u8BFE\u7A0B\u6570\u636E\u540C\u6B65\u4F1A\u6709\u5EF6\u8FDF",-1)])),_:1},8,["columns","data","loading"])])}}});const Z=D(V,[["__scopeId","data-v-11ad219c"]]);export{Z as default};
