7525-devToTest #419

Merged
alexm merged 177 commits from 7525-devToTest into test 2024-06-04 08:06:27 +00:00
1 changed files with 9 additions and 9 deletions
Showing only changes of commit 0cfcda7062 - Show all commits

View File

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