События запрашиваются по текущему дню календаря
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user