fleetmap-reports 1.0.911 → 1.0.912
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/speeding-report.js +4 -2
package/package.json
CHANGED
package/src/speeding-report.js
CHANGED
|
@@ -628,7 +628,8 @@ function exportSpeedingReportToExcel (userData, reportData) {
|
|
|
628
628
|
{ label: translations.report.distance, value: 'distance' },
|
|
629
629
|
{ label: translations.report.maxSpeed, value: 'maxSpeed' },
|
|
630
630
|
{ label: translations.report.duration, value: 'duration' },
|
|
631
|
-
userData.byDriver ? { label: translations.report.vehicle, value: 'name' } : { label: translations.report.driver, value: 'driver' }
|
|
631
|
+
userData.byDriver ? { label: translations.report.vehicle, value: 'name' } : { label: translations.report.driver, value: 'driver' },
|
|
632
|
+
{ label: 'link', value: 'link', format: 'hyperlink' }
|
|
632
633
|
]
|
|
633
634
|
|
|
634
635
|
if (userData.roadSpeedLimits) {
|
|
@@ -654,7 +655,8 @@ function exportSpeedingReportToExcel (userData, reportData) {
|
|
|
654
655
|
: userData.useVehicleSpeedLimit
|
|
655
656
|
? Math.round(a.attributes.speedLimit * 1.85200)
|
|
656
657
|
: userData.customSpeed,
|
|
657
|
-
...(userData.roadSpeedLimits ? { info: `https://openstreetmap.org/way/${a.way_id}` } : {})
|
|
658
|
+
...(userData.roadSpeedLimits ? { info: `https://openstreetmap.org/way/${a.way_id}` } : {}),
|
|
659
|
+
link: `https://${getUserPartner(userData.user).host}/#/map?vehicleName=${userData.byDriver ? a.deviceName : d.device.name}&date=${new Date(a.position.fixTime).toISOString()}`
|
|
658
660
|
}
|
|
659
661
|
}))
|
|
660
662
|
})
|