diff --git a/src/pages/Customer/Notifications/CustomerNotifications.vue b/src/pages/Customer/Notifications/CustomerNotifications.vue index 2b816b5d0..5bdb69d70 100644 --- a/src/pages/Customer/Notifications/CustomerNotifications.vue +++ b/src/pages/Customer/Notifications/CustomerNotifications.vue @@ -5,41 +5,12 @@ import { QBtn } from 'quasar'; import CustomerNotificationsFilter from './CustomerNotificationsFilter.vue'; import CustomerDescriptorProxy from '../Card/CustomerDescriptorProxy.vue'; import VnSubToolbar from 'src/components/ui/VnSubToolbar.vue'; -import VnPaginate from 'src/components/ui/VnPaginate.vue'; import CustomerNotificationsCampaignConsumption from './CustomerNotificationsCampaignConsumption.vue'; import RightMenu from 'src/components/common/RightMenu.vue'; +import VnTable from 'src/components/VnTable/VnTable.vue'; const { t } = useI18n(); const selected = ref([]); -const selectedCustomerId = ref(0); - -const tableColumnComponents = { - id: { - component: QBtn, - props: () => ({ flat: true, color: 'blue' }), - event: (prop) => selectCustomerId(prop.row.id), - }, - socialName: { - component: 'span', - props: () => {}, - event: () => {}, - }, - city: { - component: 'span', - props: () => {}, - event: () => {}, - }, - phone: { - component: 'span', - props: () => {}, - event: () => {}, - }, - email: { - component: 'span', - props: () => {}, - event: () => {}, - }, -}; const columns = computed(() => [ { @@ -53,6 +24,15 @@ const columns = computed(() => [ field: 'socialName', label: t('Social name'), name: 'socialName', + columnFilter: { + component: 'select', + attrs: { + url: 'Clients', + fields: ['id', 'socialName'], + optionLabel: 'socialName', + }, + }, + class: 'expand', }, { align: 'left', @@ -73,10 +53,6 @@ const columns = computed(() => [ name: 'email', }, ]); - -const selectCustomerId = (id) => { - selectedCustomerId.value = id; -}; -