import{_ as y,c as f,w as e,j as h,o as c,k as t,q as w,B as p,p as u,t as i,a1 as P,L as v,i as m,ab as d}from"./index-CZJgrp0v.js";const g={name:"VolunteerReviewItem",props:{item:{type:Object,default:()=>({type:1,status:1,title:"默认标题",unit:"未知单位",time:"未知时间"})}},data(){return{typeKeyMap:{eventCreate:{label:"赛事创建",backGround:"linear-gradient(313deg, #D169F9 0%, #FF5387 100%)"},volunteer:{label:"志愿者报名",backGround:"linear-gradient(313deg, #67E3BF 0%, #09AC89 100%)"},referee:{label:"裁判员报名",backGround:"linear-gradient(313deg, #FF933E 0%, #F46161 100%)"}}}},computed:{typeKey(){return this.$route.query.typeKey},tagText(){var a;return((a=this.typeKeyMap[this.typeKey])==null?void 0:a.label)||"未知类型"},rowLabel(){return{1:"提交单位",2:"志愿者姓名",3:"裁判员姓名",4:"参赛姓名"}[this.item.type]||"提交单位"},statusText(){return{1:"待审核",2:"已通过","-1":"已驳回"}[this.item.status]||"未知状态"}}};function b(a,A,n,T,_,s){const l=w,r=h;return c(),f(r,{class:"volunteer-review-item-container"},{default:e(()=>[t(r,{class:"volunteer-review-item-header"},{default:e(()=>[t(r,{class:"volunteer-review-item-header-left"},{default:e(()=>{var o;return[t(l,{class:"volunteer-review-item-tag",style:p({background:(o=_.typeKeyMap[s.typeKey])==null?void 0:o.backGround})},{default:e(()=>[u(i(s.tagText),1)]),_:1},8,["style"]),t(l,{class:"volunteer-review-item-title"},{default:e(()=>[u(i(n.item.title),1)]),_:1})]}),_:1}),t(r,{class:"volunteer-review-item-header-right"},{default:e(()=>[t(l,{class:P(["volunteer-review-item-status",`status-${n.item.status}`])},{default:e(()=>[u(i(s.statusText),1)]),_:1},8,["class"])]),_:1})]),_:1}),t(r,{class:"volunteer-review-item-body"},{default:e(()=>[s.typeKey==="volunteer"||s.typeKey==="referee"?(c(),v("div",{key:0},[t(r,{class:"volunteer-review-item-row"},{default:e(()=>[t(l,null,{default:e(()=>[u("活动名称：")]),_:1}),t(l,null,{default:e(()=>[u(i(n.item.recruitName),1)]),_:1})]),_:1}),t(r,{class:"volunteer-review-item-row"},{default:e(()=>[t(l,null,{default:e(()=>[u("报名人：")]),_:1}),t(l,null,{default:e(()=>[u(i(n.item.name),1)]),_:1})]),_:1}),t(r,{class:"volunteer-review-item-row"},{default:e(()=>[t(l,null,{default:e(()=>[u("服务时段：")]),_:1}),t(l,null,{default:e(()=>[u(i(n.item.serviceTime),1)]),_:1})]),_:1}),t(r,{class:"volunteer-review-item-row"},{default:e(()=>[t(l,null,{default:e(()=>[u("提交时间：")]),_:1}),t(l,null,{default:e(()=>[u(i(n.item.createTime),1)]),_:1})]),_:1})])):m("",!0),s.typeKey==="eventCreate"?(c(),v("div",{key:1},[t(r,{class:"volunteer-review-item-row"},{default:e(()=>[t(l,null,{default:e(()=>[u("提交单位 ：")]),_:1}),t(l,null,{default:e(()=>[u(i(n.item.submitSchUnit),1)]),_:1})]),_:1}),t(r,{class:"volunteer-review-item-row"},{default:e(()=>[t(l,null,{default:e(()=>[u("提交时间：")]),_:1}),t(l,null,{default:e(()=>[u(i(n.item.createTime),1)]),_:1})]),_:1})])):m("",!0)]),_:1})]),_:1})}const k=y(g,[["render",b],["__scopeId","data-v-46b31258"]]),S=a=>d({url:"/javaPpoEventactivity/audit/auditPass",method:"POST",data:a}),K=a=>d({url:"/javaPpoEventactivity/audit/auditFailure",method:"POST",data:a}),E=a=>d({url:"/javaPpoEventactivity/event/auditAuthPageSum",method:"POST",data:a}),F=a=>d({url:"/javaPpoEventactivity/event/auditAuthPage",method:"POST",data:a}),j=a=>d({url:"/javaPpoEventactivity/eventApplyMain/auditAuthPage",method:"POST",data:a}),M=a=>d({url:"/javaPpoEventactivity/event/auditAuthPageAll",method:"POST",data:a});export{k as V,S as a,K as b,E as c,F as d,j as e,M as f};
