From 310bd060fe370214e5150911afd00b30ffd712fa Mon Sep 17 00:00:00 2001 From: Nukeap <53114367+Nukeap@users.noreply.github.com> Date: Mon, 3 Feb 2025 09:38:11 +0300 Subject: [PATCH] P-141 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit form.createnews - добавлено для настройки публикации новости --- src/front/src/components/vote/VoteConstructor.vue | 9 +++++++++ src/front/src/utils/axios-api.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue index 78caae4de..1971abdbd 100644 --- a/src/front/src/components/vote/VoteConstructor.vue +++ b/src/front/src/components/vote/VoteConstructor.vue @@ -43,6 +43,14 @@
+
Публикация новости: +
Дата и время:
@@ -360,6 +368,7 @@ export default { startDate: new Date(), endDate: new Date(new Date().setDate(new Date().getDate() + 14)), questions: [], + createnews:false }); const rules = { diff --git a/src/front/src/utils/axios-api.js b/src/front/src/utils/axios-api.js index 15cc0729a..04f187764 100644 --- a/src/front/src/utils/axios-api.js +++ b/src/front/src/utils/axios-api.js @@ -117,7 +117,7 @@ async function createVote(voteData) { }); - + formData.append('createnews', voteData.createnews); formData.append('title', voteData.title); formData.append('description', voteData.description); formData.append('startDate', new Date(voteData.startDate).toISOString());