refactor(encounter): comment out navigation logic and update class code for ContentEncounterList
This commit is contained in:
No files matched your search
@@ -144,32 +144,31 @@ function handleCancelConfirmation() {
|
|||||||
watch(
|
watch(
|
||||||
() => recAction.value,
|
() => recAction.value,
|
||||||
() => {
|
() => {
|
||||||
console.log('recAction.value', recAction.value)
|
|
||||||
if (recAction.value === ActionEvents.showConfirmDelete) {
|
if (recAction.value === ActionEvents.showConfirmDelete) {
|
||||||
isRecordConfirmationOpen.value = true
|
isRecordConfirmationOpen.value = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (props.type === 'encounter') {
|
// if (props.type === 'encounter') {
|
||||||
if (recAction.value === 'showDetail') {
|
// if (recAction.value === 'showDetail') {
|
||||||
navigateTo(`/rehab/encounter/${recId.value}/detail`)
|
// navigateTo(`/rehab/encounter/${recId.value}/detail`)
|
||||||
} else if (recAction.value === 'showEdit') {
|
// } else if (recAction.value === 'showEdit') {
|
||||||
navigateTo(`/rehab/encounter/${recId.value}/edit`)
|
// navigateTo(`/rehab/encounter/${recId.value}/edit`)
|
||||||
} else if (recAction.value === 'showProcess') {
|
// } else if (recAction.value === 'showProcess') {
|
||||||
navigateTo(`/rehab/encounter/${recId.value}/process`)
|
// navigateTo(`/rehab/encounter/${recId.value}/process`)
|
||||||
} else {
|
// } else {
|
||||||
// handle other actions
|
// // handle other actions
|
||||||
}
|
// }
|
||||||
} else if (props.type === 'registration') {
|
// } else if (props.type === 'registration') {
|
||||||
if (recAction.value === 'showDetail') {
|
// if (recAction.value === 'showDetail') {
|
||||||
navigateTo(`/rehab/registration/${recId.value}/detail`)
|
// navigateTo(`/rehab/registration/${recId.value}/detail`)
|
||||||
} else if (recAction.value === 'showEdit') {
|
// } else if (recAction.value === 'showEdit') {
|
||||||
navigateTo(`/rehab/registration/${recId.value}/edit`)
|
// navigateTo(`/rehab/registration/${recId.value}/edit`)
|
||||||
} else if (recAction.value === 'showProcess') {
|
// } else if (recAction.value === 'showProcess') {
|
||||||
navigateTo(`/rehab/registration/${recId.value}/process`)
|
// navigateTo(`/rehab/registration/${recId.value}/process`)
|
||||||
} else {
|
// } else {
|
||||||
// handle other actions
|
// // handle other actions
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -34,7 +34,7 @@ const canRead = hasReadAccess(roleAccess)
|
|||||||
<div>
|
<div>
|
||||||
<div v-if="canRead">
|
<div v-if="canRead">
|
||||||
<ContentEncounterList
|
<ContentEncounterList
|
||||||
class-code="outpatient"
|
class-code="ambulatory"
|
||||||
sub-class-code="reg"
|
sub-class-code="reg"
|
||||||
type="encounter"
|
type="encounter"
|
||||||
/>
|
/>
|
||||||
|
|||||||
Reference in New Issue
Block a user