From b5951a5cefd70230a6c952d4be3dad7416925f98 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 9 May 2024 10:15:24 +0200 Subject: [PATCH] fix: CustomerNotifications paginate --- .../Notifications/CustomerNotifications.vue | 78 ++++++++++++------- 1 file changed, 48 insertions(+), 30 deletions(-) diff --git a/src/pages/Customer/Notifications/CustomerNotifications.vue b/src/pages/Customer/Notifications/CustomerNotifications.vue index d19b52c2c..9ccac98ff 100644 --- a/src/pages/Customer/Notifications/CustomerNotifications.vue +++ b/src/pages/Customer/Notifications/CustomerNotifications.vue @@ -2,16 +2,15 @@ import { ref, computed } from 'vue'; import { useI18n } from 'vue-i18n'; import { QBtn } from 'quasar'; -import FetchData from 'components/FetchData.vue'; import CustomerNotificationsFilter from './CustomerNotificationsFilter.vue'; import CustomerDescriptorProxy from '../Card/CustomerDescriptorProxy.vue'; import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; import { useStateStore } from 'stores/useStateStore'; +import VnPaginate from 'src/components/ui/VnPaginate.vue'; import CustomerNotificationsCampaignConsumption from './CustomerNotificationsCampaignConsumption.vue'; const stateStore = useStateStore(); const { t } = useI18n(); -const rows = ref([]); const selected = ref([]); const selectedCustomerId = ref(0); @@ -75,6 +74,7 @@ const columns = computed(() => [ name: 'email', }, ]); +const refreshKey = ref(0); const selectCustomerId = (id) => { selectedCustomerId.value = id; @@ -99,12 +99,6 @@ const selectCustomerId = (id) => { - @@ -121,30 +115,54 @@ const selectCustomerId = (id) => { - -