From 4690dc2fd28c8e88a6094bf4079d188037186455 Mon Sep 17 00:00:00 2001
From: iriska-gri <79623434+iriska-gri@users.noreply.github.com>
Date: Fri, 12 Jul 2024 14:41:16 +0300
Subject: [PATCH] P-58
---
.../calendar_of_events/BigCalendar.vue | 4 +-
.../UI_calendar/periodEvents.vue | 10 +-
.../UI_calendar/timeSelect copy.vue | 208 ++++++++++++++++++
.../UI_calendar/timeSelect.vue | 135 +++---------
.../calendar_of_events/event-create.vue | 32 ++-
5 files changed, 276 insertions(+), 113 deletions(-)
create mode 100644 src/front/src/components/calendar_of_events/UI_calendar/timeSelect copy.vue
diff --git a/src/front/src/components/calendar_of_events/BigCalendar.vue b/src/front/src/components/calendar_of_events/BigCalendar.vue
index 91bbc2804..c4fbc6e96 100644
--- a/src/front/src/components/calendar_of_events/BigCalendar.vue
+++ b/src/front/src/components/calendar_of_events/BigCalendar.vue
@@ -120,8 +120,8 @@ export default {
const MyMonth = ref(selectdate.value.getMonth() + 1);
const calendarForMy = ref([]);
const eventFromCalendar = ref({})
- const idEvent = ref(null)
- // const idEvent = ref(1)
+ // const idEvent = ref(null)
+ const idEvent = ref(2)
const getMonth = (month) => {
MyMonth.value = month + 1;
diff --git a/src/front/src/components/calendar_of_events/UI_calendar/periodEvents.vue b/src/front/src/components/calendar_of_events/UI_calendar/periodEvents.vue
index aa57334bc..4773354bb 100644
--- a/src/front/src/components/calendar_of_events/UI_calendar/periodEvents.vue
+++ b/src/front/src/components/calendar_of_events/UI_calendar/periodEvents.vue
@@ -32,15 +32,15 @@ export default {
},
set(newValue) {
chek.value = newValue;
- newValue == true
- ? (propsDateEvent.value.date_end = new Date(
- new Date(propsDateEvent.value.date_start).setHours(23, 59, 0)
+ if(newValue == true)
+ (propsDateEvent.value.date_end = new Date(
+ new Date(propsDateEvent.value.date_end).setHours(23, 59, 0)
)) &&
(propsDateEvent.value.date_start = new Date(
new Date(propsDateEvent.value.date_start).setHours(0, 0, 0)
))
- : (propsDateEvent.value.date_end = new Date())&&(propsDateEvent.value.date_start = new Date())
-
+ // : (propsDateEvent.value.date_end = new Date())&&(propsDateEvent.value.date_start = new Date())
+ emit('chekUp', newValue)
console.log(propsDateEvent.value.date_start, 'propsDateEvent.value.date_start');
},
diff --git a/src/front/src/components/calendar_of_events/UI_calendar/timeSelect copy.vue b/src/front/src/components/calendar_of_events/UI_calendar/timeSelect copy.vue
new file mode 100644
index 000000000..dfd8b56a1
--- /dev/null
+++ b/src/front/src/components/calendar_of_events/UI_calendar/timeSelect copy.vue
@@ -0,0 +1,208 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/front/src/components/calendar_of_events/UI_calendar/timeSelect.vue b/src/front/src/components/calendar_of_events/UI_calendar/timeSelect.vue
index 7b57a6d16..7e3f9c21c 100644
--- a/src/front/src/components/calendar_of_events/UI_calendar/timeSelect.vue
+++ b/src/front/src/components/calendar_of_events/UI_calendar/timeSelect.vue
@@ -19,7 +19,6 @@
v-bind="props"
readonly
hide-details
- :disabled="disbleTime"
>
+ />
@@ -66,7 +65,7 @@
:active="menutime"
:focus="menutime"
hide-details
- :disabled="disbleTime"
+ :disabled="chek"
>