Обновление отчета

This commit is contained in:
brusnitsyn
2026-01-20 09:26:47 +09:00
parent 62d7e9efd4
commit 8a0fdf9470
12 changed files with 83 additions and 41 deletions

View File

@@ -24,6 +24,7 @@ export const useReportStore = defineStore('reportStore', () => {
const dataOnReport = ref(null)
const reportInfo = ref(null)
const isLoadReportInfo = ref(false)
const patientColumns = [
{
@@ -94,9 +95,14 @@ export const useReportStore = defineStore('reportStore', () => {
}
const getReportInfo = async () => {
await axios.get('/api/report').then((res) => {
reportInfo.value = res.data
})
isLoadReportInfo.value = true
await axios.get('/api/report')
.then((res) => {
reportInfo.value = res.data
})
.finally(() => {
isLoadReportInfo.value = false
})
}
const getDataOnReportDate = async () => {
@@ -114,6 +120,7 @@ export const useReportStore = defineStore('reportStore', () => {
timestampNow,
timestampCurrent,
timestampCurrentRange,
isLoadReportInfo,
dataOnReport,
patientColumns,
patientsData,