import{bW as r}from"./index-CZJgrp0v.js";const o=r("app-unit-form",{state(){return{eventTermProjectOptions:[],unitInfo:{},leaderInfo:{},doctorInfo:{},coachInfo:{},judgeInfo:{},volunteerInfo:{},registerInfo:{},leaderList:[],doctorList:[],coachList:[],judgeList:[],volunteerList:[],registerList:[],currentEventApplyMainId:null}},actions:{setEventTermProjectOptions(t){this.eventTermProjectOptions=t},setCurrentEventApplyMainId(t){this.currentEventApplyMainId=t},setBaseInfoByType(t,s){s=="leader"&&(this.leaderInfo=t),s=="coach"&&(this.coachInfo=t),s=="doctor"&&(this.doctorInfo=t),s=="judge"&&(this.judgeInfo=t),s=="volunteer"&&(this.volunteerInfo=t),s=="register"&&(this.registerInfo=t),s=="unit"&&(this.unitInfo=t)},pushEditUserListByType(t,s){s=="leader"&&this.leaderList.push(t),s=="coach"&&this.coachList.push(t),s=="doctor"&&this.doctorList.push(t),s=="judge"&&this.judgeList.push(t),s=="volunteer"&&this.volunteerList.push(t),s=="register"&&this.registerList.push(t)},setEditUserListByType(t,s,e){s=="leader"&&(this.leaderList[e]=t),s=="coach"&&(this.coachList[e]=t),s=="doctor"&&(this.doctorList[e]=t),s=="judge"&&(this.judgeList[e]=t),s=="volunteer"&&(this.volunteerList[e]=t),s=="register"&&(this.registerList[e]=t)},deleteEditUserListByType(t,s){t=="leader"&&this.leaderList.splice(s,1),t=="coach"&&this.coachList.splice(s,1),t=="doctor"&&this.doctorList.splice(s,1),t=="judge"&&this.judgeList.splice(s,1),t=="volunteer"&&this.volunteerList.splice(s,1),t=="register"&&this.registerList.splice(s,1)},getEditUserInfoByType(t,s){let e={};return s=Number(s),t=="leader"&&(e=this.leaderList[s]),t=="coach"&&(e=this.coachList[s]),t=="doctor"&&(e=this.doctorList[s]),t=="judge"&&(e=this.judgeList[s]),t=="volunteer"&&(e=this.volunteerList[s]),t=="register"&&(e=this.registerList[s]),e},clearAll(){this.leaderList=[],this.coachList=[],this.doctorList=[],this.judgeList=[],this.volunteerList=[],this.registerList=[],this.currentEventApplyMainId=null}}});export{o as u};
