Sessions UI: visualization, month/year charts (#15902)

This commit is contained in:
Michael Geers 2024-10-21 12:13:45 +02:00 • committed by GitHub
parent 1bd521fc24
commit cfa35f295b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 3271 additions and 715 deletions

View file

@ -41,12 +41,13 @@ export default function setupRouter(i18n) {
},
{
path: "/sessions",
component: () => import("./views/ChargingSessions.vue"),
component: () => import("./views/Sessions.vue"),
props: (route) => {
const { month, year, loadpoint, vehicle } = route.query;
const { month, year, loadpoint, vehicle, period } = route.query;
return {
month: month ? parseInt(month, 10) : undefined,
year: year ? parseInt(year, 10) : undefined,
period,
loadpointFilter: loadpoint,
vehicleFilter: vehicle,
};