From e7fdee114764395976b4036959171e4ae4bd5129 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 24 Dec 2025 16:45:22 +0800 Subject: [PATCH] =?UTF-8?q?MPR=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms3D/components/ReadPage.vue | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 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 7ffb0a12..3f905c82 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue @@ -2068,7 +2068,7 @@ export default { this.activeTool = '' } else { if (this.activeTool) { - if (toolName === CrosshairsTool.toolName) { + if (this.activeTool === CrosshairsTool.toolName) { toolGroup.setToolDisabled(this.activeTool) } else { toolGroup.setToolPassive(this.activeTool) @@ -2092,7 +2092,7 @@ export default { const toolGroupId = this.isMPR ? this.volumeToolGroupId : `${this.viewportKey}-${this.activeViewportIndex}` const toolGroup = ToolGroupManager.getToolGroup(toolGroupId) if (this.activeTool) { - if (toolName === CrosshairsTool.toolName) { + if (this.activeTool === CrosshairsTool.toolName) { toolGroup.setToolDisabled(this.activeTool) } else { toolGroup.setToolPassive(this.activeTool) @@ -2792,13 +2792,13 @@ export default { let viewPlaneNormal = obj.annotation?.metadata?.viewPlaneNormal.map(i => i == 0 ? 0 : i).join(',') if (viewPlaneNormal === '0,0,-1') { this.activeViewportIndex = 0 - series = Object.assign({ orientation: 'AXIAL' }, series) + // series = Object.assign({ orientation: 'AXIAL' }, series) } else if (viewPlaneNormal === '0,-1,0') { this.activeViewportIndex = 2 - series = Object.assign({ orientation: 'CORONAL' }, series) + // series = Object.assign({ orientation: 'CORONAL' }, series) } else if (viewPlaneNormal === '1,0,0') { this.activeViewportIndex = 1 - series = Object.assign({ orientation: 'SAGITTAL' }, series) + // series = Object.assign({ orientation: 'SAGITTAL' }, series) } let res = await this.openMPRViewport(series) if (!res) return false @@ -2838,13 +2838,13 @@ export default { let viewPlaneNormal = obj.annotation?.metadata?.viewPlaneNormal.map(i => i == 0 ? 0 : i).join(',') if (viewPlaneNormal === '0,0,-1') { this.activeViewportIndex = 0 - series = Object.assign({ orientation: 'AXIAL' }, series) + // series = Object.assign({ orientation: 'AXIAL' }, series) } else if (viewPlaneNormal === '0,-1,0') { this.activeViewportIndex = 2 - series = Object.assign({ orientation: 'CORONAL' }, series) + // series = Object.assign({ orientation: 'CORONAL' }, series) } else if (viewPlaneNormal === '1,0,0') { this.activeViewportIndex = 1 - series = Object.assign({ orientation: 'SAGITTAL' }, series) + // series = Object.assign({ orientation: 'SAGITTAL' }, series) } let res = await this.openMPRViewport(series) if (!res) { @@ -3287,6 +3287,7 @@ export default { const series = data ? data : this.$refs[`viewport-${this.activeViewportIndex}`][0].series if (series.ImageIds.length <= 5) return this.$confirm(this.$t('trials:reading:confirm:smallNumberOfimage')) this.isMPR = true + console.log(series, 'series') this.rows = 3 this.cols = 1 this.loading = true