From ecaca550ab97e8891e048a4b8e4e5cb06f84ea45 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 28 Apr 2025 17:32:40 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E9=98=85=E7=89=87?= =?UTF-8?q?=E5=B7=A5=E5=85=B7=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms3D/components/ReadPage.vue | 5 ++--- .../reading/dicoms3D/components/Viewport.vue | 12 ++++++------ 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue index 899332d2..61a2af8f 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue @@ -725,7 +725,8 @@ export default { this.digitPlaces = digitPlaces === -1 ? this.digitPlaces : digitPlaces if (this.criterionType === 0) { this.tools = getCustomizeStandardsTools(this.taskInfo.ReadingToolList) - this.customizeStandards = [...config.customizeStandards] + let toolNames = this.tools.map(i=>i.toolName) + this.customizeStandards = config.customizeStandards.filter(item => !toolNames.includes(item.toolName)) } else { this.tools = getTools(this.criterionType) } @@ -1277,8 +1278,6 @@ export default { annotation.data.text = markName } this.saveCustomAnnotation(annotation) - } else { - this.removeAnnotation(annotation) } } diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/Viewport.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/Viewport.vue index 8086632b..0bbb1b07 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/Viewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/Viewport.vue @@ -111,9 +111,9 @@ import { } from '@cornerstonejs/core' import * as cornerstoneTools from '@cornerstonejs/tools' import cornerstoneDICOMImageLoader from '@cornerstonejs/dicom-image-loader' -// const { -// ToolGroupManager -// } = cornerstoneTools +const { + ToolGroupManager +} = cornerstoneTools import { vec3 } from 'gl-matrix' export default { name: 'ImageViewport', @@ -206,9 +206,9 @@ export default { // this.imageInfo.wwwc = `${Math.round(detail.image.windowWidth)}/${Math.round(detail.image.windowCenter)}` this.getOrientationMarker() this.$emit('renderAnnotations', this.series) - // const toolGroupId = `viewport-${this.viewportIndex}` - // const toolGroup = ToolGroupManager.getToolGroup(toolGroupId) - // toolGroup.setToolEnabled('ScaleOverlay'); + const toolGroupId = `viewport-${this.viewportIndex}` + const toolGroup = ToolGroupManager.getToolGroup(toolGroupId) + toolGroup.setToolEnabled('ScaleOverlay') }, voiModified(e) { const renderingEngine = getRenderingEngine(this.renderingEngineId)