* блокировка изменения отчета для врача
* вывод данных из отчетов для ролей адм и зав * поправил ширину стобцов ввода * добавил календарь на страницу статистики * переделал календарь у заведующего на странице отчета * добавил и привязал метрики в статистику
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script setup>
|
||||
import { NFlex, NButton } from 'naive-ui'
|
||||
import { NFlex, NAlert, NButton } from 'naive-ui'
|
||||
import ReportHeader from "./ReportHeader.vue";
|
||||
import ReportFormInput from "./ReportFormInput.vue";
|
||||
import ReportSection from "./ReportSection.vue";
|
||||
@@ -28,6 +28,9 @@ const onSubmit = () => {
|
||||
|
||||
<template>
|
||||
<NFlex vertical class="max-w-6xl mx-auto mt-6 mb-4 w-full">
|
||||
<NAlert type="warning" v-if="reportStore.reportInfo.report?.message">
|
||||
{{ reportStore.reportInfo.report.message }}
|
||||
</NAlert>
|
||||
<ReportHeader :mode="mode" />
|
||||
|
||||
<ReportFormInput />
|
||||
|
||||
@@ -5,6 +5,7 @@ import {useAuthStore} from "../../../Stores/auth.js";
|
||||
|
||||
const reportStore = useReportStore()
|
||||
const authStore = useAuthStore()
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -66,4 +67,8 @@ const authStore = useAuthStore()
|
||||
:deep(.n-statistic-value) {
|
||||
@apply flex justify-center items-center;
|
||||
}
|
||||
|
||||
:deep(.n-input-wrapper) {
|
||||
width: 120px;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -66,7 +66,7 @@ const currentDate = computed(() => {
|
||||
</NSpace>
|
||||
|
||||
<div class="col-3 w-full">
|
||||
<ReportSelectDate />
|
||||
<ReportSelectDate :is-one-day="reportStore.reportInfo.report?.isOneDay"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ const isReadonlyMode = computed(() => props.mode.toLowerCase() === 'readonly')
|
||||
|
||||
<template>
|
||||
<NCard>
|
||||
<NCollapse>
|
||||
<NCollapse v-model:expanded-names="reportStore.openedCollapsible">
|
||||
<NCollapseItem name="1">
|
||||
<template #header>
|
||||
<ReportSectionHeader title="Планово" status="plan" />
|
||||
|
||||
Reference in New Issue
Block a user