From b3391ab522b2f8f6a562b8bac31eb7b3d025106c Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Thu, 5 Sep 2024 20:51:33 +0200 Subject: [PATCH] perf: minor comments --- src/components/VnTable/VnTable.vue | 535 +++++++++--------- src/composables/useArrayData.js | 18 +- .../Customer/Card/CustomerConsumption.vue | 5 +- .../Customer/Card/CustomerCreditContracts.vue | 23 - .../Customer/Card/CustomerCreditOpinion.vue | 16 +- .../Customer/Card/CustomerDescriptorMenu.vue | 1 - src/pages/Customer/Card/CustomerSummary.vue | 10 +- .../CustomerCreditContractsCreate.vue | 1 - 8 files changed, 271 insertions(+), 338 deletions(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 898e9c193..44b430e86 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -346,302 +346,281 @@ defineExpose({ -
- - - - - -
+ + + + + + + + + + + diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 446816788..32b91b115 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -86,13 +86,13 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { Object.assign(filter, store.userFilter, exprFilter); let where; - // ARRAY DATA FALLA AL JUNTAR WHERE'S - console.log( - 'userParams?.filter?.where: ', - userParams?.filter?.where, - filter?.where, - store.filter?.where - ); + //FIXME: ARRAY DATA FALLA AL JUNTAR WHERE'S + // console.log( + // 'userParams?.filter?.where: ', + // userParams?.filter?.where, + // filter?.where, + // store.filter?.where + // ); if ((userParams?.filter?.where, filter?.where || store.filter?.where)) where = Object.assign( userParams?.filter?.where ?? {}, @@ -101,9 +101,9 @@ export function useArrayData(key = useRoute().meta.moduleName, userOptions) { ); Object.assign(filter, store.filter); filter.where = where; - console.log('where: ', where); + // console.log('where: ', where); const params = { filter }; - console.log('params: ', params); + // console.log('params: ', params); delete userParams?.filter; Object.assign(params, userParams); diff --git a/src/pages/Customer/Card/CustomerConsumption.vue b/src/pages/Customer/Card/CustomerConsumption.vue index 27c1b746c..35f366e47 100644 --- a/src/pages/Customer/Card/CustomerConsumption.vue +++ b/src/pages/Customer/Card/CustomerConsumption.vue @@ -1,5 +1,5 @@