P-42 сфорировать нормальный объект для нового календаря
This commit is contained in:
1 parent
d4ebc14212
commit
8d8ad9390e
1 file changed
+13
-3
@@ -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,
|
||||
};
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user