refactor: refs #7119 remove vehicle deletion
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
d1a9e13a4b
commit
365597e5cf
|
@ -1,26 +1,9 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import VnLv from 'src/components/ui/VnLv.vue';
|
import VnLv from 'src/components/ui/VnLv.vue';
|
||||||
import CardDescriptor from 'components/ui/CardDescriptor.vue';
|
import CardDescriptor from 'components/ui/CardDescriptor.vue';
|
||||||
import axios from 'axios';
|
|
||||||
|
|
||||||
async function deleteVehicle(id) {
|
|
||||||
await axios.delete(`Vehicles/${id}`);
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<CardDescriptor
|
<CardDescriptor module="Vehicle" data-key="Vehicle" title="numberPlate">
|
||||||
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>
|
|
||||||
<template #body="{ entity }">
|
<template #body="{ entity }">
|
||||||
<VnLv :label="$t('vehicle.numberPlate')" :value="entity.numberPlate" />
|
<VnLv :label="$t('vehicle.numberPlate')" :value="entity.numberPlate" />
|
||||||
<VnLv :label="$t('vehicle.tradeMark')" :value="entity.tradeMark" />
|
<VnLv :label="$t('vehicle.tradeMark')" :value="entity.tradeMark" />
|
||||||
|
|
Loading…
Reference in New Issue