Merge branch 'develop' into сja
This commit is contained in:
commit
187f741e08
4 files changed
+18
-3
No files matched your search
@@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="px-4">
|
<div class="px-4">
|
||||||
{{ displayDays + declOfNum(displayDays, [' день', ' дня', ' дней']) }}
|
|
||||||
{{ displayHours + declOfNum(displayHours, [' час', ' часа', ' часов']) }}
|
{{ displayHours + declOfNum(displayHours, [' час', ' часа', ' часов']) }}
|
||||||
{{ displayMinutes + declOfNum(displayMinutes, [' минута', ' минуты', ' минут']) }}
|
{{ displayMinutes + declOfNum(displayMinutes, [' минута', ' минуты', ' минут']) }}
|
||||||
{{ displaySeconds + declOfNum(displaySeconds, [' секунда', ' секунды', ' секунд']) }}
|
{{ displaySeconds + declOfNum(displaySeconds, [' секунда', ' секунды', ' секунд']) }}
|
||||||
|
|||||||
@@ -11,7 +11,14 @@
|
|||||||
</v-row>
|
</v-row>
|
||||||
<v-row class="ma-0 border-b-thin">
|
<v-row class="ma-0 border-b-thin">
|
||||||
<v-col cols="auto" class="flex-grow-1">
|
<v-col cols="auto" class="flex-grow-1">
|
||||||
<v-btn elevation="1" color="teal-darken-1" size="x-small" rounded icon="mdi-information-outline"/>
|
<v-container class="d-flex align-center max-width">
|
||||||
|
<v-btn elevation="1" color="teal-darken-1" size="x-small" rounded icon="mdi-information-outline" />
|
||||||
|
<v-pagination :length="25" :total-visible="20" next-icon="mdi-menu-right" prev-icon="mdi-menu-left">
|
||||||
|
<template #item="item">
|
||||||
|
{{ item }}
|
||||||
|
</template>
|
||||||
|
</v-pagination>
|
||||||
|
</v-container>
|
||||||
</v-col>
|
</v-col>
|
||||||
<v-col cols="auto" class="align-self-center">
|
<v-col cols="auto" class="align-self-center">
|
||||||
<v-btn elevation="0" color="#0000001F" rounded="1">Выйти</v-btn>
|
<v-btn elevation="0" color="#0000001F" rounded="1">Выйти</v-btn>
|
||||||
|
|||||||
@@ -43,6 +43,14 @@
|
|||||||
</div>
|
</div>
|
||||||
<v-divider></v-divider>
|
<v-divider></v-divider>
|
||||||
<div class="flex-grow-0 flex-shrink-1">
|
<div class="flex-grow-0 flex-shrink-1">
|
||||||
|
<div class="pt-2 d-flex align-center"><span class="text-overline text-grey text-center">Публикация новости: </span>
|
||||||
|
<v-switch v-model="form.createnews"
|
||||||
|
class="px-2"
|
||||||
|
density="comfortable"
|
||||||
|
hide-details
|
||||||
|
color="primary"
|
||||||
|
:label="form.createnews?'да':'нет'"
|
||||||
|
></v-switch></div>
|
||||||
<div class="pt-2 text-overline text-grey">Дата и время:</div>
|
<div class="pt-2 text-overline text-grey">Дата и время:</div>
|
||||||
<div class="d-flex justify-space-around">
|
<div class="d-flex justify-space-around">
|
||||||
<div class="d-flex ga-3 align-center">
|
<div class="d-flex ga-3 align-center">
|
||||||
@@ -360,6 +368,7 @@ export default {
|
|||||||
startDate: new Date(),
|
startDate: new Date(),
|
||||||
endDate: new Date(new Date().setDate(new Date().getDate() + 14)),
|
endDate: new Date(new Date().setDate(new Date().getDate() + 14)),
|
||||||
questions: [],
|
questions: [],
|
||||||
|
createnews:false
|
||||||
});
|
});
|
||||||
|
|
||||||
const rules = {
|
const rules = {
|
||||||
|
|||||||
@@ -117,7 +117,7 @@ async function createVote(voteData) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
formData.append('createnews', voteData.createnews);
|
||||||
formData.append('title', voteData.title);
|
formData.append('title', voteData.title);
|
||||||
formData.append('description', voteData.description);
|
formData.append('description', voteData.description);
|
||||||
formData.append('startDate', new Date(voteData.startDate).toISOString());
|
formData.append('startDate', new Date(voteData.startDate).toISOString());
|
||||||
|
|||||||
Reference in new issue
Block a user