forked from verdnatura/salix-front
fix(VnTable): orderBy v-model
This commit is contained in:
parent
2bea46b601
commit
4b2f4ffac1
|
@ -315,7 +315,7 @@ defineExpose({
|
||||||
col?.columnFilter !== false &&
|
col?.columnFilter !== false &&
|
||||||
col?.name !== 'tableActions'
|
col?.name !== 'tableActions'
|
||||||
"
|
"
|
||||||
v-model="orders[col.name]"
|
v-model="orders[col.orderBy ?? col.name]"
|
||||||
:name="col.orderBy ?? col.name"
|
:name="col.orderBy ?? col.name"
|
||||||
:data-key="$attrs['data-key']"
|
:data-key="$attrs['data-key']"
|
||||||
:search-url="searchUrl"
|
:search-url="searchUrl"
|
||||||
|
@ -409,7 +409,7 @@ defineExpose({
|
||||||
style="height: 30px"
|
style="height: 30px"
|
||||||
>
|
>
|
||||||
<VnTableOrder
|
<VnTableOrder
|
||||||
v-model="orders[col.name]"
|
v-model="orders[col.orderBy ?? col.name]"
|
||||||
:name="col.orderBy ?? col.name"
|
:name="col.orderBy ?? col.name"
|
||||||
:label="col?.label"
|
:label="col?.label"
|
||||||
:data-key="$attrs['data-key']"
|
:data-key="$attrs['data-key']"
|
||||||
|
|
|
@ -50,7 +50,7 @@ const columns = computed(() => [
|
||||||
align: 'left',
|
align: 'left',
|
||||||
label: t('claim.attendedBy'),
|
label: t('claim.attendedBy'),
|
||||||
name: 'attendedBy',
|
name: 'attendedBy',
|
||||||
cardVisible: true,
|
orderBy: 'workerFk',
|
||||||
columnFilter: {
|
columnFilter: {
|
||||||
component: 'select',
|
component: 'select',
|
||||||
attrs: {
|
attrs: {
|
||||||
|
@ -63,6 +63,7 @@ const columns = computed(() => [
|
||||||
optionFilter: 'firstName',
|
optionFilter: 'firstName',
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
cardVisible: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
align: 'left',
|
align: 'left',
|
||||||
|
|
Loading…
Reference in New Issue