refactor: refs #7527 update filter logic in CustomerSamples.vue and remove unused route in customer.js
gitea/salix-front/pipeline/pr-dev This commit is unstable Details

This commit is contained in:
Alex Moreno 2025-04-11 08:50:57 +02:00
parent 37265740de
commit cb9eb61b16
2 changed files with 2 additions and 11 deletions

View File

@ -20,9 +20,7 @@ const filter = {
{ relation: 'user', scope: { fields: ['id', 'name'] } }, { relation: 'user', scope: { fields: ['id', 'name'] } },
{ relation: 'company', scope: { fields: ['code'] } }, { relation: 'company', scope: { fields: ['code'] } },
], ],
where: { clientFk: route.params.id },
order: ['created DESC'], order: ['created DESC'],
limit: 20,
}; };
const columns = computed(() => [ const columns = computed(() => [
@ -76,7 +74,8 @@ const tableRef = ref();
ref="tableRef" ref="tableRef"
data-key="ClientSamples" data-key="ClientSamples"
auto-load auto-load
:filter="filter" :user-filter="filter"
:filter="{ where: { clientFk: route.params.id } }"
url="ClientSamples" url="ClientSamples"
:columns="columns" :columns="columns"
:pagination="{ rowsPerPage: 12 }" :pagination="{ rowsPerPage: 12 }"

View File

@ -274,14 +274,6 @@ const customerCard = {
component: () => component: () =>
import('src/pages/Customer/Card/CustomerSamples.vue'), import('src/pages/Customer/Card/CustomerSamples.vue'),
}, },
{
path: 'create',
name: 'CustomerSamplesCreate',
component: () =>
import(
'src/pages/Customer/components/CustomerSamplesCreate.vue'
),
},
], ],
}, },
{ {