Сделала колонку, добавила данные в server.js

This commit is contained in:
Daria Golova
2022-10-20 14:09:30 +03:00
parent 96b071294d
commit f210053d9d
5 changed files with 129 additions and 3 deletions

View File

@@ -3,6 +3,7 @@
calendar-schedule(
:current-date="currentDate"
:time-information="timeInformation"
:column-information="columnInformation"
@previous-date="switchPreviousDate"
@next-date="switchNextDate"
@selected-layout="changeCalendarLayout"
@@ -24,6 +25,15 @@ export default {
dayEndTime: "18:00",
},
eventsData: [],
columnInformation: {
owners: [
"Захарова А.О.",
"Константинопольская Ю.В.",
"Коломойцев И.К.",
"Ситников А.Г.",
null,
],
},
};
},
methods: {
@@ -40,7 +50,7 @@ export default {
this.eventsData = res.results;
},
fetchEventsData() {
fetch("http://45.84.227.122:8080/registry/event/")
fetch("/registry/event/")
.then((res) => res.json())
.then((res) => this.saveEventsData(res));
},