мультивыбор

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-btn>
</v-col> </v-col>
</v-col> </v-col>
</v-row> </v-row>
</v-col> </v-col>
<div class="d-flex flex-column flex-fill "> <div class="d-flex flex-column flex-fill ">
@@ -31,7 +30,6 @@
</v-stepper-item> </v-stepper-item>
</template> </template>
</v-stepper-header> </v-stepper-header>
<v-stepper-window class="d-flex flex-column flex-fill"> <v-stepper-window class="d-flex flex-column flex-fill">
<v-stepper-window-item v-for="(question, index) in data.questions" :key="question.numb" <v-stepper-window-item v-for="(question, index) in data.questions" :key="question.numb"
:step="question.numb" :step="question.numb"
@@ -47,8 +45,13 @@
</div> </div>
<div class="v-col-6" style="max-height:50vh"> <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 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" <v-list-item
density="compact"> 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 }} {{ answer.employee?.fio || answer.name }}
<template v-slot:prepend="{ isSelected }"> <template v-slot:prepend="{ isSelected }">
<v-list-item-action start> <v-list-item-action start>
@@ -60,13 +63,10 @@
</template> </template>
</v-list-item> </v-list-item>
</v-list> </v-list>
</div> </div>
</v-row> </v-row>
</div> </div>
<!-- Действия -->
<v-card-actions class="">
</v-card-actions>
</v-stepper-window-item> </v-stepper-window-item>
</v-stepper-window> </v-stepper-window>