From cc10b54ece2d0341ffdf7a12105447f55823667b Mon Sep 17 00:00:00 2001 From: brusnitsyn Date: Fri, 19 Dec 2025 00:40:19 +0900 Subject: [PATCH] =?UTF-8?q?=D0=A0=D0=B5=D0=B0=D0=BB=D0=B8=D0=B7=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F=20onCloseWithoutSave?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- resources/js/Pages/Home/ArchiveHistoryModal/Index.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/resources/js/Pages/Home/ArchiveHistoryModal/Index.vue b/resources/js/Pages/Home/ArchiveHistoryModal/Index.vue index 6d2fc72..eacc2cd 100644 --- a/resources/js/Pages/Home/ArchiveHistoryModal/Index.vue +++ b/resources/js/Pages/Home/ArchiveHistoryModal/Index.vue @@ -24,7 +24,7 @@ const archiveInfo = ref({ post_in: null, status: null }) -const emits = defineEmits(['historyUpdated']) +const emits = defineEmits(['historyUpdated', 'closeWithoutSave']) const onResetData = () => { archiveInfo.value = { @@ -35,6 +35,10 @@ const onResetData = () => { } } +const onCloseWithoutSave = () => { + emits('closeWithoutSave') + open.value = false +} const patientData = ref({ ...patient.value.info @@ -152,7 +156,7 @@ watch(() => props.patientId, async (newId) => {