투표인ㄷ원체크 수정정
This commit is contained in:
parent
aae725398c
commit
eb20522969
@ -11,7 +11,7 @@
|
|||||||
<h6 class="mb-0">투표 인원</h6>
|
<h6 class="mb-0">투표 인원</h6>
|
||||||
</div>
|
</div>
|
||||||
<UserList @userListInfo="userSet" @user-list-update="handleUserListUpdate" class="mb-3" />
|
<UserList @userListInfo="userSet" @user-list-update="handleUserListUpdate" class="mb-3" />
|
||||||
<div v-if="UserListAlert" class="red">2명이상 선택해주세요 </div>
|
<div v-if="UserListAlert" class="invalid-feedback d-block">2명이상 선택해주세요.</div>
|
||||||
<form-input
|
<form-input
|
||||||
title="제목"
|
title="제목"
|
||||||
name="title"
|
name="title"
|
||||||
@ -127,6 +127,11 @@ const handleUserListUpdate = ({ activeUsers, disabledUsers: updatedDisabledUsers
|
|||||||
activeUserList.value = activeUsers;
|
activeUserList.value = activeUsers;
|
||||||
disabledUsers.value = updatedDisabledUsers;
|
disabledUsers.value = updatedDisabledUsers;
|
||||||
userListTotal.value = activeUsers.length;
|
userListTotal.value = activeUsers.length;
|
||||||
|
if(activeUserList.value.length<2){
|
||||||
|
UserListAlert.value = true;
|
||||||
|
}else{
|
||||||
|
UserListAlert.value = false;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const saveValid = () => {
|
const saveValid = () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user