From 0a0461238c4561025bc24ca78d6c6929d3df366d Mon Sep 17 00:00:00 2001 From: riefive Date: Mon, 8 Dec 2025 16:10:11 +0700 Subject: [PATCH] feat: add encounter list component with data display, filtering, and record management capabilities --- app/components/content/encounter/list.vue | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/app/components/content/encounter/list.vue b/app/components/content/encounter/list.vue index 8dc06ab2..1210ab68 100644 --- a/app/components/content/encounter/list.vue +++ b/app/components/content/encounter/list.vue @@ -129,7 +129,6 @@ watch([recSepId, recSepMenu, recSepSubMenu], (value) => { const id = value[0] const menu = value[1] const subMenu = value[2] - console.log(id, menu, subMenu) if (!id) return if (subMenu === 'view') { handleViewFile(id, menu, subMenu) @@ -189,8 +188,13 @@ async function getPatientList() { function handleUploadFile(id: number, menu: string) { uploadFile.value = null - document.getElementById('uploadFile')?.click() - console.log(id) + const fileInput: HTMLInputElement | undefined | null = document + .getElementById('uploadFile') + ?.querySelector("input[type='file']") + if (fileInput) { + fileInput.value = '' + fileInput.click() + } } async function handleUploadFileSubmit() {