Statystyki DR (wip)

This commit is contained in:
2023-12-16 17:49:54 +01:00
parent e0d3d2585d
commit f4be32aa39
8 changed files with 120 additions and 193 deletions
+6 -5
View File
@@ -52,9 +52,9 @@ import JournalStats from '../components/JournalView/JournalStats.vue';
const statsButtons: Journal.StatsButton[] = [
{
tab: Journal.StatsTab.DISPATCHER_STATS,
localeKey: 'journal.dispatcher-stats-title',
localeKey: 'journal.dispatcher-stats-button',
iconName: 'user',
disabled: false
disabled: true
}
];
@@ -140,9 +140,10 @@ export default defineComponent({
},
'mainStore.dispatcherStatsData'(stats) {
// console.log(stats);
// this.statsButtons.find((sb) => sb.tab == Journal.StatsTab.DRIVER_STATS)!.disabled =
// driverStats === undefined;
console.log('dispatcher stats', stats);
this.statsButtons.find((sb) => sb.tab == Journal.StatsTab.DISPATCHER_STATS)!.disabled =
stats === undefined;
}
},
+2 -2
View File
@@ -146,13 +146,13 @@ export default defineComponent({
statsButtons: [
{
tab: Journal.StatsTab.DAILY_STATS,
localeKey: 'journal.daily-stats-title',
localeKey: 'journal.daily-stats-button',
iconName: 'stats',
disabled: false
},
{
tab: Journal.StatsTab.DRIVER_STATS,
localeKey: 'journal.driver-stats-title',
localeKey: 'journal.driver-stats-button',
iconName: 'user',
disabled: true
}