import{o as u}from"./index-5a47c360-1785478469326v=1.0.0.js";import{E as f}from"./eleVendor-bc05bc4d-1785478469326v=1.0.0.js";import{x as b,r as a,k as v,al as _,y as C,z as x,Q as E,I as p,L as g,u as o}from"./vendor-46662d77-1785478469326v=1.0.0.js";const D=b({__name:"EventActivities",props:{tsId:{default:""},searchParam:{default:{}}},emits:[],setup(c,{expose:i,emit:y}){const n=c,t=a(!1),m=a([{label:"\u8D5B\u4E8B\u65E5\u671F",prop:"eventDate"},{label:"\u8D5B\u4E8B\u540D\u79F0",prop:"name"},{label:"\u9879\u76EE",prop:"sportEventCn"},{label:"\u8D5B\u4E8B\u7C7B\u578B",prop:"eventTypeCn"},{label:"\u6210\u7EE9",prop:"awardCn"}]),s=a([]),r=async()=>{t.value=!0;try{const e=await u({tsId:n.tsId,...n.searchParam});e.code===0&&(s.value=e.data.listData||[])}catch(e){f.error(e)}finally{t.value=!1}};return v(()=>{r()}),i({initData:r}),(e,l)=>{const d=_("HZProTable");return C(),x("div",null,[E(d,{columns:o(m),data:o(s),isFlex:!1,loading:o(t)},{tableHeader:p(()=>l[0]||(l[0]=[])),toolButton:p(()=>[g(' <el-button @click="handleExport"> \u5BFC\u51FA </el-button> ')]),_:1},8,["columns","data","loading"])])}}});export{D as _};
