From ffe15da7cfe5bcc47b75b083c56726cea9acd847 Mon Sep 17 00:00:00 2001 From: carlossa Date: Tue, 28 May 2024 10:41:24 +0200 Subject: [PATCH] refs #7406 fix VnTable columns --- src/pages/Travel/Card/TravelThermographs.vue | 6 +- src/pages/Worker/Card/WorkerFormation.vue | 64 +++++++++----------- 2 files changed, 33 insertions(+), 37 deletions(-) diff --git a/src/pages/Travel/Card/TravelThermographs.vue b/src/pages/Travel/Card/TravelThermographs.vue index d2195beb4..1898a58d6 100644 --- a/src/pages/Travel/Card/TravelThermographs.vue +++ b/src/pages/Travel/Card/TravelThermographs.vue @@ -13,7 +13,7 @@ import useNotify from 'src/composables/useNotify.js'; import { toDate } from 'src/filters'; import { downloadFile } from 'src/composables/downloadFile'; -const route = useRoute(); +const {{id}} = useRoute(); const quasar = useQuasar(); const router = useRouter(); const { t } = useI18n(); @@ -29,7 +29,7 @@ const thermographFilter = { fields: ['id', 'name'], }, }, - where: { travelFk: route.params.id }, + where: { travelFk: id }, order: ['created'], }; @@ -137,7 +137,7 @@ const removeThermograph = async (id) => { data-key="TravelThermographs" url="TravelThermographs" :filter="thermographFilter" - :params="{ travelFk: route.params.id }" + :params="{ travelFk: id }" auto-load >