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)