This commit is contained in:
Denzel committed 2025-01-22 15:32:18 +03:00
1 parent 4848a6dc01
commit ecd8ad1c9b
1 file changed
+5 -26
+5 -26
View File
@@ -8,10 +8,10 @@
<v-tab v-for="x in tabs" :key="x.value" :value="x.value">{{ x.text }}</v-tab>
</v-tabs>
</v-col>
<v-col class=" pa-0 overflow-hidden">
<v-window v-model="currentTab" class=" h-100">
<v-col class="pa-0 overflow-hidden">
<v-window v-model="currentTab" class="h-100">
<!-- Текущие голосования -->
<v-tabs-window-item v-for="x in ['active','completed']" :value="x" class="h-100 overflow-auto">
<v-tabs-window-item v-for="x in ['active','completed']" :value="x" class="h-100 overflow-auto">
<v-row class="mx-2">
<v-col
v-for="voting in sortedVotes"
@@ -31,7 +31,7 @@
</v-row>
</v-tabs-window-item>
<!-- Конструктор -->
<v-tabs-window-item class="h-100 " value="constructor">
<v-tabs-window-item class="h-100" value="constructor">
<VoteConstructor @updating="updating"/>
</v-tabs-window-item>
</v-window>
@@ -41,19 +41,6 @@
<CurrentVote :data="res" @closer="closeModal"/>
</v-dialog>
<!-- <v-dialog v-model="editVoteModal" max-width="1200px" @click:outside="closeModal">-->
<!-- <v-card>-->
<!-- <v-card-title>Редактировать голосование: {{ selectedVoting?.title }}</v-card-title>-->
<!-- <v-card-text>-->
<!-- <VoteConstructor/>-->
<!-- </v-card-text>-->
<!-- <v-card-actions>-->
<!-- <v-btn color="teal-darken-4">Сохранить</v-btn>-->
<!-- <v-btn @click="closeModal">Закрыть</v-btn>-->
<!-- </v-card-actions>-->
<!-- </v-card>-->
<!-- </v-dialog>-->
<v-dialog v-model="resultsModal" max-width="1200px" @click:outside="closeModal">
<v-card>
<VoteResult :data="result" @closer="closeModal" />
@@ -103,7 +90,6 @@ export default {
updating("active");
const voteModal = ref(false);
// const editVoteModal = ref(false);
const resultsModal = ref(false);
const selectedVoting = ref(null);
@@ -133,7 +119,6 @@ export default {
const closeModal = () => {
voteModal.value = false;
// editVoteModal.value = false;
resultsModal.value = false;
selectedVoting.value = null;
router.push({name: "VoteHomePage"});
@@ -147,12 +132,7 @@ export default {
await loadVoteDetails(voting.id);
voteModal.value = true;
router.push({name: "Voting", params: {id: voting.id}});
}
// else if (type === "edit") {
// editVoteModal.value = true;
// router.push({name: "EditVote", params: {id: voting.id}});
// }
else if (type === "results") {
} else if (type === "results") {
await loadVoteResult(voting.id);
resultsModal.value = true;
router.push({name: "VoteResults", params: {id: voting.id}});
@@ -197,7 +177,6 @@ export default {
votes,
sortedVotes,
voteModal,
// editVoteModal,
resultsModal,
selectedVoting,
openModal,