mirror of
https://gitlab.com/MoonTestUse1/AdministrationItDepartmens.git
synced 2025-08-14 00:25:46 +02:00
Починка adm82
This commit is contained in:
@@ -1,8 +1,14 @@
|
||||
```vue
|
||||
<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"
|
||||
>
|
||||
<PlusCircle class="w-5 h-5" />
|
||||
Добавить работника
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<!-- Statistics -->
|
||||
@@ -46,10 +52,13 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { onMounted } from 'vue';
|
||||
import { useRouter } 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();
|
||||
|
||||
@@ -62,4 +71,3 @@ onMounted(() => {
|
||||
fetchRequests();
|
||||
});
|
||||
</script>
|
||||
```
|
Reference in New Issue
Block a user