modified: .gitignore
This commit is contained in:
@@ -5,7 +5,7 @@ import {ref, watch} from "vue";
|
||||
const show = defineModel('show')
|
||||
const props = defineProps({
|
||||
patientId: {
|
||||
type: Number,
|
||||
type: String,
|
||||
default: null
|
||||
}
|
||||
})
|
||||
@@ -21,9 +21,7 @@ const rules = {
|
||||
}
|
||||
watch(() => props.patientId, (newPatientId) => {
|
||||
if (newPatientId) {
|
||||
const patientIndex = reportStore.patientsData.observation.findIndex(itm => itm.id === newPatientId)
|
||||
const patient = reportStore.patientsData.observation[patientIndex]
|
||||
droppedPatient.value = patient
|
||||
droppedPatient.value = reportStore.findPatientById(newPatientId)
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user