From 3eee766c8e2608c06bda80e4eefe3a44212e9b29 Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Mon, 2 Jun 2025 15:29:43 +0300 Subject: [PATCH 1/3] =?UTF-8?q?fix=20[P-250]:=20=D0=B2=D1=91=D1=80=D1=81?= =?UTF-8?q?=D1=82=D0=BA=D0=B0=20=D0=BC=D0=BE=D0=B4=D0=B0=D0=BB=D0=BA=D0=B8?= =?UTF-8?q?=20=D0=B7=D0=B0=D0=B2=D0=B5=D1=80=D1=88=D0=B5=D0=BD=D0=B8=D1=8F?= =?UTF-8?q?=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/testing/DetailCardTest.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/front/src/components/testing/DetailCardTest.vue b/src/front/src/components/testing/DetailCardTest.vue index 19e223465..3a050c5d9 100644 --- a/src/front/src/components/testing/DetailCardTest.vue +++ b/src/front/src/components/testing/DetailCardTest.vue @@ -302,8 +302,8 @@ export default { background-color: #004d40; color: white; padding: 16px; - border-top-left-radius: 8px; - border-top-right-radius: 8px; + border-top-left-radius: 4px; + border-top-right-radius: 4px; } .v-dialog .v-card-actions { From d5fa806b434be48c0352559d71fb04d23aa48996 Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Mon, 2 Jun 2025 15:39:00 +0300 Subject: [PATCH 2/3] =?UTF-8?q?fix=20[P-250]:=20=D1=82=D0=B5=D0=BA=D1=81?= =?UTF-8?q?=D1=82=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BA=D0=B8=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=20=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8=D0=B8=20?= =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/front/src/components/vote/VoteConstructor.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue index 437c5f2d9..580c5e1e8 100644 --- a/src/front/src/components/vote/VoteConstructor.vue +++ b/src/front/src/components/vote/VoteConstructor.vue @@ -540,11 +540,14 @@ export default { } } catch (error) { console.error('Ошибка при создании:', error); - let errorMessage = 'Произошла ошибка при создании'; + let msg = 'Произошла ошибка при создании'; if (error.response?.data?.message) { - errorMessage += ': ' + error.response.data.message; + msg = error.response.data.message; + } else if (error.message) { + msg = error.message; } - alert(errorMessage); + errorMessage.value = msg; + alert(msg); } }; From 1e09f10b8de2569efc6d8865ab9b26a59d67f759 Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Mon, 2 Jun 2025 15:48:24 +0300 Subject: [PATCH 3/3] feat [P-01]: news true --- src/front/src/components/vote/ConstructorVote/MainInfo.vue | 6 +++--- src/front/src/components/vote/VoteConstructor.vue | 4 ++-- src/front/src/utils/axios-api.js | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/front/src/components/vote/ConstructorVote/MainInfo.vue b/src/front/src/components/vote/ConstructorVote/MainInfo.vue index ca35e67f7..241a5c8d1 100644 --- a/src/front/src/components/vote/ConstructorVote/MainInfo.vue +++ b/src/front/src/components/vote/ConstructorVote/MainInfo.vue @@ -20,12 +20,12 @@
Публикация новости:
Дата и время:
@@ -107,7 +107,7 @@ export default { : { title: '', description: '', - createnews: false, + news: false, appoint: false, startDate: new Date(), endDate: new Date(), diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue index 580c5e1e8..d6c8d0729 100644 --- a/src/front/src/components/vote/VoteConstructor.vue +++ b/src/front/src/components/vote/VoteConstructor.vue @@ -335,7 +335,7 @@ export default { startDate: props.isTest ? null : new Date(), endDate: props.isTest ? null : new Date(new Date().setDate(new Date().getDate() + 14)), questions: [], - createnews: false, + news: false, appoint: false }); @@ -570,7 +570,7 @@ export default { startDate: props.isTest ? null : new Date(), endDate: props.isTest ? null : new Date(new Date().setDate(new Date().getDate() + 14)), questions: [], - createnews: false, + news: false, appoint: false }; testSettings.value = { diff --git a/src/front/src/utils/axios-api.js b/src/front/src/utils/axios-api.js index 3243c1191..8f3c12a7d 100644 --- a/src/front/src/utils/axios-api.js +++ b/src/front/src/utils/axios-api.js @@ -120,7 +120,7 @@ async function createVote(voteData) { }); - formData.append('createnews', voteData.createnews); + formData.append('news', voteData.news); formData.append('title', voteData.title); formData.append('description', voteData.description); formData.append('startDate', new Date(voteData.startDate).toISOString());