mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Починка добавления сотрудника15
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 flex items-center gap-2"
|
class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 flex items-center gap-2"
|
||||||
>
|
>
|
||||||
<UserPlusIcon :size="18" />
|
<UserPlusIcon :size="18" />
|
||||||
Добавить1 сотрудника
|
Добавить работника
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -57,7 +57,7 @@
|
|||||||
<div class="modal-wrapper">
|
<div class="modal-wrapper">
|
||||||
<div class="modal">
|
<div class="modal">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
<h3 class="text-lg font-medium">{{ editingEmployee ? 'Редактировать сотрудника' : 'Добавить1 сотрудника' }}</h3>
|
<h3 class="text-lg font-medium">{{ editingEmployee ? 'Редактировать работника' : 'Добавить работника' }}</h3>
|
||||||
<button @click="closeForm" class="text-gray-400 hover:text-gray-500">
|
<button @click="closeForm" class="text-gray-400 hover:text-gray-500">
|
||||||
<span class="sr-only">Закрыть</span>
|
<span class="sr-only">Закрыть</span>
|
||||||
×
|
×
|
||||||
@@ -220,7 +220,7 @@ async function handleSubmit() {
|
|||||||
}
|
}
|
||||||
await fetchEmployees();
|
await fetchEmployees();
|
||||||
closeForm();
|
closeForm();
|
||||||
alert(editingEmployee.value ? 'Сотрудник обновлен' : 'Сотрудник добавлен');
|
alert(editingEmployee.value ? 'Работник обновлен' : 'Работник добавлен');
|
||||||
} catch (error: any) {
|
} catch (error: any) {
|
||||||
console.error('Error:', error);
|
console.error('Error:', error);
|
||||||
alert(`Ошибка: ${error.message}`);
|
alert(`Ошибка: ${error.message}`);
|
||||||
|
Reference in New Issue
Block a user