реф
This commit is contained in:
1 parent
4848a6dc01
commit
ecd8ad1c9b
1 file changed
+5
-26
@@ -8,10 +8,10 @@
|
|||||||
<v-tab v-for="x in tabs" :key="x.value" :value="x.value">{{ x.text }}</v-tab>
|
<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=" pa-0 overflow-hidden">
|
<v-col class="pa-0 overflow-hidden">
|
||||||
<v-window v-model="currentTab" class=" h-100">
|
<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-row class="mx-2">
|
||||||
<v-col
|
<v-col
|
||||||
v-for="voting in sortedVotes"
|
v-for="voting in sortedVotes"
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
</v-row>
|
</v-row>
|
||||||
</v-tabs-window-item>
|
</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"/>
|
<VoteConstructor @updating="updating"/>
|
||||||
</v-tabs-window-item>
|
</v-tabs-window-item>
|
||||||
</v-window>
|
</v-window>
|
||||||
@@ -41,19 +41,6 @@
|
|||||||
<CurrentVote :data="res" @closer="closeModal"/>
|
<CurrentVote :data="res" @closer="closeModal"/>
|
||||||
</v-dialog>
|
</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-dialog v-model="resultsModal" max-width="1200px" @click:outside="closeModal">
|
||||||
<v-card>
|
<v-card>
|
||||||
<VoteResult :data="result" @closer="closeModal" />
|
<VoteResult :data="result" @closer="closeModal" />
|
||||||
@@ -103,7 +90,6 @@ export default {
|
|||||||
updating("active");
|
updating("active");
|
||||||
|
|
||||||
const voteModal = ref(false);
|
const voteModal = ref(false);
|
||||||
// const editVoteModal = ref(false);
|
|
||||||
const resultsModal = ref(false);
|
const resultsModal = ref(false);
|
||||||
const selectedVoting = ref(null);
|
const selectedVoting = ref(null);
|
||||||
|
|
||||||
@@ -133,7 +119,6 @@ export default {
|
|||||||
|
|
||||||
const closeModal = () => {
|
const closeModal = () => {
|
||||||
voteModal.value = false;
|
voteModal.value = false;
|
||||||
// editVoteModal.value = false;
|
|
||||||
resultsModal.value = false;
|
resultsModal.value = false;
|
||||||
selectedVoting.value = null;
|
selectedVoting.value = null;
|
||||||
router.push({name: "VoteHomePage"});
|
router.push({name: "VoteHomePage"});
|
||||||
@@ -147,12 +132,7 @@ export default {
|
|||||||
await loadVoteDetails(voting.id);
|
await loadVoteDetails(voting.id);
|
||||||
voteModal.value = true;
|
voteModal.value = true;
|
||||||
router.push({name: "Voting", params: {id: voting.id}});
|
router.push({name: "Voting", params: {id: voting.id}});
|
||||||
}
|
} else if (type === "results") {
|
||||||
// else if (type === "edit") {
|
|
||||||
// editVoteModal.value = true;
|
|
||||||
// router.push({name: "EditVote", params: {id: voting.id}});
|
|
||||||
// }
|
|
||||||
else if (type === "results") {
|
|
||||||
await loadVoteResult(voting.id);
|
await loadVoteResult(voting.id);
|
||||||
resultsModal.value = true;
|
resultsModal.value = true;
|
||||||
router.push({name: "VoteResults", params: {id: voting.id}});
|
router.push({name: "VoteResults", params: {id: voting.id}});
|
||||||
@@ -197,7 +177,6 @@ export default {
|
|||||||
votes,
|
votes,
|
||||||
sortedVotes,
|
sortedVotes,
|
||||||
voteModal,
|
voteModal,
|
||||||
// editVoteModal,
|
|
||||||
resultsModal,
|
resultsModal,
|
||||||
selectedVoting,
|
selectedVoting,
|
||||||
openModal,
|
openModal,
|
||||||
|
|||||||
Reference in new issue
Block a user