From ff33923b7adfe212ff47d8a194dd9717a3aab376 Mon Sep 17 00:00:00 2001 From: jorgep Date: Tue, 25 Jun 2024 12:49:54 +0200 Subject: [PATCH] feat: refs #7578 add data-key attribute to CardSummary components --- src/components/ui/CardSummary.vue | 2 +- src/pages/Account/Card/AccountSummary.vue | 1 + src/pages/Agency/Card/AgencySummary.vue | 2 +- src/pages/Claim/Card/ClaimSummary.vue | 1 + src/pages/Customer/Card/CustomerSummary.vue | 6 +++++- src/pages/Entry/Card/EntrySummary.vue | 1 + src/pages/InvoiceOut/Card/InvoiceOutSummary.vue | 1 + src/pages/Item/ItemFixedPrice.vue | 11 ++--------- src/pages/Order/Card/OrderSummary.vue | 6 +++++- src/pages/Parking/Card/ParkingSummary.vue | 1 + src/pages/Route/Card/RouteSummary.vue | 1 + src/pages/Shelving/Card/ShelvingSummary.vue | 7 ++++++- src/pages/Supplier/Card/SupplierSummary.vue | 1 + src/pages/Ticket/Card/TicketSummary.vue | 1 + src/pages/Travel/Card/TravelSummary.vue | 1 + src/pages/Worker/Card/WorkerSummary.vue | 7 ++++++- 16 files changed, 35 insertions(+), 15 deletions(-) diff --git a/src/components/ui/CardSummary.vue b/src/components/ui/CardSummary.vue index cab5b98be..d1e827aee 100644 --- a/src/components/ui/CardSummary.vue +++ b/src/components/ui/CardSummary.vue @@ -26,7 +26,7 @@ const props = defineProps({ const emit = defineEmits(['onFetch']); const route = useRoute(); const isSummary = ref(); -const arrayData = useArrayData(props.dataKey || route.meta.moduleName, { +const arrayData = useArrayData(props.dataKey, { url: props.url, filter: props.filter, skip: 0, diff --git a/src/pages/Account/Card/AccountSummary.vue b/src/pages/Account/Card/AccountSummary.vue index 1c7f79f0e..1901f9cde 100644 --- a/src/pages/Account/Card/AccountSummary.vue +++ b/src/pages/Account/Card/AccountSummary.vue @@ -30,6 +30,7 @@ const filter = {