From 1b998d453d746f32d3b86d767f8db576a7f610db Mon Sep 17 00:00:00 2001 From: joan Date: Fri, 27 Jan 2023 09:43:10 +0100 Subject: [PATCH] Changes --- src/components/ui/ModuleSearchbar.vue | 88 ++++++++++- src/composables/useArrayData.js | 7 +- src/pages/Customer/CustomerSearch.vue | 205 +++++++++++++------------- 3 files changed, 185 insertions(+), 115 deletions(-) diff --git a/src/components/ui/ModuleSearchbar.vue b/src/components/ui/ModuleSearchbar.vue index 7be777bda..138121a86 100644 --- a/src/components/ui/ModuleSearchbar.vue +++ b/src/components/ui/ModuleSearchbar.vue @@ -1,6 +1,8 @@ + + { + "en": { + "phone": "Phone" + }, + "es": { + "phone": "Teléfono" + } + } + diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 049cea116..221a7d2c5 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -67,9 +67,9 @@ export function useArrayData(key, userOptions) { if (append === false) { store.data = response.data; - } - updateStateParams(); + updateStateParams(); + } } async function request({ userFilter }) { @@ -116,6 +116,9 @@ export function useArrayData(key, userOptions) { order: store.order, limit: store.limit, skip: store.skip, + params: [ + 'a' + ], }, }); } diff --git a/src/pages/Customer/CustomerSearch.vue b/src/pages/Customer/CustomerSearch.vue index c820806cf..738da9d89 100644 --- a/src/pages/Customer/CustomerSearch.vue +++ b/src/pages/Customer/CustomerSearch.vue @@ -1,7 +1,10 @@