chore: necessary updates given the changes in the alert controller

This commit is contained in:
voltsrage
2026-06-25 00:40:47 +08:00
parent 666d683d67
commit 7bb9124230
32 changed files with 353 additions and 40 deletions
@@ -9,6 +9,7 @@ import { useAlertStore } from '@/stores/alerts'
import { useScoringStore } from '@/stores/scoring'
import * as encountersApi from '@/api/encounters'
import * as clinicalApi from '@/api/clinical'
import * as alertsApi from '@/api/alerts'
import PatientBanner from '@/components/patient/PatientBanner.vue'
import VitalsPanel from '@/components/patient/VitalsPanel.vue'
import ScoresPanel from '@/components/patient/ScoresPanel.vue'
@@ -157,8 +158,12 @@ async function loadAll() {
}
}
function onSelectAlert(alert) {
selectedAlert.value = alert
async function onSelectAlert(alert) {
try {
selectedAlert.value = await alertsApi.fetchAlertById(alert.id)
} catch {
selectedAlert.value = alert
}
jumpToTimestamp(alert.triggeredAt)
}