From 47a264202de8fe4eafc58f103a5c4fb99338f377 Mon Sep 17 00:00:00 2001 From: Denis Voinovich Date: Thu, 29 May 2025 08:08:00 +0300 Subject: [PATCH] =?UTF-8?q?fix=20[P-227]:=20=D1=83=D0=B1=D1=80=D0=B0=D0=BB?= =?UTF-8?q?=D0=B8=20=D0=B4=D0=B0=D1=82=D1=8B=20=D0=B8=D0=B7=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D1=81=D1=82=D1=80=D1=83=D0=BA=D1=82=D0=BE=D1=80=D0=B0=20?= =?UTF-8?q?=D1=82=D0=B5=D1=81=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...est_dateend_test_datestart.cpython-310.pyc | Bin 457 -> 457 bytes .../components/testing/TestConstructor.vue | 420 ------------------ .../vote/ConstructorVote/MainInfo.vue | 4 +- .../src/components/vote/VoteConstructor.vue | 14 +- 4 files changed, 9 insertions(+), 429 deletions(-) delete mode 100644 src/front/src/components/testing/TestConstructor.vue diff --git a/src/back/tests/migrations/__pycache__/0002_test_dateend_test_datestart.cpython-310.pyc b/src/back/tests/migrations/__pycache__/0002_test_dateend_test_datestart.cpython-310.pyc index 9d90a2f8ffb855d107c80909643e9d75d33ba2c6..d6ea40029a6205c901f55a70de6c91056f3381ec 100644 GIT binary patch delta 20 acmX@fe3F?vpO=@50SLT!%r|oHV*~&%Ap}1F delta 20 acmX@fe3F?vpO=@50SFWynr-CX#|Qv2`vmF$ diff --git a/src/front/src/components/testing/TestConstructor.vue b/src/front/src/components/testing/TestConstructor.vue deleted file mode 100644 index 0fd1dcea7..000000000 --- a/src/front/src/components/testing/TestConstructor.vue +++ /dev/null @@ -1,420 +0,0 @@ - - - - - diff --git a/src/front/src/components/vote/ConstructorVote/MainInfo.vue b/src/front/src/components/vote/ConstructorVote/MainInfo.vue index 53a22fe5a..01e384b07 100644 --- a/src/front/src/components/vote/ConstructorVote/MainInfo.vue +++ b/src/front/src/components/vote/ConstructorVote/MainInfo.vue @@ -17,8 +17,8 @@ variant="outlined" > -
Дата и время:
-
+
Дата и время:
+
начало:
diff --git a/src/front/src/components/vote/VoteConstructor.vue b/src/front/src/components/vote/VoteConstructor.vue index 4e5ae8242..fab353619 100644 --- a/src/front/src/components/vote/VoteConstructor.vue +++ b/src/front/src/components/vote/VoteConstructor.vue @@ -164,10 +164,10 @@ Описание: {{ form.description }}

- Дата начала: - {{ form.startDate.toLocaleDateString() }} + Дата начала: + {{ !isTest ? form.startDate.toLocaleDateString() : '' }}

-

+

Дата окончания: {{ form.endDate.toLocaleDateString() }}

@@ -319,8 +319,8 @@ export default { const form = ref({ title: '', description: '', - startDate: new Date(), - endDate: new Date(new Date().setDate(new Date().getDate() + 14)), + startDate: props.isTest ? null : new Date(), + endDate: props.isTest ? null : new Date(new Date().setDate(new Date().getDate() + 14)), questions: [], createnews: false, appoint: false @@ -497,8 +497,8 @@ export default { form.value = { title: '', description: '', - startDate: new Date(), - endDate: new Date(new Date().setDate(new Date().getDate() + 14)), + startDate: props.isTest ? null : new Date(), + endDate: props.isTest ? null : new Date(new Date().setDate(new Date().getDate() + 14)), questions: [], createnews: false, appoint: false