Update VoteHomePage.vue
This commit is contained in:
1 parent
051b1d6521
commit
2d57632a4d
1 file changed
+9
-59
@@ -2,71 +2,21 @@
|
|||||||
<v-container fluid class="pt-2 d-flex flex-column">
|
<v-container fluid class="pt-2 d-flex flex-column">
|
||||||
<v-row class="flex-column">
|
<v-row class="flex-column">
|
||||||
<v-col cols="auto">
|
<v-col cols="auto">
|
||||||
<v-tabs v-model="currentTab">
|
<v-tabs
|
||||||
<v-tab v-for="x in tabs" :key="x.value" :value="x.value">{{ x.text }}</v-tab>
|
grow
|
||||||
|
v-model="currentTab">
|
||||||
|
<v-tab
|
||||||
|
|
||||||
|
v-for="x in tabs" :key="x.value" :value="x.value">{{ x.text }}</v-tab>
|
||||||
|
|
||||||
</v-tabs>
|
</v-tabs>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col class="overflow-auto ">
|
<v-col class="overflow-auto ">
|
||||||
<v-tabs-window v-model="currentTab">
|
<v-window v-model="currentTab" class="bg-red v-row flex-column" >
|
||||||
<!-- Текущие голосования -->
|
<!-- Текущие голосования -->
|
||||||
<v-tabs-window-item value="current">
|
<v-col>ews</v-col>s
|
||||||
<v-container>
|
|
||||||
<v-row>
|
|
||||||
<v-col
|
|
||||||
v-for="voting in sortedCurrentVotes"
|
|
||||||
:key="voting.id"
|
|
||||||
cols="12"
|
|
||||||
lg="4"
|
|
||||||
md="4"
|
|
||||||
>
|
|
||||||
<VoteCardVue
|
|
||||||
:voteCard="voting"
|
|
||||||
@openVoteModal="(voting) => openModal('vote', voting)"
|
|
||||||
@openEditVoteModal="(voting) => openModal('edit', voting)"
|
|
||||||
@deleteVoting="deleteVoting"
|
|
||||||
/>
|
|
||||||
</v-col>
|
|
||||||
</v-row>
|
|
||||||
</v-container>
|
|
||||||
</v-tabs-window-item>
|
|
||||||
|
|
||||||
<!-- Завершенные голосования -->
|
</v-window>
|
||||||
<v-tabs-window-item value="completed">
|
|
||||||
<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">
|
|
||||||
<VoteConstructor @updating="updating" />
|
|
||||||
</v-tabs-window-item>
|
|
||||||
</v-tabs-window>
|
|
||||||
|
|
||||||
<!-- Модальные окна -->
|
<!-- Модальные окна -->
|
||||||
<v-dialog v-model="voteModal" @click:outside="closeModal">
|
<v-dialog v-model="voteModal" @click:outside="closeModal">
|
||||||
|
|||||||
Reference in new issue
Block a user