회원 유형 버그 수정
This commit is contained in:
@@ -89,7 +89,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="field col-6 mb-3">
|
<div class="field col-6 mb-3">
|
||||||
<label for="memberType" class="mb-1">회원 유형</label>
|
<label for="memberType" class="mb-1">회원 유형</label>
|
||||||
<Select id="memberType" v-model="member.memberType" :options="filteredMemberTypeOptions" optionLabel="name" optionValue="code" placeholder="회원 유형 선택" class="w-full" :disabled="member.memberType === 'owner'" />
|
<Select id="memberType" v-model="member.memberType" :options="filteredMemberTypeOptions" optionLabel="name" optionValue="value" placeholder="회원 유형 선택" class="w-full" :disabled="member.memberType === 'owner'" />
|
||||||
</div>
|
</div>
|
||||||
<div class="field col-6 mb-3">
|
<div class="field col-6 mb-3">
|
||||||
<label for="phone" class="mb-1">전화번호</label>
|
<label for="phone" class="mb-1">전화번호</label>
|
||||||
@@ -202,9 +202,13 @@ import {
|
|||||||
getMemberTypeLabel,
|
getMemberTypeLabel,
|
||||||
getStatusLabel
|
getStatusLabel
|
||||||
} from '@/utils/enumMappings';
|
} from '@/utils/enumMappings';
|
||||||
// 모임장(owner) 옵션을 제외한 회원 유형 옵션만 노출
|
// 회원 유형 옵션 - 현재 회원이 owner인 경우 모임장 옵션 포함, 그렇지 않은 경우 제외
|
||||||
const filteredMemberTypeOptions = computed(() => MEMBER_TYPE_OPTIONS.filter(opt => opt.value !== 'owner'));
|
const filteredMemberTypeOptions = computed(() => {
|
||||||
|
if (member.value?.memberType === 'owner') {
|
||||||
|
return MEMBER_TYPE_OPTIONS;
|
||||||
|
}
|
||||||
|
return MEMBER_TYPE_OPTIONS.filter(opt => opt.value !== 'owner');
|
||||||
|
});
|
||||||
const clubStore = useClubStore();
|
const clubStore = useClubStore();
|
||||||
const toast = useToast();
|
const toast = useToast();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user