Merge branch 'dev-denzel' into develop
This commit is contained in:
commit
f1f560ed42
1 file changed
+6
-25
@@ -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"
|
||||
@@ -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,10 +119,11 @@ export default {
|
||||
|
||||
const closeModal = () => {
|
||||
voteModal.value = false;
|
||||
// editVoteModal.value = false;
|
||||
resultsModal.value = false;
|
||||
selectedVoting.value = null;
|
||||
router.push({name: "VoteHomePage"});
|
||||
if (route.name === "Voting") updating('active')
|
||||
if (route.name === "VoteResults") updating('completed')
|
||||
};
|
||||
|
||||
const openModal = async (type, voting) => {
|
||||
@@ -145,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}});
|
||||
@@ -195,7 +177,6 @@ export default {
|
||||
votes,
|
||||
sortedVotes,
|
||||
voteModal,
|
||||
// editVoteModal,
|
||||
resultsModal,
|
||||
selectedVoting,
|
||||
openModal,
|
||||
|
||||
Reference in new issue
Block a user