feat(sep): fix get patient data
This commit is contained in:
@@ -88,8 +88,6 @@ async function getPatientsList(params: any = { 'page-size': 10 }) {
|
||||
}
|
||||
|
||||
async function getPatientCurrent(id: string) {
|
||||
isPatientsLoading.value = true
|
||||
selectedPatientObject.value = null
|
||||
try {
|
||||
const result = await getPatientDetail(Number(id))
|
||||
if (result && result.success && result.body && result.body.data) {
|
||||
@@ -99,7 +97,6 @@ async function getPatientCurrent(id: string) {
|
||||
} catch (err) {
|
||||
console.error('Failed to fetch patient:', err)
|
||||
}
|
||||
isPatientsLoading.value = false
|
||||
}
|
||||
|
||||
async function getMonitoringHistoryMappers() {
|
||||
@@ -143,7 +140,10 @@ const letters = [
|
||||
]
|
||||
|
||||
function handleSavePatient() {
|
||||
getPatientCurrent(selectedPatient.value)
|
||||
selectedPatientObject.value = null
|
||||
setTimeout(() => {
|
||||
getPatientCurrent(selectedPatient.value)
|
||||
}, 150)
|
||||
}
|
||||
|
||||
function handleSaveLetter() {
|
||||
|
||||
Reference in New Issue
Block a user