Compare commits

..

No commits in common. "e63e38222e47b4bb19f53e89824fa1516e36e052" and "298619717a45893b7eb89efb1fcd33f73e675777" have entirely different histories.

1 changed files with 17 additions and 20 deletions

View File

@ -92,10 +92,7 @@
@click.stop
@contextmenu.prevent
>
<div class="annotation-context-menu__item" @click.stop="copyCircleAnnotation()">
<!-- 复制 -->
{{ $t('trials:reading:menu:copy') }}
</div>
<div class="annotation-context-menu__item" @click.stop="copyCircleAnnotation()">复制</div>
</div>
</div>
</template>
@ -265,25 +262,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?.()