Update VoteConstructor.vue

This commit is contained in:
Nukeap committed 2025-01-21 11:42:36 +03:00
1 parent d1796bd1d8
commit 6e8adca9ff
1 file changed
+3 -3
@@ -133,12 +133,12 @@
</div>
{{ question.answers }}
<v-autocomplete clearable :v-model="question.answers" :items="allEmployees"
<v-autocomplete clearable v-model="question.answers" :items="allEmployees"
item-title="fio" item-value="id" label="Выберите сотрудников"
multiple
variant="outlined"
density="compact"
single-line
:value-comparator="(a, b) => a === b"
@update:model-value="(selected)=>onEmployeesChange(selected, index)">
<template #prepend-item>
@@ -271,7 +271,7 @@ export default {
console.log(selected, index);
if (!selected) {
form.value.questions[index].answers = groupedEmployees.value.map((employee) => ({
form.value.questions[index].answers = allEmployees.value.map((employee) => ({
text: employee.id,
image: null,
}));