Обновление отчета
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user