fix: WorkerSelect option format
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-06-25 22:51:26 +02:00
parent 7a2b334a64
commit d409b9ea86
1 changed files with 15 additions and 2 deletions

View File

@ -59,9 +59,22 @@ const onStateFkChange = (formData) => (formData.userFk = user.value.id);
v-model="data.userFk" v-model="data.userFk"
:options="workersOptions" :options="workersOptions"
hide-selected hide-selected
option-label="nickname" option-label="name"
option-value="id" option-value="id"
/> >
<template #option="{ opt, itemProps }">
<QItem v-bind="itemProps">
<QItemSection>
<QItemLabel>
{{ opt.name }}
</QItemLabel>
<QItemLabel caption>
{{ opt.nickname }}, {{ opt.code }}
</QItemLabel>
</QItemSection>
</QItem>
</template></VnSelect
>
</VnRow> </VnRow>
</template> </template>
</FormModelPopup> </FormModelPopup>