mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Починка добавления сотрудника
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user