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>
|
<template>
|
||||||
<div class="space-y-6">
|
<div class="space-y-6">
|
||||||
<div class="flex justify-between items-center">
|
<div class="flex justify-between items-center">
|
||||||
<h1 class="text-2xl font-bold">Панель администратора</h1>
|
<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>
|
</div>
|
||||||
|
|
||||||
<!-- Statistics -->
|
<!-- Statistics -->
|
||||||
@@ -46,10 +52,13 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { onMounted } from 'vue';
|
import { onMounted } from 'vue';
|
||||||
|
import { useRouter } from 'vue-router';
|
||||||
|
import { PlusCircle } from 'lucide-vue-next';
|
||||||
import { useRequests } from '@/composables/useRequests';
|
import { useRequests } from '@/composables/useRequests';
|
||||||
import { useStatistics } from '@/composables/useStatistics';
|
import { useStatistics } from '@/composables/useStatistics';
|
||||||
import { getRequestTypeLabel, getStatusLabel } from '@/utils/labels';
|
import { getRequestTypeLabel, getStatusLabel } from '@/utils/labels';
|
||||||
|
|
||||||
|
const router = useRouter();
|
||||||
const { requests, fetchRequests } = useRequests();
|
const { requests, fetchRequests } = useRequests();
|
||||||
const { statisticsCards, fetchStatistics } = useStatistics();
|
const { statisticsCards, fetchStatistics } = useStatistics();
|
||||||
|
|
||||||
@@ -61,5 +70,4 @@ onMounted(() => {
|
|||||||
fetchStatistics();
|
fetchStatistics();
|
||||||
fetchRequests();
|
fetchRequests();
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
```
|
|
Reference in New Issue
Block a user