refactor: refs #8626 add formatting for agency and vehicle columns in RouteList
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
gitea/salix-front/pipeline/pr-dev There was a failure building this commit
Details
This commit is contained in:
parent
277c78c8df
commit
1ddc4793cc
|
@ -58,6 +58,7 @@ const columns = computed(() => [
|
|||
align: 'left',
|
||||
name: 'agencyModeFk',
|
||||
label: t('route.Agency'),
|
||||
format: (row) => row?.agencyName,
|
||||
cardVisible: true,
|
||||
component: 'select',
|
||||
attrs: {
|
||||
|
@ -76,6 +77,7 @@ const columns = computed(() => [
|
|||
align: 'left',
|
||||
name: 'vehicleFk',
|
||||
label: t('route.Vehicle'),
|
||||
format: (row) => row?.vehiclePlateNumber,
|
||||
cardVisible: true,
|
||||
component: 'select',
|
||||
attrs: {
|
||||
|
@ -173,16 +175,6 @@ const columns = computed(() => [
|
|||
<WorkerDescriptorProxy :id="row?.workerFk" v-if="row?.workerFk" />
|
||||
</span>
|
||||
</template>
|
||||
<template #column-agencyModeFk="{ row }">
|
||||
<span>
|
||||
{{ row?.agencyName }}
|
||||
</span>
|
||||
</template>
|
||||
<template #column-vehicleFk="{ row }">
|
||||
<span>
|
||||
{{ row?.vehiclePlateNumber }}
|
||||
</span>
|
||||
</template>
|
||||
</VnTable>
|
||||
</template>
|
||||
</VnSection>
|
||||
|
|
Loading…
Reference in New Issue