dev: hotfix, show main menu on enc list
This commit is contained in:
@@ -6,6 +6,7 @@ import Dialog from '~/components/pub/my-ui/modal/dialog.vue'
|
||||
import Header from '~/components/pub/my-ui/nav-header/prep.vue'
|
||||
import Filter from '~/components/pub/my-ui/nav-header/filter.vue'
|
||||
import RecordConfirmation from '~/components/pub/my-ui/confirmation/record-confirmation.vue'
|
||||
import { useSidebar } from '~/components/pub/ui/sidebar/utils'
|
||||
|
||||
// Libs
|
||||
import { getPositionAs } from '~/lib/roles'
|
||||
@@ -22,6 +23,10 @@ import { getList as getEncounterList, remove as removeEncounter, cancel as cance
|
||||
// UI
|
||||
import { toast } from '~/components/pub/ui/toast'
|
||||
|
||||
|
||||
const { setOpen } = useSidebar()
|
||||
setOpen(true)
|
||||
|
||||
const { getActiveRole } = useUserStore()
|
||||
const activeRole = getActiveRole()
|
||||
const activePosition = ref(getPositionAs(activeRole))
|
||||
@@ -223,9 +228,9 @@ watch(
|
||||
isRecordCancelOpen.value = true
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
const basePath = getBasePath()
|
||||
|
||||
|
||||
if (props.type === 'encounter') {
|
||||
if (recAction.value === 'showDetail') {
|
||||
navigateTo(`${basePath}/${recId.value}/detail`)
|
||||
|
||||
Reference in New Issue
Block a user