сервис уведомлений

This commit is contained in:
brusnitsyn
2025-12-19 17:02:15 +09:00
parent 2bafa7f073
commit 255a117c20
2 changed files with 18 additions and 4 deletions

View File

@@ -3,6 +3,7 @@ import { NModal, NDataTable, NSpace, NFlex, NButton, NForm, NFormItem, NInput, N
import ArchiveHistoryMoveModal from '../ArchiveHistoryMoveModal/Index.vue'
import {computed, ref, watch} from "vue";
import {useMedicalHistoryFilter} from "../../../Composables/useMedicalHistoryFilter.js";
import {useNotification} from "../../../Composables/useNotification.js";
const open = defineModel('open')
const props = defineProps({
@@ -12,6 +13,7 @@ const props = defineProps({
})
const {filtersRef} = useMedicalHistoryFilter()
const {errorApi} = useNotification()
const loading = ref(true)
const patient = ref({})
const showArchiveHistoryModal = ref(false)
@@ -61,7 +63,7 @@ const loadPatientData = async () => {
}
})
} catch (error) {
// message.error('Ошибка при загрузке данных пациента')
errorApi(error)
console.error(error)
} finally {
loading.value = false
@@ -141,6 +143,7 @@ const onSubmit = async () => {
})
} catch (error) {
errorApi(error)
console.error(error)
} finally {
loading.value = false