Отражение данных из БД
Без периодичности
This commit is contained in:
1 parent
3f5116dedc
commit
24f4069c1c
10 files changed
+228
-65
No files matched your search
@@ -10,21 +10,11 @@
|
||||
import { baseURL, axiosApiInstance } from "@/utils/axios-api";
|
||||
import { ref } from "vue";
|
||||
import ical from "ical.js";
|
||||
import { formatDash } from "@/utils/universal_functions";
|
||||
|
||||
const burl = baseURL.slice(0, -1);
|
||||
|
||||
export default {
|
||||
setup() {
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const participant = ref("");
|
||||
const calendar = ref("");
|
||||
const useICalReader = async () => {
|
||||
@@ -39,6 +29,11 @@ export default {
|
||||
.map((vevent) => new ical.Event(vevent));
|
||||
|
||||
const calendarEvents = events.map((event) => {
|
||||
let attendees = [];
|
||||
event.attendees.map((att) => {
|
||||
attendees.push(att.jCal[1].cn);
|
||||
});
|
||||
|
||||
return {
|
||||
summary: event.summary,
|
||||
description: event.description,
|
||||
@@ -46,13 +41,11 @@ export default {
|
||||
start: event.startDate.toJSDate(),
|
||||
end: event.endDate.toJSDate(),
|
||||
location: event.location,
|
||||
attendees: event.attendees,
|
||||
attendees: attendees,
|
||||
};
|
||||
});
|
||||
participant.value = name;
|
||||
calendar.value = calendarEvents;
|
||||
console.log(name, "name");
|
||||
console.log(calendarEvents, "calendarEventse");
|
||||
f_feedbackdata();
|
||||
};
|
||||
|
||||
@@ -68,7 +61,7 @@ export default {
|
||||
}
|
||||
|
||||
return {
|
||||
useICalReader, selectedEvent
|
||||
useICalReader,
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user