From 9235ab9983abb040f47da783c2b564fe81e0d583 Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Wed, 17 Jul 2024 15:16:29 +0300 Subject: [PATCH] =?UTF-8?q?P-51=20=D0=9B=D0=BE=D0=B3=D0=B8=D0=BA=D1=83=20?= =?UTF-8?q?=D0=B4=D0=BB=D1=8F=20=D1=80=D0=B0=D0=B7=D0=BD=D1=8B=D1=85=20?= =?UTF-8?q?=D0=B2=D0=B0=D1=80=D0=B8=D0=B0=D0=BD=D1=82=D0=BE=D0=B2=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B8=D0=BE=D0=B4=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/defaultportal/uploading-file.vue | 9 +-- src/front/src/components/UI/my-helper.vue | 76 ++++++++++--------- .../calendar_of_events/BigCalendar.vue | 13 +++- .../UI_calendar/calendarFull.vue | 11 --- .../UI_calendar/dialogCreate.vue | 2 +- .../calendar_of_events/event-create.vue | 39 +++++----- 6 files changed, 71 insertions(+), 79 deletions(-) diff --git a/src/front/src/components/UI/defaultportal/uploading-file.vue b/src/front/src/components/UI/defaultportal/uploading-file.vue index eef2510b5..fe291fb82 100644 --- a/src/front/src/components/UI/defaultportal/uploading-file.vue +++ b/src/front/src/components/UI/defaultportal/uploading-file.vue @@ -82,7 +82,7 @@ export default { } emit("postFiles", newFile); - console.log(newValue, arrFiles.value, "newValue"); + }, }); @@ -102,10 +102,7 @@ export default { return new File([u8arr], filename, { type: mime }); } - const proverka = () => { - console.log('h'); - } - + // const eventFiles = computed({ // get() { // if (propsFiles.value.length > 0) { @@ -145,7 +142,7 @@ export default { return { eventFiles, arrFiles, - proverka + }; }, }; diff --git a/src/front/src/components/UI/my-helper.vue b/src/front/src/components/UI/my-helper.vue index adb978f97..85df72a3a 100644 --- a/src/front/src/components/UI/my-helper.vue +++ b/src/front/src/components/UI/my-helper.vue @@ -1,61 +1,65 @@ \ No newline at end of file + diff --git a/src/front/src/components/calendar_of_events/BigCalendar.vue b/src/front/src/components/calendar_of_events/BigCalendar.vue index 12d75e4f6..158959323 100644 --- a/src/front/src/components/calendar_of_events/BigCalendar.vue +++ b/src/front/src/components/calendar_of_events/BigCalendar.vue @@ -98,6 +98,7 @@ @@ -167,17 +168,18 @@ export default { getCalendar(); const getEvents = (idEvent) => { - console.log(idEvent, 'idEvent-------------------') + console.log(idEvent, 'idEvent2 раза'); axiosApiInstance .get( `api/calendar_of_events/my_events/${ - idEvent == null ? "" : `?id=${idEvent}` + idEvent == undefined ? "" : `?id=${idEvent}` }` ) .then((res) => { + eventFromCalendar.value = res.data; - if (idEvent == null) { + if (idEvent == undefined) { eventFromCalendar.value.event = { name: "", participant: [accountStore.user.is_idEmployee], @@ -195,9 +197,12 @@ export default { getEvents(); const createEvent = (idEv) => { - console.log(idEv, '222222222222') + showDialog.value = true; getEvents(idEv); + if (idEv) { + getCalendar() + } }; const weekendsData = () => { 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 22ec3b59f..87966c337 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 @@ -274,18 +274,7 @@ export default { emit("getEvent", e.id); }; - // const controlDate = computed({ - // get() { - // // let yearOfDate = new Date(dayNow.value).getFullYear(); - // // let monthOfDate = new Date(dayNow.value).getMonth(); - // return dayNow.value - - // }, - // set(newValue) { - - // } - // }) return { type, diff --git a/src/front/src/components/calendar_of_events/UI_calendar/dialogCreate.vue b/src/front/src/components/calendar_of_events/UI_calendar/dialogCreate.vue index a5be83843..dde2e60f4 100644 --- a/src/front/src/components/calendar_of_events/UI_calendar/dialogCreate.vue +++ b/src/front/src/components/calendar_of_events/UI_calendar/dialogCreate.vue @@ -1,7 +1,7 @@