мультивыбор

This commit is contained in:
Denzel committed 2025-01-21 11:12:20 +03:00
1 parent 459e7d0203
commit d551f80c77
1 file changed
+8 -8
@@ -15,7 +15,6 @@
</v-btn>
</v-col>
</v-col>
</v-row>
</v-col>
<div class="d-flex flex-column flex-fill ">
@@ -31,7 +30,6 @@
</v-stepper-item>
</template>
</v-stepper-header>
<v-stepper-window class="d-flex flex-column flex-fill">
<v-stepper-window-item v-for="(question, index) in data.questions" :key="question.numb"
:step="question.numb"
@@ -47,8 +45,13 @@
</div>
<div class="v-col-6" style="max-height:50vh">
<v-list v-model:selected="result[question.id]" density="compact" select-strategy="leaf" slim style="max-height: 100%; overflow-y: auto;">
<v-list-item v-for="answer in question.answers" :key="answer.id" :value="answer.id"
density="compact">
<v-list-item
v-for="answer in question.answers"
:key="answer.id"
:value="answer.id"
:disabled="result[question.id].length >= question.settings.multiChoice && !result[question.id].includes(answer.id)"
density="compact"
>
{{ answer.employee?.fio || answer.name }}
<template v-slot:prepend="{ isSelected }">
<v-list-item-action start>
@@ -60,13 +63,10 @@
</template>
</v-list-item>
</v-list>
</div>
</v-row>
</div>
<!-- Действия -->
<v-card-actions class="">
</v-card-actions>
</v-stepper-window-item>
</v-stepper-window>