#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
3 changed files with 2 additions and 11 deletions
Showing only changes of commit 5027b9a174 - Show all commits

View File

@ -99,13 +99,6 @@ function getValueFromPath(path) {
} }
const emit = defineEmits(['onFetch']); const emit = defineEmits(['onFetch']);
const iconModule = computed(() => route.matched[1].meta.icon);
const toModule = computed(() =>
route.matched[1].path.split('/').length > 2
? route.matched[1].redirect
: route.matched[1].children[0].redirect
);
</script> </script>
<template> <template>
@ -118,10 +111,10 @@ const toModule = computed(() =>
flat flat
dense dense
size="md" size="md"
:icon="iconModule" :icon="$route.matched[1].meta.icon"
color="white" color="white"
class="link" class="link"
:to="$attrs['to-module'] ?? toModule" :to="`/${$route.meta.moduleName}`"
> >
<QTooltip> <QTooltip>
{{ t('globals.goToModuleIndex') }} {{ t('globals.goToModuleIndex') }}

View File

@ -57,7 +57,6 @@ const { openConfirmationModal } = useVnConfirm();
:title="data.title" :title="data.title"
:subtitle="data.subtitle" :subtitle="data.subtitle"
:summary="$props.summary" :summary="$props.summary"
:to-module="{ name: 'WorkerDepartment' }"
@on-fetch=" @on-fetch="
(data) => { (data) => {
department = data; department = data;

View File

@ -29,7 +29,6 @@ const filter = {
:url="`Parkings/${entityId}`" :url="`Parkings/${entityId}`"
title="code" title="code"
:filter="filter" :filter="filter"
:to-module="{ name: 'ParkingList' }"
> >
<template #body="{ entity }"> <template #body="{ entity }">
<VnLv :label="t('globals.code')" :value="entity.code" /> <VnLv :label="t('globals.code')" :value="entity.code" />