From ad2844d88d7c7004772d9cdf560ad4e08b822dfc Mon Sep 17 00:00:00 2001 From: pablone Date: Mon, 8 Jan 2024 08:37:36 +0100 Subject: [PATCH 1/3] fix(workerDescriptor): refs #6611 fix workerpopUp --- src/components/ui/CardDescriptor.vue | 2 +- src/composables/useArrayData.js | 15 +++++++-------- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 2669b53a9..5c911a08e 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -62,7 +62,7 @@ async function getData() { filter: $props.filter, skip: 0, }); - const { data } = await arrayData.fetch({ append: false }); + const { data } = await arrayData.fetch({ append: false, updateRouter: false }); entity.value = data; emit('onFetch', data); } diff --git a/src/composables/useArrayData.js b/src/composables/useArrayData.js index 523340cc9..39c879f98 100644 --- a/src/composables/useArrayData.js +++ b/src/composables/useArrayData.js @@ -58,7 +58,7 @@ export function useArrayData(key, userOptions) { } } - async function fetch({ append = false }) { + async function fetch({ append = false, updateRouter = true }) { if (!store.url) return; cancelRequest(); @@ -100,15 +100,12 @@ export function useArrayData(key, userOptions) { hasMoreData.value = response.data.length === limit; - if (append === true) { + if (append) { if (!store.data) store.data = []; for (const row of response.data) store.data.push(row); - } - - if (append === false) { + } else { store.data = response.data; - - updateStateParams(); + updateRouter && updateStateParams(); } store.isLoading = false; @@ -155,7 +152,9 @@ export function useArrayData(key, userOptions) { delete store.userParams[param]; delete params[param]; if (store.filter?.where) { - delete store.filter.where[Object.keys(exprBuilder ? exprBuilder(param) : param)[0]]; + delete store.filter.where[ + Object.keys(exprBuilder ? exprBuilder(param) : param)[0] + ]; if (Object.keys(store.filter.where).length === 0) { delete store.filter.where; } From 1775ac85e22d44f7ea35da1bb10827be50f90bcc Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 8 Jan 2024 11:39:21 +0100 Subject: [PATCH 2/3] refs #6062 fix(claimAction): pagination. fix(claimDevelopment): alignament. fix(claimSummary): object can be null --- src/pages/Claim/Card/ClaimAction.vue | 42 ++++++++++++----------- src/pages/Claim/Card/ClaimDevelopment.vue | 7 +++- src/pages/Claim/Card/ClaimSummary.vue | 2 +- 3 files changed, 29 insertions(+), 22 deletions(-) diff --git a/src/pages/Claim/Card/ClaimAction.vue b/src/pages/Claim/Card/ClaimAction.vue index fb47eeee2..87132aa1f 100644 --- a/src/pages/Claim/Card/ClaimAction.vue +++ b/src/pages/Claim/Card/ClaimAction.vue @@ -134,7 +134,10 @@ async function regularizeClaim() { message: t('globals.dataSaved'), type: 'positive', }); + console.log(claim.value.responsibility >= Math.ceil(DEFAULT_MAX_RESPONSABILITY) / 2); if (claim.value.responsibility >= Math.ceil(DEFAULT_MAX_RESPONSABILITY) / 2) { + console.log(claimActionsForm.value); + // claimActionsForm.value.$el.blur(); quasar .dialog({ component: VnConfirm, @@ -282,6 +285,8 @@ async function importToNewRefundTicket() { selection="multiple" v-model:selected="selectedRows" :grid="$q.screen.lt.md" + :pagination="{ rowsPerPage: 0 }" + :hide-bottom="true" >