Профиль хирургии

This commit is contained in:
brusnitsyn
2026-03-25 17:37:32 +09:00
parent 52a80ccd3b
commit f566ab96df
75 changed files with 3841 additions and 1009 deletions

View File

@@ -15,11 +15,10 @@ import {Link} from "@inertiajs/vue3";
const authStore = useAuthStore()
const reportStore = useReportStore()
const currentDate = computed(() => {
const formatted = format(useNow().value, 'PPPPpp', {
locale: ru
})
const now = useNow({ interval: 1000 })
const currentDate = computed(() => {
const formatted = format(now.value, 'PPPPpp', { locale: ru })
return formatted.charAt(0).toUpperCase() + formatted.slice(1)
})
@@ -37,15 +36,16 @@ const reportButtonType = computed(() => authStore.isDoctor ? 'button' : Link)
<div class="flex flex-col justify-start items-center mt-12">
<NFlex vertical align="center" justify="center" class="max-w-xl w-full">
<NSpace vertical align="center">
<NH1 class="mb-0!">
Привет {{authStore.user.name}}!
<NH1 class="mb-0! text-center leading-9">
Здравствуйте<br>{{authStore.user.name}}!
</NH1>
<NP class="mb-4!">
{{ currentDate }}
</NP>
</NSpace>
<StartButton title="Заполнить сводную"
<StartButton v-if="authStore.isAdmin || authStore.isDoctor"
title="Заполнить сводную"
description="Заполняется регулярно"
href="/report"
:tag="reportButtonType"
@@ -54,11 +54,12 @@ const reportButtonType = computed(() => authStore.isDoctor ? 'button' : Link)
/>
<StartButton v-if="authStore.isAdmin || authStore.isHeadOfDepartment"
title="Статистика моего отделения"
:description="`Ваше отделение в системе: ${authStore.userDepartment.name_short}`"
:description="`Ваш профиль в системе: ${authStore.userDepartment.department_type.name_short}`"
:href="`/statistic`"
:icon="TbChartTreemap"
/>
<StartButton v-if="false" title="Панель администратора"
<StartButton v-if="authStore.isAdmin"
title="Панель администратора"
description="Управление приложением"
href="/admin"
:tag="Link"
@@ -66,7 +67,7 @@ const reportButtonType = computed(() => authStore.isDoctor ? 'button' : Link)
/>
<StartButton title="Выйти из системы"
description="Завершение работы с текущей учетной записью"
href="/dashboard"
href="/logout"
:icon="TbDoorExit"
/>
</NFlex>