feat: refs #7936 simplify optionLabel wip
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
gitea/salix-front/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
fdd947fbbb
commit
fb1928db7e
|
@ -41,11 +41,7 @@ const columns = computed(() => [
|
||||||
options: expenses.value,
|
options: expenses.value,
|
||||||
model: 'expenseFk',
|
model: 'expenseFk',
|
||||||
optionValue: 'id',
|
optionValue: 'id',
|
||||||
optionLabel: (row) => {
|
optionLabel: (row) => `${row.id}: ${row.name}`,
|
||||||
if (isNaN(row)) return `${row.id}: ${row.name}`;
|
|
||||||
let label = expenses.value.find((expense) => expense.id == row);
|
|
||||||
return `${label.id}: ${label.name}`;
|
|
||||||
},
|
|
||||||
sortable: true,
|
sortable: true,
|
||||||
align: 'left',
|
align: 'left',
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue