refactor: rename agencyModeFk to agencyName and vehicleFk to vehiclePlateNumber in RouteList.vue
gitea/salix-front/pipeline/pr-master There was a failure building this commit Details

This commit is contained in:
Jose Antonio Tubau 2025-02-28 09:00:23 +01:00
parent 1c568227c2
commit e9660b2687
1 changed files with 12 additions and 12 deletions

View File

@ -47,9 +47,13 @@ const columns = computed(() => [
}, },
{ {
align: 'left', align: 'left',
name: 'agencyModeFk', name: 'agencyName',
label: t('route.Agency'), label: t('route.Agency'),
cardVisible: true, cardVisible: true,
},
{
label: t('route.Agency'),
name: 'agencyModeFk',
component: 'select', component: 'select',
attrs: { attrs: {
url: 'agencyModes', url: 'agencyModes',
@ -60,11 +64,16 @@ const columns = computed(() => [
}, },
}, },
create: true, create: true,
columnClass: 'expand',
columnFilter: false, columnFilter: false,
visible: false,
}, },
{ {
align: 'left', align: 'left',
name: 'vehiclePlateNumber',
label: t('route.Vehicle'),
cardVisible: true,
},
{
name: 'vehicleFk', name: 'vehicleFk',
label: t('route.Vehicle'), label: t('route.Vehicle'),
cardVisible: true, cardVisible: true,
@ -81,6 +90,7 @@ const columns = computed(() => [
}, },
create: true, create: true,
columnFilter: false, columnFilter: false,
visible: false,
}, },
{ {
align: 'left', align: 'left',
@ -164,16 +174,6 @@ const columns = computed(() => [
<WorkerDescriptorProxy :id="row?.workerFk" v-if="row?.workerFk" /> <WorkerDescriptorProxy :id="row?.workerFk" v-if="row?.workerFk" />
</span> </span>
</template> </template>
<template #column-agencyModeFk="{ row }">
<span>
{{ row?.agencyName }}
</span>
</template>
<template #column-vehicleFk="{ row }">
<span>
{{ row?.vehiclePlateNumber }}
</span>
</template>
</VnTable> </VnTable>
</template> </template>
</VnSection> </VnSection>