2023-01-23 12:15:30 +00:00
|
|
|
const vnReport = require('../../../core/mixins/vn-report.js');
|
2022-09-21 06:11:04 +00:00
|
|
|
module.exports = {
|
|
|
|
name: 'vehicle-event-expired',
|
2023-01-23 12:15:30 +00:00
|
|
|
mixins: [vnReport],
|
2022-09-21 06:11:04 +00:00
|
|
|
async serverPrefetch() {
|
2023-01-23 12:15:30 +00:00
|
|
|
this.vehicleEvents = await this.rawSqlFromDef('vehicleEvents', [this.eventIds]);
|
|
|
|
this.checkMainEntity(this.vehicleEvents);
|
2022-09-21 06:11:04 +00:00
|
|
|
},
|
|
|
|
props: {
|
|
|
|
eventIds: {
|
|
|
|
type: [Array],
|
2022-09-21 06:12:08 +00:00
|
|
|
required: true
|
2022-09-21 06:11:04 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|