diff --git a/src/front/src/components/UI/SearcEmployess.vue b/src/front/src/components/UI/SearcEmployess.vue
new file mode 100644
index 000000000..5444e86a3
--- /dev/null
+++ b/src/front/src/components/UI/SearcEmployess.vue
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+ {{ item.raw.familyname }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/front/src/components/testing/CatalogTest.vue b/src/front/src/components/testing/CatalogTest.vue
index 563605fa2..29fe22bc1 100644
--- a/src/front/src/components/testing/CatalogTest.vue
+++ b/src/front/src/components/testing/CatalogTest.vue
@@ -66,30 +66,7 @@ export default {
},
testingCard: {
type: Array,
- default: () => [
- {
- id: 1,
- name: 'Комплекс тестовых вопросов на знание в области информационно-коммуникационных технологий',
- type: 'test',
- description: 'Краткое описание тестирования',
- file: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
- dateend: new Date(),
- question_count: 20,
- time: 20,
- attemps_number: 3,
- },
- {
- id: 2,
- name: 'Удобство раздела тестирования',
- type: 'test',
- description: 'Опрос среди сотрудников ЦОД МФ',
- file: 'https://icdn.lenta.ru/images/2024/03/27/12/20240327123127525/square_1280_63e6b3d7acbfce65d885ae4cf216dfe2.jpg',
- dateend: new Date(),
- question_count: 28,
- time: 15,
- attemps_number: 1,
- },
- ],
+ default: () => [],
},
},
setup(props) {
diff --git a/src/front/src/components/vote/ConstructorVote/MainInfo.vue b/src/front/src/components/vote/ConstructorVote/MainInfo.vue
index ed362e9a7..3a3f7bd4f 100644
--- a/src/front/src/components/vote/ConstructorVote/MainInfo.vue
+++ b/src/front/src/components/vote/ConstructorVote/MainInfo.vue
@@ -40,63 +40,7 @@
color="primary"
:label="localForm.appoint ? 'да' : 'нет'"
>
-
-
-
-
-
-
- {{ item.raw.familyname }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
Дата и время:
@@ -142,15 +86,16 @@
import DateSelect from '@/components/UI/date-select.vue';
import { ref, watch, computed } from 'vue';
import { checkremote } from '@/utils/universal_functions.js';
-import { getEmployees, spravURL } from '@/utils/axios-api.js';
+import { spravURL } from '@/utils/axios-api.js';
import { useRoute } from 'vue-router';
+import SearcEmployess from '@/components/UI/SearcEmployess.vue';
export default {
methods: {
spravURL() {
return spravURL
}, checkremote },
- components: { DateSelect },
+ components: { SearcEmployess, DateSelect },
props: {
form: Object,
rules: {
@@ -180,12 +125,6 @@ export default {
}
);
- const groupedEmployees = ref([]);
- const allEmployees = computed(() => [...groupedEmployees.value]);
- const selectedEmployees = ref([]);
-
- getEmployees().then((r) => (groupedEmployees.value = r));
-
// Отправляем изменения в родителя
watch(
localForm,
@@ -240,47 +179,13 @@ export default {
return `${hours}:${minutes}`;
});
- const allEmployeesgroupedbydep = computed(() => {
- let groupped = [];
- for (let x of allEmployees.value.sort(
- (a, b) => a.id_dict_department - b.id_dict_department,
- )) {
- if (!groupped.includes(x.department)) groupped.push(x.department);
- groupped.push(x);
- }
- return groupped;
- });
-
- const onEmployeesChange = (employeeId) => {
- const index = selectedEmployees.value.indexOf(employeeId);
- if (index !== -1) {
- selectedEmployees.value.splice(index, 1);
- } else {
- selectedEmployees.value.push(employeeId);
- }
- };
-
- const handleSelectAll = () => {
- if (selectedEmployees.value.length === allEmployees.value.length) {
- selectedEmployees.value = [];
- } else {
- selectedEmployees.value = allEmployees.value.map(emp => emp.id);
- }
- };
-
-
return {
localForm,
returnstart,
returnend,
- allEmployeesgroupedbydep,
selectedTimeStart,
selectedTimeEnd,
timeOptions,
- selectedEmployees,
- allEmployees,
- onEmployeesChange,
- handleSelectAll,
isTestRoute
};
},
diff --git a/src/front/src/views/TestHomePage.vue b/src/front/src/views/TestHomePage.vue
index 244cb8d2f..10024ac15 100644
--- a/src/front/src/views/TestHomePage.vue
+++ b/src/front/src/views/TestHomePage.vue
@@ -15,11 +15,10 @@
+
-
-
Результаты
@@ -27,10 +26,30 @@
+
-
+
+
+
+
+
+
+
+
+
+
+ Удалить тест?
+ Вы уверены, что хотите удалить этот тест?
+
+
+ Отмена
+ Удалить
+
+
+
+
+
+
+
+ Назначить сотруднику
+
+
+
+ Отмена
+ Добавить
+
+
+