#7119 add VehicleList page and routing configuration #1129

Merged
jorgep merged 71 commits from 7119-createVehicle into dev 2025-02-06 09:24:16 +00:00
1 changed files with 1 additions and 18 deletions
Showing only changes of commit 365597e5cf - Show all commits

View File

@ -1,26 +1,9 @@
<script setup>
import VnLv from 'src/components/ui/VnLv.vue';
import CardDescriptor from 'components/ui/CardDescriptor.vue';
import axios from 'axios';
async function deleteVehicle(id) {
await axios.delete(`Vehicles/${id}`);
}
</script>
<template>
<CardDescriptor
module="Vehicle"
data-key="Vehicle"
:url="`Vehicles/filter?${entityId}`"
title="numberPlate"
>
<template #menu="{ entity }">
<QItem v-ripple clickable @click="deleteVehicle(entity.id)">
<QItemSection>
{{ $t('vehicle.delete') }}
</QItemSection>
</QItem>
</template>
<CardDescriptor module="Vehicle" data-key="Vehicle" title="numberPlate">
<template #body="{ entity }">
<VnLv :label="$t('vehicle.numberPlate')" :value="entity.numberPlate" />
<VnLv :label="$t('vehicle.tradeMark')" :value="entity.tradeMark" />