import{i as _}from"./signupApi-62c85298-1782572373740v=1.0.0.js";import{y as v,r as d,h as m,z as n,A as r,Q as y,a4 as f,B as o,P as c,u as h}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{_ as w}from"./index-f6f689f9-1782572373740v=1.0.0.js";import"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";const A={class:"dataviewBox"},k={class:"dataview-item"},D={class:"dataview-item-name"},F={class:"dataview-item-value"},g=v({__name:"SporterDataview",props:{eventApplyMainId:{default:null}},emits:[],setup(p,{emit:B}){const i=p;d({});const u=d([{name:"\u603B\u8FD0\u52A8\u5458\u6570\u91CF",value:0,key:"key_total"},{name:"\u7537\u8FD0\u52A8\u5458\u6570\u91CF",value:0,key:"1"},{name:"\u5973\u8FD0\u52A8\u5458\u6570\u91CF",value:0,key:"2"}]),l=async()=>{const e=await _({eventApplyMainId:i.eventApplyMainId});if(e.code===0&&e.data&&e.data.length>0){let t={};e.data.forEach(a=>{t[a.idKey]=a}),u.value.forEach(a=>{var s;a.value=((s=t[a.key])==null?void 0:s.num)||0})}};return m(()=>i.eventApplyMainId,(e,t)=>{e&&e!==t&&l()},{immediate:!0}),(e,t)=>(n(),r("div",A,[(n(!0),r(y,null,f(h(u),(a,s)=>(n(),r("div",{key:s,span:6,class:"dataview-card"},[o("div",k,[o("div",D,c(a.name),1),o("div",F,c(a.value),1)])]))),128))]))}});const M=w(g,[["__scopeId","data-v-aaad12ce"]]);export{M as default};
