From ebc1445a18d8d1d9e9c8ee343403f928eb98bc22 Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Wed, 17 Jul 2024 11:38:45 +0300 Subject: [PATCH] P-51 --- .../calendar_of_events/BigCalendar.vue | 18 ++- .../UI_calendar/calendarFull.vue | 123 +++++++++++------- .../UI_calendar/periodEvents.vue | 2 +- .../calendar_of_events/event-create.vue | 15 ++- .../calendar_of_events/load-ical.vue | 4 +- .../src/views/safety/DocumentationSafety.vue | 2 +- 6 files changed, 99 insertions(+), 65 deletions(-) diff --git a/src/front/src/components/calendar_of_events/BigCalendar.vue b/src/front/src/components/calendar_of_events/BigCalendar.vue index 8863d4666..a9d6f4613 100644 --- a/src/front/src/components/calendar_of_events/BigCalendar.vue +++ b/src/front/src/components/calendar_of_events/BigCalendar.vue @@ -151,6 +151,7 @@ export default { }; const getCalendar = () => { + console.log(idEvent.value,' idEvent.value'); axiosApiInstance .get(`api/calendar_of_events/my_calendars/`) .then((res) => { @@ -166,10 +167,7 @@ export default { getCalendar(); const getEvents = () => { - console.log( - idEvent.value, - "idEvent.value------------------------------------------------------------------" - ); + axiosApiInstance .get( `api/calendar_of_events/my_events/${ @@ -177,6 +175,7 @@ export default { }` ) .then((res) => { + console.log(eventFromCalendar.value, 'eventFromCalendar.value') eventFromCalendar.value = res.data; if (idEvent.value == null) { @@ -191,7 +190,7 @@ export default { calendar: null, }; } - console.log(eventFromCalendar.value, 'vvvvvvvvvvvvvvvvvvvvvvvvvvvvv') + } @@ -200,13 +199,12 @@ export default { getEvents(); - const createEvent = (i) => { - if (i != undefined) { - idEvent.value = i; - getEvents() - } + const createEvent = () => { + + showDialog.value = true; getCalendar(); + console.log('1'); // emit("getCalendar"); }; diff --git a/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue b/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue index 1792efc1a..d0837d137 100644 --- a/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue +++ b/src/front/src/components/calendar_of_events/UI_calendar/calendarFull.vue @@ -24,8 +24,6 @@ - {{ getMonthName(monthNow + 1) }} @@ -52,8 +50,18 @@ -