From 1e959307d885829155e6a18117a69262ce431892 Mon Sep 17 00:00:00 2001 From: Jon Date: Wed, 17 Jul 2024 13:02:21 +0200 Subject: [PATCH] refactor: refs #7356 fixed VnTable filters --- src/pages/Ticket/TicketWeekly.vue | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/pages/Ticket/TicketWeekly.vue b/src/pages/Ticket/TicketWeekly.vue index 19e9e96cc..65d79bc32 100644 --- a/src/pages/Ticket/TicketWeekly.vue +++ b/src/pages/Ticket/TicketWeekly.vue @@ -68,9 +68,12 @@ const columns = computed(() => [ label: t('weeklyTickets.shipment'), cardVisible: true, columnFilter: { - component: 'input', - optionLabel: weekdays.name, - optionValue: weekdays.id, + component: 'select', + attrs: { + options: weekdays, + optionLabel: weekdays.name, + optionValue: weekdays.id, + }, inWhere: true, }, }, @@ -81,6 +84,7 @@ const columns = computed(() => [ cardVisible: true, columnFilter: { component: 'select', + alias: 'tw', attrs: { url: 'AgencyModes', fields: ['id', 'name'], @@ -112,10 +116,11 @@ const columns = computed(() => [ }, { align: 'left', - name: 'workerFk', + name: 'id', label: t('weeklyTickets.salesperson'), columnFilter: { component: 'select', + alias: 'u', attrs: { url: 'Workers/activeWithInheritedRole', fields: ['id', 'name'], @@ -230,7 +235,7 @@ onUnmounted(() => (stateStore.rightDrawer = false)); -