refactor: refs #7356 fixed VnTable filters
This commit is contained in:
parent
cb610608df
commit
1e959307d8
|
@ -68,9 +68,12 @@ const columns = computed(() => [
|
||||||
label: t('weeklyTickets.shipment'),
|
label: t('weeklyTickets.shipment'),
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
columnFilter: {
|
columnFilter: {
|
||||||
component: 'input',
|
component: 'select',
|
||||||
|
attrs: {
|
||||||
|
options: weekdays,
|
||||||
optionLabel: weekdays.name,
|
optionLabel: weekdays.name,
|
||||||
optionValue: weekdays.id,
|
optionValue: weekdays.id,
|
||||||
|
},
|
||||||
inWhere: true,
|
inWhere: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -81,6 +84,7 @@ const columns = computed(() => [
|
||||||
cardVisible: true,
|
cardVisible: true,
|
||||||
columnFilter: {
|
columnFilter: {
|
||||||
component: 'select',
|
component: 'select',
|
||||||
|
alias: 'tw',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'AgencyModes',
|
url: 'AgencyModes',
|
||||||
fields: ['id', 'name'],
|
fields: ['id', 'name'],
|
||||||
|
@ -112,10 +116,11 @@ const columns = computed(() => [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
name: 'workerFk',
|
name: 'id',
|
||||||
label: t('weeklyTickets.salesperson'),
|
label: t('weeklyTickets.salesperson'),
|
||||||
columnFilter: {
|
columnFilter: {
|
||||||
component: 'select',
|
component: 'select',
|
||||||
|
alias: 'u',
|
||||||
attrs: {
|
attrs: {
|
||||||
url: 'Workers/activeWithInheritedRole',
|
url: 'Workers/activeWithInheritedRole',
|
||||||
fields: ['id', 'name'],
|
fields: ['id', 'name'],
|
||||||
|
@ -230,7 +235,7 @@ onUnmounted(() => (stateStore.rightDrawer = false));
|
||||||
<CustomerDescriptorProxy :id="row.clientFk" />
|
<CustomerDescriptorProxy :id="row.clientFk" />
|
||||||
</span>
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template #column-workerFk="{ row }">
|
<template #column-id="{ row }">
|
||||||
<span class="link" @click.stop>
|
<span class="link" @click.stop>
|
||||||
{{ row.userName }}
|
{{ row.userName }}
|
||||||
<WorkerDescriptorProxy :id="row.workerFk" />
|
<WorkerDescriptorProxy :id="row.workerFk" />
|
||||||
|
|
Loading…
Reference in New Issue