Update CurrentVote.vue
This commit is contained in:
1 parent
c43f303e3e
commit
fd9f541c6e
1 file changed
+29
-39
@@ -1,8 +1,8 @@
|
||||
<template>
|
||||
<template v-if="!isVoteSubmitted">
|
||||
<v-card>
|
||||
<div class="d-flex flex-column px-2 flex-fill">
|
||||
<v-col cols="auto">
|
||||
<div class="d-flex flex-column flex-fill px-2" >
|
||||
<!-- <v-col cols="auto">
|
||||
<v-row class="d-flex flex-column">
|
||||
<v-col cols="12" class="d-flex flex-row pa-0">
|
||||
<v-col>
|
||||
@@ -18,30 +18,34 @@
|
||||
|
||||
|
||||
</v-row>
|
||||
</v-col>
|
||||
<!-- <v-col class=" "> -->
|
||||
<v-stepper v-model="activeStep" class="d-flex flex-column flex-fill col">
|
||||
</v-col> -->
|
||||
<div class="bg-yellow flex-column d-flex align-stretch">
|
||||
<v-stepper class="" v-model="activeStep">
|
||||
<!-- Шаги голосования -->
|
||||
<v-stepper-header>
|
||||
<v-stepper-item v-for="question in data.questions" :key="question.numb"
|
||||
<v-stepper-header class="py-0">
|
||||
<template v-for="question in data.questions" :key="question.numb">
|
||||
<v-stepper-item
|
||||
:complete="question.numb < activeStep" :step="question.numb">
|
||||
Вопрос {{ question.numb }}
|
||||
</v-stepper-item>
|
||||
</template>
|
||||
</v-stepper-header>
|
||||
|
||||
<v-stepper-window class="d-flex flex-column flex-fill">
|
||||
<v-stepper-window class="bg-red" >
|
||||
<v-stepper-window-item v-for="(question, index) in data.questions" :key="question.numb"
|
||||
class="bg-red "
|
||||
class=" "
|
||||
:step="question.numb">
|
||||
<!-- <v-card> -->
|
||||
<div>{{ question.question }}</div>
|
||||
<!-- -->
|
||||
<div class="d-flex flex-column flex-fill">
|
||||
<v-col cols="2" class="align-self-center">
|
||||
sd
|
||||
<!-- <v-card class="d-flex flex-fill" > -->
|
||||
<div class="v-row d-flex flex-column ">
|
||||
<div class="v-col-auto" >{{ question.question }}</div>
|
||||
|
||||
<div class="v-col-2">
|
||||
<v-img cover class=" " :src="question.file" />
|
||||
</v-col>
|
||||
<v-col class="bg-pink">
|
||||
<v-list v-model:selected="result[question.id]" slim density="compact" select-strategy="leaf">
|
||||
</div>
|
||||
<div class="v-col-auto bg-yellow">
|
||||
sds
|
||||
<!-- <v-list v-model:selected="result[question.id]" slim density="compact" select-strategy="leaf">
|
||||
|
||||
<v-list-item density="compact" v-for="answer in question.answers" :key="answer.id"
|
||||
:value="answer.id">
|
||||
@@ -53,29 +57,14 @@
|
||||
</template>
|
||||
</v-list-item>
|
||||
|
||||
</v-list>
|
||||
</v-col>
|
||||
</v-list> -->
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- Ответы на вопрос -->
|
||||
|
||||
<!-- {{ data.questions }} -->
|
||||
<!--
|
||||
<v-row v-for="(answer, id) in question.answers" :key="id">
|
||||
<v-checkbox
|
||||
v-model="result[question.id]"
|
||||
:label="answer.answer"
|
||||
:value="answer.id"
|
||||
color="teal-darken-4"
|
||||
hide-details
|
||||
>
|
||||
|
||||
</v-checkbox>
|
||||
</v-row> -->
|
||||
|
||||
|
||||
|
||||
<!-- Действия -->
|
||||
<v-card-actions>
|
||||
<!-- <v-card-actions class="">
|
||||
<v-btn v-if="index > 0" @click="prevStep" outlined>Назад</v-btn>
|
||||
<v-btn v-if="index < data.questions.length - 1" :disabled="!isCurrentQuestionAnswered" @click="nextStep"
|
||||
color="teal-darken-4">
|
||||
@@ -84,14 +73,15 @@
|
||||
<v-btn v-else :disabled="!isCurrentQuestionAnswered" color="teal-darken-4" @click="submitVote">
|
||||
Отправить
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card-actions> -->
|
||||
<!-- </v-card> -->
|
||||
<!-- </v-card> -->
|
||||
</v-stepper-window-item>
|
||||
|
||||
</v-stepper-window>
|
||||
<v-stepper-actions>sd</v-stepper-actions>
|
||||
<v-stepper-actions >sd</v-stepper-actions>
|
||||
</v-stepper>
|
||||
<!-- </v-col> -->
|
||||
</div>
|
||||
</div>
|
||||
</v-card>
|
||||
</template>
|
||||
|
||||
Reference in new issue
Block a user