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 @@