refactor: refs #7119 update vehicle state column name and add filtering options in VehicleList
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jorge Penadés 2024-12-26 16:36:56 +01:00
parent d63941adca
commit 458e48d4c6
1 changed files with 8 additions and 1 deletions

View File

@ -72,8 +72,15 @@ const columns = computed(() => [
label: t('vehicle.isKmTruckRate'),
},
{
name: 'state',
name: 'vehicleStateFk',
label: t('globals.state'),
columnFilter: {
component: 'select',
name: 'vehicleStateFk',
optionValue: 'id',
optionLabel: 'state',
options: vehicleStates.value,
},
format: (row, dashIfEmpty) => dashIfEmpty(row.event?.state?.state),
},
]);