컬러
This commit is contained in:
parent
17e86f49d0
commit
5f9a99dd02
@ -56,6 +56,7 @@
|
|||||||
:value="color"
|
:value="color"
|
||||||
:data="colorList"
|
:data="colorList"
|
||||||
@update:data="color = $event"
|
@update:data="color = $event"
|
||||||
|
:is-alert="colorAlert"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<div class="mb-2 row">
|
<div class="mb-2 row">
|
||||||
@ -166,9 +167,11 @@
|
|||||||
const endDay = ref('');
|
const endDay = ref('');
|
||||||
const description = ref('');
|
const description = ref('');
|
||||||
const nameAlert = ref(false);
|
const nameAlert = ref(false);
|
||||||
|
const colorAlert = ref(false);
|
||||||
const addressAlert = ref(false);
|
const addressAlert = ref(false);
|
||||||
const startDayAlert = ref(false);
|
const startDayAlert = ref(false);
|
||||||
|
|
||||||
|
|
||||||
const startDateInput = ref(null);
|
const startDateInput = ref(null);
|
||||||
const endDateInput = ref(null);
|
const endDateInput = ref(null);
|
||||||
|
|
||||||
@ -319,7 +322,11 @@
|
|||||||
startDayAlert.value = startDay.value.trim() === '';
|
startDayAlert.value = startDay.value.trim() === '';
|
||||||
addressAlert.value = addressData.value.address.trim() === '';
|
addressAlert.value = addressData.value.address.trim() === '';
|
||||||
|
|
||||||
if (nameAlert.value || startDayAlert.value || addressAlert.value) {
|
if (!colorList.value || colorList.value.length === 0) {
|
||||||
|
colorAlert.value = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (nameAlert.value || startDayAlert.value || addressAlert.value || colorAlert.value) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -427,6 +427,7 @@
|
|||||||
addressAlert.value ||
|
addressAlert.value ||
|
||||||
phoneAlert.value ||
|
phoneAlert.value ||
|
||||||
phoneErrorAlert.value ||
|
phoneErrorAlert.value ||
|
||||||
|
colorAlert.value ||
|
||||||
colorErrorAlert.value
|
colorErrorAlert.value
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user