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

Починка adm821

This commit is contained in:
MoonTestUse1
2025-01-01 21:35:04 +06:00
parent 47a86ac164
commit 3aedd642ed

View File

@@ -1,14 +1,15 @@
<template>
<div class="space-y-6">
<div class="flex justify-between items-center">
<h1 class="text-2xl font-bold">Панель администратора</h1>
<button
@click="router.push('/admin/employees/add')"
class="bg-blue-500 hover:bg-blue-600 text-white font-semibold py-2 px-4 rounded-lg flex items-center gap-2 transition-colors"
<RouterLink
to="/admin/employees/add"
class="bg-blue-600 text-white px-4 py-2 rounded-md hover:bg-blue-700 inline-flex items-center gap-2"
>
<PlusCircle class="w-5 h-5" />
Добавить работника
</button>
Добавить сотрудника
</RouterLink>
</div>
<!-- Statistics -->
@@ -52,13 +53,12 @@
<script setup lang="ts">
import { onMounted } from 'vue';
import { useRouter } from 'vue-router';
import { RouterLink } from 'vue-router';
import { PlusCircle } from 'lucide-vue-next';
import { useRequests } from '@/composables/useRequests';
import { useStatistics } from '@/composables/useStatistics';
import { getRequestTypeLabel, getStatusLabel } from '@/utils/labels';
const router = useRouter();
const { requests, fetchRequests } = useRequests();
const { statisticsCards, fetchStatistics } = useStatistics();
@@ -70,4 +70,4 @@ onMounted(() => {
fetchStatistics();
fetchRequests();
});
</script>
</script>