diff --git a/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue b/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue index 549ee4b..20615d7 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue @@ -504,6 +504,11 @@ export default { cornerstone.resize(this.canvas) }, mouseMove(e) { + if (this.IsCriticalSequence) { + e.stopImmediatePropagation() + e.stopPropagation() + e.preventDefault() + } const { element, image, currentPoints } = e.detail const x = Math.round(currentPoints.image.x) const y = Math.round(currentPoints.image.y) @@ -562,6 +567,18 @@ export default { type: 'warning' }).then(() => { + }).catch(() => { }) + e.stopImmediatePropagation() + e.stopPropagation() + e.preventDefault() + } + if (this.IsCriticalSequence) { + // '关键帧上不允许画标注。' + this.$confirm(this.$t('trials:reading:warnning:msg99'), '', { + showCancelButton: false, + type: 'warning' + }).then(() => { + }).catch(() => { }) e.stopImmediatePropagation() e.stopPropagation() @@ -1341,6 +1358,7 @@ export default { this.setMarkers() }, onMeasurementcompleted(e) { + console.log(this.IsCriticalSequence, 'this.IsCriticalSequence') if (this.readingTaskState >= 2 || this.IsCriticalSequence) return var element = cornerstone.getEnabledElement(this.canvas)