Fix: debug Uplaod Doc List table
This commit is contained in:
@@ -20,8 +20,8 @@ const roleAccess: PagePermission = PAGE_PERMISSIONS['/rehab/encounter']
|
|||||||
const { getPagePermissions } = useRBAC()
|
const { getPagePermissions } = useRBAC()
|
||||||
const pagePermission = getPagePermissions(roleAccess)
|
const pagePermission = getPagePermissions(roleAccess)
|
||||||
|
|
||||||
const {user,userRole} = useUserStore()
|
// const {user,userRole} = useUserStore()
|
||||||
const {getUserPermissions} = useRBAC()
|
// const {getUserPermissions} = useRBAC()
|
||||||
// #endregion
|
// #endregion
|
||||||
|
|
||||||
// #region State
|
// #region State
|
||||||
@@ -121,6 +121,7 @@ watch([recId, recAction, timestamp], () => {
|
|||||||
case ActionEvents.showDetail:
|
case ActionEvents.showDetail:
|
||||||
isDocPreviewDialogOpen.value = true
|
isDocPreviewDialogOpen.value = true
|
||||||
break
|
break
|
||||||
|
|
||||||
case ActionEvents.showEdit:
|
case ActionEvents.showEdit:
|
||||||
if(pagePermission.canUpdate){
|
if(pagePermission.canUpdate){
|
||||||
navigateTo({
|
navigateTo({
|
||||||
@@ -131,22 +132,13 @@ watch([recId, recAction, timestamp], () => {
|
|||||||
unauthorizedToast()
|
unauthorizedToast()
|
||||||
}
|
}
|
||||||
break
|
break
|
||||||
|
|
||||||
case ActionEvents.showConfirmDelete:
|
case ActionEvents.showConfirmDelete:
|
||||||
if(pagePermission.canDelete){
|
if(pagePermission.canDelete){
|
||||||
isRecordConfirmationOpen.value = true
|
isRecordConfirmationOpen.value = true
|
||||||
} else {
|
} else {
|
||||||
unauthorizedToast()
|
unauthorizedToast()
|
||||||
}
|
}
|
||||||
navigateTo(recItem.value.filePath, { external: true, open: { target: '_blank' } })
|
|
||||||
break
|
|
||||||
case ActionEvents.showEdit:
|
|
||||||
navigateTo({
|
|
||||||
name: 'rehab-encounter-id-document-upload-document_id-edit',
|
|
||||||
params: { id: encounterId, "document_id": recId.value },
|
|
||||||
})
|
|
||||||
break
|
|
||||||
case ActionEvents.showConfirmDelete:
|
|
||||||
isRecordConfirmationOpen.value = true
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user