q
This commit is contained in:
1 parent
2d57632a4d
commit
96eaaf83b2
2 files changed
+63
-6
No files matched your search
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<v-row class="pt-2">
|
||||
<v-row class="pt-2 mx-2 flex-column bg-red">
|
||||
<template v-if="isVoteCreated">
|
||||
<v-card class="text-center pa-8" flat>
|
||||
<v-icon color="success" size="48">mdi-check-circle</v-icon>
|
||||
@@ -8,7 +8,7 @@
|
||||
</v-card>
|
||||
</template>
|
||||
<template v-else>
|
||||
<div class="v-col bg-red">
|
||||
<div class="v-col-12 ">
|
||||
<v-stepper v-model="step" editable>
|
||||
<v-stepper-header>
|
||||
<v-stepper-item :complete="step > 0" step="1">Основная информация</v-stepper-item>
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
<v-row class="flex-column">
|
||||
<v-col cols="auto">
|
||||
<v-tabs
|
||||
grow
|
||||
align="center"
|
||||
v-model="currentTab">
|
||||
<v-tab
|
||||
|
||||
@@ -11,10 +11,67 @@
|
||||
|
||||
</v-tabs>
|
||||
</v-col>
|
||||
<v-col class="overflow-auto ">
|
||||
<v-window v-model="currentTab" class="bg-red v-row flex-column" >
|
||||
<v-col class="overflow-auto pa-0">
|
||||
<v-window v-model="currentTab" class=" h-100" >
|
||||
<!-- Текущие голосования -->
|
||||
<v-col>ews</v-col>s
|
||||
<!-- <v-tabs-window v-model="currentTab"> -->
|
||||
<!-- Текущие голосования -->
|
||||
<v-tabs-window-item value="current" class="h-100 overflow-auto">
|
||||
<v-row class="mx-2">
|
||||
<v-col
|
||||
v-for="voting in sortedCurrentVotes"
|
||||
:key="voting.id"
|
||||
cols="12"
|
||||
lg="3"
|
||||
md="4"
|
||||
>
|
||||
<VoteCardVue
|
||||
:voteCard="voting"
|
||||
@openVoteModal="(voting) => openModal('vote', voting)"
|
||||
@openEditVoteModal="(voting) => openModal('edit', voting)"
|
||||
@deleteVoting="deleteVoting"
|
||||
/>
|
||||
</v-col>
|
||||
</v-row>
|
||||
|
||||
</v-tabs-window-item>
|
||||
|
||||
<!-- Завершенные голосования -->
|
||||
<v-tabs-window-item value="completed" class="h-100 overflow-auto">
|
||||
<v-container>
|
||||
<v-row>
|
||||
<v-col
|
||||
v-for="voting in sortedCompletedVotes"
|
||||
:key="voting.id"
|
||||
cols="12"
|
||||
lg="3"
|
||||
md="4"
|
||||
:class="{ 'voted-card': voting.voted }"
|
||||
>
|
||||
<v-card>
|
||||
<v-card-title>{{ voting.title }}</v-card-title>
|
||||
<v-card-subtitle>
|
||||
Завершено: {{ formatDate(voting.endDate) }}
|
||||
</v-card-subtitle>
|
||||
<v-card-actions class="justify-space-between">
|
||||
<v-btn color="teal-darken-4" size="medium" @click="(voting) => openModal('results', voting)">
|
||||
Результаты
|
||||
</v-btn>
|
||||
<v-btn color="error" size="medium" @click="deleteVoting(voting.id)">
|
||||
<v-icon>mdi-delete</v-icon>
|
||||
</v-btn>
|
||||
</v-card-actions>
|
||||
</v-card>
|
||||
</v-col>
|
||||
</v-row>
|
||||
</v-container>
|
||||
</v-tabs-window-item>
|
||||
|
||||
<!-- Конструктор -->
|
||||
<v-tabs-window-item value="constructor" class="h-100 overflow-auto bg-yellow">
|
||||
<VoteConstructor @updating="updating" />
|
||||
</v-tabs-window-item>
|
||||
<!-- </v-tabs-window> -->
|
||||
|
||||
</v-window>
|
||||
|
||||
|
||||
Reference in new issue
Block a user