var v=(e,a,o)=>new Promise((c,n)=>{var _=t=>{try{s(o.next(t))}catch(r){n(r)}},m=t=>{try{s(o.throw(t))}catch(r){n(r)}},s=t=>t.done?c(t.value):Promise.resolve(t.value).then(_,m);s((o=o.apply(e,a)).next())});import{_ as q,c as d,w as u,P as w,a0 as M,bX as N,f as h,C as $,E as L,o as p,Q as g,k as i,j as k,i as y,L as f,M as P,N as R,a6 as E,a7 as x}from"./index-CZJgrp0v.js";import{_ as A}from"./uv-input.Ch8KxUbS.js";import{l as S}from"./listMixins.CccSbMD4.js";import{i as V}from"./eventJava.C13-6nEn.js";import{Q as D}from"./qrCodeCard.BrCchEfY.js";const G={name:"ApplyHostory",mixins:[S],components:{qrCodeCard:D},data(){return{activeStatus:"all",showReasonPopup:!1,rejectReason:"",records:[],pageParams:{},tsName:""}},computed:{},onLoad(e){console.log({options:e})},mounted(){this.getList()},methods:{getList(){return v(this,null,function*(){const e=yield V({page:this.page,size:5,eventId:this.$route.query.eventId,eventTermId:this.$route.query.eventTermId,eventGroupId:this.$route.query.eventGroupId,eventApplyMainId:this.$route.query.eventApplyMainId,tsName:this.tsName});this.getListExtend(e)})},previewImage(e){N(e)},navigateToDetail(e){M({url:`/pages/matchPart/matchGrade/detail?id=${e.eventId}&eventApplyId=${e.eventApplyId}&eventTermId=${e.eventTermId}&eventGroupId=${e.eventGroupId}`})},handleTagClick(e){console.log({e}),this.activeStatus=e.name},showReason(e){this.rejectReason=e||"暂无具体原因",this.showReasonPopup=!0},closeReasonPopup(){this.showReasonPopup=!1},handleReapply(e){console.log("重新申请"+this.getTypeText(e)),w({title:"前往"+this.getTypeText(e)+"重新申请",icon:"none"})},getTypeText(e){return{referee:"裁判员",athlete:"运动员",volunteer:"志愿者"}[e]||""},getStatusText(e){return{passed:"已通过",rejected:"未通过",pending:"待审核"}[e]||""},getCoverImage(){return"/static/images/myModulePart/test.png"},formatTime(e){return e}}};function b(e,a,o,c,n,_){const m=$(L("uv-input"),A),s=k,t=h("qr-code-card"),r=E,I=x,T=h("layout-default-uni");return p(),d(T,null,{default:u(()=>[g("div",{class:"outerContainer"},[i(s,{class:"container"},{default:u(()=>[i(s,{class:"top-search-bar"},{default:u(()=>[i(m,{modelValue:n.tsName,"onUpdate:modelValue":a[0]||(a[0]=l=>n.tsName=l),placeholder:"请输入参赛人姓名搜索",clearable:"",onConfirm:e.resetData,onSearch:e.resetData,onClear:a[1]||(a[1]=()=>{this.tsName="",this.resetData()}),shape:"circle"},null,8,["modelValue","onConfirm","onSearch"])]),_:1}),i(s,{class:"record-list"},{default:u(()=>[g("div",{class:"qrList"},[(p(!0),f(P,null,R(e.list,(l,C)=>(p(),f("div",{class:"qrItem",key:C+"qrItem"},[i(t,{name:l.name,no:l.tsNo,"qr-url":l.checkEnterQrUrl},null,8,["name","no","qr-url"])]))),128))]),e.showEmpty?(p(),d(r,{key:0,marginTop:45})):y("",!0),e.showLoadMore?(p(),d(I,{key:1,status:e.loadStatus},null,8,["status"])):y("",!0)]),_:1})]),_:1})])]),_:1})}const H=q(G,[["render",b],["__scopeId","data-v-8e274e6b"]]);export{H as default};
