1
0
mirror of https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git synced 2025-08-14 00:25:46 +02:00

Починка добавления сотрудника

This commit is contained in:
MoonTestUse1
2024-12-27 02:08:13 +06:00
parent 985ea2ca4e
commit 80efa4c6e4
2 changed files with 25 additions and 10 deletions

View File

@@ -3,11 +3,13 @@
import { ref, onMounted } from 'vue';
import { departments } from '@/utils/constants';
import type { Employee } from '@/types/employee';
import EmployeeForm from './EmployeeForm.vue'; // Добавляем импорт
const employees = ref<Employee[]>([]); // Добавляем типизацию массива сотрудников
const employees = ref<Employee[]>([]);
const showAddForm = ref(false);
const editingEmployee = ref<Employee | null>(null);
function getDepartmentLabel(value: string) {
return departments.find(d => d.value === value)?.label || value;
}