-
-
-
-
-
-
-
-
diff --git a/src/components/JournalView/JournalDailyStats.vue b/src/components/JournalView/JournalDailyStats.vue
index 35dd1a7..6cc8b1e 100644
--- a/src/components/JournalView/JournalDailyStats.vue
+++ b/src/components/JournalView/JournalDailyStats.vue
@@ -1,128 +1,165 @@
-
-
-
-
-
-
- Ten dyżurny nie ma jeszcze szczegółowych statystyk!
-
-
-
-
- STATYSTYKI WYSTAWIONYCH ROZKŁADÓW
- -
-
- LICZBA
- {{ store.dispatcherStatsData._count._all }}
-
-
- SUMA (KM)
- {{ store.dispatcherStatsData._sum.routeDistance.toFixed(2) }}km
-
-
- NAJDŁUŻSZY
- {{ store.dispatcherStatsData._max.routeDistance.toFixed(2) }}km
-
-
- ŚREDNIO
- {{ store.dispatcherStatsData._avg.routeDistance.toFixed(2) }}km
-
-
-
- OSTATNIE WYSTAWIONE ROZKŁADY
- -- {{ $t('journal.daily-stats-title') }} + {{ $t('journal.daily-stats.title') }} {{ new Date().toLocaleDateString($i18n.locale) }}
-+
-
- •
-
-
-
- {{ stats.totalTimetables }}
- {{ $t('journal.timetable-count', stats.totalTimetables) }}
-
-
+
+ {{ $t('app.loading') }}
+
-
- {{ stats.distanceSum?.toFixed(2) }} km
-
-
-
+
+ {{ $t('journal.stats-error') }}
+
-
- •
-
-
-
- {{ stats.maxTimetable.id }}
-
-
-
-
- {{ stats.maxTimetable.authorName }}
-
-
-
- {{ stats.maxTimetable.driverName }}
-
-
- {{ stats.maxTimetable.routeDistance }} km
-
-
-
+
+ {{ $t('journal.daily-stats.info') }}
+
-
- •
-
-
-
- {{ topDispatchers[0].name }}
-
-
-
-
- {{ topDispatchers[0].count }}
- {{ $t('journal.timetable-count', topDispatchers[0].count) }}
-
-
-
-
+
+
+
+
+
+
+
+
diff --git a/src/components/JournalView/JournalDispatchersList.vue b/src/components/JournalView/JournalDispatchersList.vue
deleted file mode 100644
index 26093a4..0000000
--- a/src/components/JournalView/JournalDispatchersList.vue
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
+ •
+
+
+
+ {{ stats.totalTimetables }}
+ {{ $t('journal.daily-stats.count', stats.totalTimetables) }}
+
+
-
- {{ disp.name }}
+
-
+
- •
-
-
-
- {{ $t('general.and') }}
+
+ {{ stats.distanceSum?.toFixed(2) }} km
+
+
+
-
+ •
+
+
+
+ {{ stats.maxTimetable.id }}
+
+
+
+ {{ stats.maxTimetable.authorName }}
+
+
+
+ {{ stats.maxTimetable.driverName }}
+
+
+ {{ stats.maxTimetable.routeDistance }} km
+
+
+
- ,
-
-
+
+ •
+
+
+
+ {{ topDispatchers[0].name }}
+
+
+
+
+ {{ topDispatchers[0].count }}
+ {{ $t('journal.daily-stats.count', topDispatchers[0].count) }}
+
+
+
+
-
-
- {{ topDispatchers[0].count }}
- {{ $t('journal.timetable-count', topDispatchers[0].count) }}
-
-
-
+ •
+
+
+
+ {{ $t('general.and') }}
-
+
-
- •
-
-
-
- {{ stats.longestDuties[0].name }}
-
-
+
+ {{ disp.name }}
+
- {{ stats.longestDuties[0].station }}
+ ,
+
+
-
- {{ calculateDuration(stats.longestDuties[0].duration) }}
-
-
-
+
+
+ {{ topDispatchers[0].count }}
+ {{ $t('journal.daily-stats.count', topDispatchers[0].count) }}
+
+
+
- •
-
-
- {{ stats.mostActiveDrivers[0].name }}
-
-
- {{ stats.mostActiveDrivers[0].distance.toFixed(2) }} km
-
-
+
+ +
@@ -203,6 +240,8 @@ export default defineComponent({
diff --git a/src/components/JournalView/JournalDispatchers/JournalDispatchersList.vue b/src/components/JournalView/JournalDispatchers/JournalDispatchersList.vue
new file mode 100644
index 0000000..8d1a879
--- /dev/null
+++ b/src/components/JournalView/JournalDispatchers/JournalDispatchersList.vue
@@ -0,0 +1,256 @@
+
+
+ •
+
+
+
+ {{ stats.longestDuties[0].name }}
+
+
+
+ {{ stats.longestDuties[0].station }}
+
+
+ {{ calculateDuration(stats.longestDuties[0].duration) }}
+
+
+
+
+
+ •
+
+
+
+ {{ stats.mostActiveDrivers[0].name }}
+
+
+
+ {{ stats.mostActiveDrivers[0].distance.toFixed(2) }} km
+
+
+
+
+ + +
+
+ {{ $t(`journal.daily-stats.${key}`) }}
+ {{
+ Object.entries(stats.globalDiff).find(([k, v]) => k == key)?.[1] || '--'
+ }}
+
+
+
+
+
+
+ {{ $t('app.offline') }}
+
+
+
+ {{ $t('app.error') }}
+
+
+
+ {{ $t('app.no-result') }}
+
+
+
+
+
+
+
+
+
+
+ | {{ $t('journal.history-name') }} | +{{ $t('journal.history-hash') }} | +{{ $t('journal.history-dispatcher') }} | +{{ $t('journal.history-level') }} | +{{ $t('journal.history-rate') }} | +{{ $t('journal.history-region') }} | +{{ $t('journal.history-date') }} | + + + +
|---|---|---|---|---|---|---|
|
+ |
+ #{{ historyItem.stationHash }} | +
+ |
+ + + {{ historyItem.dispatcherLevel >= 2 ? historyItem.dispatcherLevel : 'L' }} + + | ++ {{ historyItem.dispatcherRate }} + | ++ {{ + regions.find((r) => r.id == historyItem.region)?.value || '???' + }} + | +
+
+ {{ $d(historyItem.timestampFrom) }}
+ {{ timestampToString(historyItem.timestampFrom) }}
+ - {{ timestampToString(historyItem.timestampTo) }} ({{
+ calculateDuration(historyItem.currentDuration)
+ }})
+
+
+
+ |
+
+ {{ $t('journal.no-further-data') }}
+
+
+
+ {{ $t('journal.loading-further-data') }}
+
+
-
-
-
-
-
-
-
-
-
diff --git a/src/components/JournalView/JournalOptions.vue b/src/components/JournalView/JournalOptions.vue
index fdd2a0a..cd92e03 100644
--- a/src/components/JournalView/JournalOptions.vue
+++ b/src/components/JournalView/JournalOptions.vue
@@ -33,7 +33,7 @@
-
-
-
-
- {{ $t('app.offline') }}
-
-
-
- {{ $t('app.error') }}
-
-
-
- {{ $t('app.no-result') }}
-
-
-
-
-
-
-
-
-
- | {{ $t('journal.history-name') }} | -{{ $t('journal.history-hash') }} | -{{ $t('journal.history-dispatcher') }} | -{{ $t('journal.history-level') }} | -{{ $t('journal.history-rate') }} | -{{ $t('journal.history-region') }} | -{{ $t('journal.history-date') }} | - - - -
|---|---|---|---|---|---|---|
|
- |
- #{{ historyItem.stationHash }} | -
- |
- - - {{ historyItem.dispatcherLevel >= 2 ? historyItem.dispatcherLevel : 'L' }} - - | -- {{ historyItem.dispatcherRate }} - | -- {{ - regions.find((r) => r.id == historyItem.region)?.value || '???' - }} - | -
-
- {{ $d(historyItem.timestampFrom) }}
- {{ timestampToString(historyItem.timestampFrom) }}
- - {{ timestampToString(historyItem.timestampTo) }} ({{
- calculateDuration(historyItem.currentDuration)
- }})
-
-
-
- |
-
- {{ $t('journal.no-further-data') }}
-
-
-
- {{ $t('journal.loading-further-data') }}
-
- {{ $t('options.search-title') }}
-