import{c as C}from"./index-d6ee182a.js";import{s as w}from"./index-264c9d8d.js";import{g as S}from"./index-7e3b9e04.js";import{_ as E}from"./_plugin-vue_export-helper-c27b6911.js";import{r,o as k,E as D,f as g,a as p,c as m,h as o,t as a,F as j,j as b,k as B,w as n,g as c,z as P}from"./index-ad591d72.js";import"./request-2786ead7.js";import"./axios-4a70c6fc.js";const N={class:"",style:{padding:"20px"}},Z={class:""},z={class:""},A={class:""},L={class:""},M={class:""},V={__name:"chipShow",setup(F){const l=r(""),_=r([]),d=r([]),i=r([]);k(()=>{y(),v(),h()}),setInterval(()=>{h()},1e3);const h=()=>{C().then(t=>{if(console.log(t),!t.Err&&t.ChipData.length!=0){d.value=t.ChipData;const u=_.value.filter(e=>d.value.some(f=>f.ChipCode.toLowerCase()===e.ChipCode.toLowerCase()));i.value=u,console.log("匹配的参与者:",i.value)}})},y=()=>{S().then(t=>{t.Err?D({message:t.Err,grouping:!0,type:"error"}):(_.value=t.Participants,console.log(t.Participants))})};let v=()=>{w({Category:"zoneAutoCheckZone"}).then(t=>{console.log(t),!t.Err&&t.settings.length!=0&&(l.value=t.settings[0].Value)})};return(t,u)=>{const e=g("el-col"),f=g("el-row");return p(),m("div",N,[o("div",null,"所属区域:"+a(l.value)+"区",1),(p(!0),m(j,null,b(i.value,(s,x)=>(p(),B(f,{key:x,style:P([{"margin-top":"20px"},{backgroundColor:s.StartZone===l.value?"green":"red"}])},{default:n(()=>[c(e,{span:5,style:{color:"#ffffff",height:"50px",display:"flex","align-items":"center","justify-content":"center"}},{default:n(()=>[o("div",Z,a(s.Bib),1)]),_:2},1024),c(e,{span:5,style:{color:"#ffffff",height:"50px",display:"flex","align-items":"center","justify-content":"center"}},{default:n(()=>[o("div",z,a(s.Gender=="M"?"男":"女"),1)]),_:2},1024),c(e,{span:5,style:{color:"#ffffff",height:"50px",display:"flex","align-items":"center","justify-content":"center"}},{default:n(()=>[o("div",A,a(s.Contest),1)]),_:2},1024),c(e,{span:5,style:{color:"#ffffff",height:"50px",display:"flex","align-items":"center","justify-content":"center"}},{default:n(()=>[o("div",L,a(s.Name),1)]),_:2},1024),c(e,{span:4,style:{color:"#ffffff",height:"50px",display:"flex","align-items":"center","justify-content":"center"}},{default:n(()=>[o("div",M,a(s.StartZone)+"区",1)]),_:2},1024)]),_:2},1032,["style"]))),128))])}}},Q=E(V,[["__scopeId","data-v-0012b56c"]]);export{Q as default};
