События запрашиваются по текущему дню календаря

This commit is contained in:
Daria Golova
2022-12-23 12:09:25 +03:00
parent b1237fbed4
commit 48860c454f
3 changed files with 13 additions and 10 deletions

View File

@@ -167,7 +167,15 @@ export default {
},
fetchEventsData() {
fetchWrapper
.get("registry/event/?limit=100")
.get(
`registry/event/?limit=100&start=${this.currentDate.format(
"YYYY-MM-DD"
)}T${
this.timeInformation.dayStartTime
}:00Z&end=${this.currentDate.format("YYYY-MM-DD")}T${
this.timeInformation.dayEndTime
}:00Z`
)
.then((res) => this.saveEventsData(res));
},
changeWidth(value) {
@@ -210,6 +218,7 @@ export default {
},
currentDate() {
this.fetchSchedulesData();
this.fetchEventsData();
},
},
mounted() {