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 8416a78..0e03cb4 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/DicomCanvas.vue @@ -560,7 +560,7 @@ export default { e.stopImmediatePropagation() e.stopPropagation() e.preventDefault() - } else if (this.activeToolName === 'Length' || this.activeToolName === 'Bidirectional' && this.readingTaskState < 2) { + } else if ((this.activeToolName === 'Length' || this.activeToolName === 'Bidirectional') && this.readingTaskState < 2) { if (!e.detail.image.columnPixelSpacing || !e.detail.image.rowPixelSpacing) { // '该影像不具备测量长度所需的必要数据,不能进行长度测量。请选择其他工具进行标注。' this.$confirm(this.$t('trials:reading:warnning:msg56'), '', { @@ -586,6 +586,15 @@ export default { e.preventDefault() } } else if (this.IsCriticalSequence) { + if (this.activeToolName) { + // '关键帧上不允许画标注。' + this.$confirm(this.$t('trials:reading:warnning:msg99'), '', { + showCancelButton: false, + type: 'warning' + }).then(() => { + + }).catch(() => { }) + } e.stopImmediatePropagation() e.stopPropagation() e.preventDefault() @@ -1826,6 +1835,9 @@ export default { // console.log(toolName) // cornerstoneTools.setToolPassiveForElement(this.canvas, toolName) // }) + if (toolName === 'Wwwc') { + this.isInitWwwc = false + } this.activeToolName = toolName this.$nextTick(() => { // console.log(cornerstoneTools.isToolActiveForElement(this.canvas, 'Bidirectional'))