forked from verdnatura/salix-front
hotFix(claim_development): reload when change route id
This commit is contained in:
parent
6abce3c7d0
commit
8c754dd196
|
@ -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
|
||||
>
|
||||
<template #body="{ rows }">
|
||||
<QTable
|
||||
|
|
Loading…
Reference in New Issue