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 9d90a2f8f..d6ea40029 100644 Binary files a/src/back/tests/migrations/__pycache__/0002_test_dateend_test_datestart.cpython-310.pyc and b/src/back/tests/migrations/__pycache__/0002_test_dateend_test_datestart.cpython-310.pyc differ 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