Обновлен стартовый экран

Переписаны запросы для статистики, отчетов
Добавлена интеграция отчета сестры
This commit is contained in:
brusnitsyn
2026-05-28 22:10:00 +09:00
parent 90e0d04dfd
commit 739168d427
96 changed files with 6663 additions and 1465 deletions

View File

@@ -0,0 +1,37 @@
<script setup>
import HeaderWidget from "../HeaderWidget.vue"
import {computed} from "vue";
const props = defineProps({
counter: Number
})
const counterClass = computed(() => {
const value = typeof props.counter === 'number' ? props.counter : 0
if (value < 60) return 'counter-success'
if (value < 100) return 'counter-warning'
return 'counter-danger'
})
</script>
<template>
<HeaderWidget label="Загруженность"
:counter="counter"
:counter-class="counterClass"
percent
/>
</template>
<style scoped>
:deep(.counter-success) {
color: var(--n-color-target) !important;
}
:deep(.counter-warning) {
color: var(--n-feedback-text-color-warning) !important;
}
:deep(.counter-danger) {
color: var(--n-asterisk-color) !important;
}
</style>