From 8d8ad9390eafc52f014324f637a1842dda153ff3 Mon Sep 17 00:00:00 2001 From: iriska-gri <79623434+iriska-gri@users.noreply.github.com> Date: Tue, 25 Jun 2024 17:00:19 +0300 Subject: [PATCH] =?UTF-8?q?P-42=20=D1=81=D1=84=D0=BE=D1=80=D0=B8=D1=80?= =?UTF-8?q?=D0=BE=D0=B2=D0=B0=D1=82=D1=8C=20=D0=BD=D0=BE=D1=80=D0=BC=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D0=BD=D1=8B=D0=B9=20=D0=BE=D0=B1=D1=8A=D0=B5=D0=BA?= =?UTF-8?q?=D1=82=20=D0=B4=D0=BB=D1=8F=20=D0=BD=D0=BE=D0=B2=D0=BE=D0=B3?= =?UTF-8?q?=D0=BE=20=D0=BA=D0=B0=D0=BB=D0=B5=D0=BD=D0=B4=D0=B0=D1=80=D1=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../calendar_of_events/calendar-create.vue | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/front/src/components/calendar_of_events/calendar-create.vue b/src/front/src/components/calendar_of_events/calendar-create.vue index 8feec3bf3..811e23bef 100644 --- a/src/front/src/components/calendar_of_events/calendar-create.vue +++ b/src/front/src/components/calendar_of_events/calendar-create.vue @@ -143,7 +143,7 @@ export default { default: { cl_name: "", participant: [{ editor: true, participant_calendar: 0 }], - cl_color: "red", + cl_color: "", cl_descr: "", }, }, @@ -155,7 +155,16 @@ export default { // Возможно можно сделать запись короче const returnIdParticant = (idPart) => { console.log(props.calendar, "props.calendar"); - postParticant.value = { ...props.calendar, participant: idPart }; + let g = { + participant: [{participant_calendar: 107 }], + cl_name: "проба2", + cl_color: "lime", + cl_descr: "описание", + + }; + + postParticant.value = g + // postParticant.value = { ...props.calendar, participant: idPart }; }; const dialog_create_calendar = computed({ @@ -166,6 +175,7 @@ export default { const feedalert = useAlertStore().alert; const postCalendar = () => { + console.log(postParticant.value, 'postParticant.valuepostParticant.value') axiosApiInstance .post(`api/calendar_of_events/my_calendars/`, postParticant.value) .then((result) => { @@ -209,7 +219,7 @@ export default { postCalendar, color, - + colorPik, returnIdParticant, }; },