P-141
form.createnews - добавлено для настройки публикации новости
This commit is contained in:
1 parent
9977bff3ac
commit
310bd060fe
2 files changed
+10
-1
No files matched your search
@@ -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