refs #6111 fix visibleColumns
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Carlos Satorres 2024-04-03 15:00:36 +02:00
parent 9833a5946a
commit 0cfcda7062
1 changed files with 9 additions and 9 deletions

View File

@ -34,6 +34,7 @@ onMounted(async () => {
stateStore.rightDrawer = true;
const filteredColumns = columns.value.filter((col) => col.name !== 'picture');
allColumnNames.value = filteredColumns.map((col) => col.name);
allColumnNames.value = columns.value;
await arrayData.fetch({ append: false });
});
onUnmounted(() => (stateStore.rightDrawer = false));
@ -325,15 +326,7 @@ const openTicketsDialog = (id) => {
<FetchData url="AgencyModes" @on-fetch="(data) => (agencyList = data)" auto-load />
<FetchData url="Vehicles" @on-fetch="(data) => (vehicleList = data)" auto-load />
<QPage class="column items-center">
<QToolbar
><TableVisibleColumns
class="LeftIcon"
:all-columns="allColumnNames"
table-code="routes"
@on-config-saved="visibleColumns = ['picture', ...$event]"
/>
</QToolbar>
<VnSubToolbar class="justify-end">
<VnSubToolbar>
<template #st-actions>
<QBtn
icon="vn:clone"
@ -362,6 +355,12 @@ const openTicketsDialog = (id) => {
>
<QTooltip>{{ t('Mark as served') }}</QTooltip>
</QBtn>
<TableVisibleColumns
class="LeftIcon"
:all-columns="allColumnNames"
table-code="routes"
@on-config-saved="visibleColumns = [...$event]"
/>
</template>
</VnSubToolbar>
<div class="route-list">
@ -383,6 +382,7 @@ const openTicketsDialog = (id) => {
row-key="id"
selection="multiple"
:rows-per-page-options="[0]"
:visible-columns="visibleColumns"
hide-pagination
:no-data-label="t('globals.noResults')"
>