dev: hotfixes
+ show main menu on enc list + content-header default exporter
This commit is contained in:
No files matched your search
@@ -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 Header from '~/components/pub/my-ui/nav-header/prep.vue'
|
||||||
import Filter from '~/components/pub/my-ui/nav-header/filter.vue'
|
import Filter from '~/components/pub/my-ui/nav-header/filter.vue'
|
||||||
import RecordConfirmation from '~/components/pub/my-ui/confirmation/record-confirmation.vue'
|
import RecordConfirmation from '~/components/pub/my-ui/confirmation/record-confirmation.vue'
|
||||||
|
import { useSidebar } from '~/components/pub/ui/sidebar/utils'
|
||||||
|
|
||||||
// Libs
|
// Libs
|
||||||
import { getPositionAs } from '~/lib/roles'
|
import { getPositionAs } from '~/lib/roles'
|
||||||
@@ -22,6 +23,10 @@ import { getList as getEncounterList, remove as removeEncounter, cancel as cance
|
|||||||
// UI
|
// UI
|
||||||
import { toast } from '~/components/pub/ui/toast'
|
import { toast } from '~/components/pub/ui/toast'
|
||||||
|
|
||||||
|
|
||||||
|
const { setOpen } = useSidebar()
|
||||||
|
setOpen(true)
|
||||||
|
|
||||||
const { getActiveRole } = useUserStore()
|
const { getActiveRole } = useUserStore()
|
||||||
const activeRole = getActiveRole()
|
const activeRole = getActiveRole()
|
||||||
const activePosition = ref(getPositionAs(activeRole))
|
const activePosition = ref(getPositionAs(activeRole))
|
||||||
@@ -223,9 +228,9 @@ watch(
|
|||||||
isRecordCancelOpen.value = true
|
isRecordCancelOpen.value = true
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
const basePath = getBasePath()
|
const basePath = getBasePath()
|
||||||
|
|
||||||
if (props.type === 'encounter') {
|
if (props.type === 'encounter') {
|
||||||
if (recAction.value === 'showDetail') {
|
if (recAction.value === 'showDetail') {
|
||||||
navigateTo(`${basePath}/${recId.value}/detail`)
|
navigateTo(`${basePath}/${recId.value}/detail`)
|
||||||
|
|||||||
@@ -55,3 +55,5 @@ export interface Config {
|
|||||||
addNav?: ButtonNav
|
addNav?: ButtonNav
|
||||||
printNav?: ButtonNav
|
printNav?: ButtonNav
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export { default as ContentHeader } from './content-header.vue'
|
||||||
Reference in New Issue
Block a user