From e83aa40f82ee0008e6f4d60fea7bb33446565385 Mon Sep 17 00:00:00 2001 From: Spythere Date: Fri, 8 Dec 2023 16:16:14 +0100 Subject: [PATCH] aktualizacja endpointu API statystyk --- src/components/JournalView/DailyStats.vue | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) diff --git a/src/components/JournalView/DailyStats.vue b/src/components/JournalView/DailyStats.vue index bd1e010..3cfa2e2 100644 --- a/src/components/JournalView/DailyStats.vue +++ b/src/components/JournalView/DailyStats.vue @@ -5,15 +5,12 @@ {{ $t('app.loading') }} - - {{ $t('journal.daily-stats-info') }} - -

{{ $t('journal.daily-stats-title') }} {{ new Date().toLocaleDateString($i18n.locale) }}

+
@@ -177,23 +174,9 @@ export default defineComponent({ async fetchDailyTimetableStats() { try { const res: API.DailyStats.Response = await ( - await axios.get(`${URLs.stacjownikAPI}/api/getDailyTimetableStats`) + await axios.get(`${URLs.stacjownikAPI}/api/getDailyStats`) ).data; - // this.stats = { - // totalTimetables: res.totalTimetables, - // distanceSum: res.distanceSum, - // distanceAvg: res.distanceAvg, - // // timetableAuthor: res.maxTimetable?.authorName || '', - // // timetableDriver: res.maxTimetable?.driverName || '', - // // timetableId: res.maxTimetable?.id || 0, - // // timetableRouteDistance: res.maxTimetable?.routeDistance || 0, - - // mostActiveDispatchers: res.mostActiveDispatchers, - // mostActiveDrivers: res.mostActiveDrivers, - // longestDuties: res.longestDuties - // }; - this.stats = res; this.statsStatus = Status.Data.Loaded;