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, }; },