From 65d7a95d5f8aaaada2cec47fb8a47a6babcec829 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 25 May 2026 13:17:04 +0800 Subject: [PATCH] 1 --- .../dicoms3D/components/PetCtViewport.vue | 37 ++++++++++--------- 1 file changed, 20 insertions(+), 17 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/PetCtViewport.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/PetCtViewport.vue index b2cbc4f0..30eaf347 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/PetCtViewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/PetCtViewport.vue @@ -92,7 +92,10 @@ @click.stop @contextmenu.prevent > -
+ @@ -262,25 +265,25 @@ export default { e.preventDefault() e.stopPropagation() - // const annotation = this.getCircleAnnotationFromContextMenuEvent(e) - // if (!annotation) { - // this.hideAnnotationContextMenu() - // return false - // } + const annotation = this.getCircleAnnotationFromContextMenuEvent(e) + if (!annotation) { + this.hideAnnotationContextMenu() + return false + } - // if (cornerstoneTools.annotation.locking.isAnnotationLocked(annotation.annotationUID)) { - // this.hideAnnotationContextMenu() - // return false - // } + if (cornerstoneTools.annotation.locking.isAnnotationLocked(annotation.annotationUID)) { + this.hideAnnotationContextMenu() + return false + } - // this.$emit('activeViewport', this.viewportIndex) + this.$emit('activeViewport', this.viewportIndex) - // const { x, y } = this.getContextMenuPosition(e) - // this.annotationContextMenu.visible = true - // this.annotationContextMenu.x = x - // this.annotationContextMenu.y = y - // this.annotationContextMenu.annotation = annotation - // return false + const { x, y } = this.getContextMenuPosition(e) + this.annotationContextMenu.visible = true + this.annotationContextMenu.x = x + this.annotationContextMenu.y = y + this.annotationContextMenu.annotation = annotation + return false }, getContextMenuPosition(e) { const rect = this.element?.getBoundingClientRect?.()