From 8c754dd196b9ca7e5dd3cc700d2410b0c6677249 Mon Sep 17 00:00:00 2001 From: alexm Date: Mon, 5 Aug 2024 15:22:34 +0200 Subject: [PATCH] hotFix(claim_development): reload when change route id --- src/pages/Claim/Card/ClaimDevelopment.vue | 32 ++++++++++++----------- 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/pages/Claim/Card/ClaimDevelopment.vue b/src/pages/Claim/Card/ClaimDevelopment.vue index 842d45050..f7e8131c6 100644 --- a/src/pages/Claim/Card/ClaimDevelopment.vue +++ b/src/pages/Claim/Card/ClaimDevelopment.vue @@ -20,20 +20,22 @@ const workers = ref([]); const selected = ref([]); const saveButtonRef = ref(); -const developmentsFilter = { - fields: [ - 'id', - 'claimFk', - 'claimReasonFk', - 'claimResultFk', - 'claimResponsibleFk', - 'workerFk', - 'claimRedeliveryFk', - ], - where: { - claimFk: route.params.id, - }, -}; +const developmentsFilter = computed(() => { + return { + fields: [ + 'id', + 'claimFk', + 'claimReasonFk', + 'claimResultFk', + 'claimResponsibleFk', + 'workerFk', + 'claimRedeliveryFk', + ], + where: { + claimFk: route.params.id, + }, + }; +}); const columns = computed(() => [ { @@ -142,9 +144,9 @@ const columns = computed(() => [ ref="claimDevelopmentForm" :data-required="{ claimFk: route.params.id }" v-model:selected="selected" - auto-load @save-changes="$router.push(`/claim/${route.params.id}/action`)" :default-save="false" + auto-load >