feat(Route): add DescriptorMenu

This commit is contained in:
Alex Moreno 2024-11-24 09:54:05 +01:00
parent af32a4d512
commit 0aa75043b8
2 changed files with 5 additions and 1 deletions

View File

@ -52,7 +52,7 @@ async function actualizeVolume() {
const params = { isOk: true }; const params = { isOk: true };
await axios.post(`Routes/${routeId}/updateVolume`, params); await axios.post(`Routes/${routeId}/updateVolume`, params);
quasar.notify({ quasar.notify({
message: t('globals.dataUpdated'), message: t('globals.dataSaved'),
type: 'positive', type: 'positive',
}); });
} }

View File

@ -12,6 +12,7 @@ import CustomerDescriptorProxy from 'pages/Customer/Card/CustomerDescriptorProxy
import TicketDescriptorProxy from 'pages/Ticket/Card/TicketDescriptorProxy.vue'; import TicketDescriptorProxy from 'pages/Ticket/Card/TicketDescriptorProxy.vue';
import VnLv from 'components/ui/VnLv.vue'; import VnLv from 'components/ui/VnLv.vue';
import VnTitle from 'src/components/common/VnTitle.vue'; import VnTitle from 'src/components/common/VnTitle.vue';
import RouteDescriptorMenu from './RouteDescriptorMenu.vue';
const $props = defineProps({ const $props = defineProps({
id: { id: {
@ -128,6 +129,9 @@ const ticketColumns = ref([
<template #header="{ entity }"> <template #header="{ entity }">
<span>{{ `${entity?.route.id} - ${entity?.route?.description}` }}</span> <span>{{ `${entity?.route.id} - ${entity?.route?.description}` }}</span>
</template> </template>
<template #menu="{ entity }">
<RouteDescriptorMenu :route="entity.route" />
</template>
<template #body="{ entity }"> <template #body="{ entity }">
<QCard class="vn-max"> <QCard class="vn-max">
<VnTitle <VnTitle