From 3fe16b4166ce44e882a8d9b1889d1c68fcc28212 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 30 Mar 2026 16:19:05 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=93=E6=95=B0=E6=8D=AE=E9=98=85=E7=89=87?= =?UTF-8?q?=E5=9B=9B=E8=A7=92=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms3D/components/MPRViewport.vue | 7 +++---- .../reading/dicoms3D/components/VolumeViewport.vue | 4 ++++ 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/MPRViewport.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/MPRViewport.vue index 89cd93ee..93bb25c6 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/MPRViewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/MPRViewport.vue @@ -40,10 +40,10 @@
Location: {{ `${Number(imageInfo.location).toFixed(digitPlaces)} mm` - }}
+ }}
Slice Thickness: {{ `${Number(imageInfo.sliceThickness).toFixed(digitPlaces)} mm` - }}
+ }}
WW/WL: {{ imageInfo.wwwc }}
@@ -127,7 +127,6 @@ export default { sliceThickness: null, wwwc: null, total: 0, - sliceThickness: 0 }, digitPlaces: 2, orientationMarkers: [], @@ -276,8 +275,8 @@ export default { let imageIds = viewport.getImageIds(this.volumeId) let imageId = imageIds[0] let volume = cache.getVolume(this.volumeId) - console.log(volume, 'volume') let spacing = volume ? volume.spacing : [] + console.log(spacing, 'spacing') // if (this.series.orientation === 'AXIAL') imageId = viewport.getCurrentImageId() if (imageId && volume) { this.$emit('setMPRInfo', { type: this.series.orientation, key: "imageNum", value: detail.numberOfSlices }) diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue index 10ea8748..c6ba91af 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue @@ -281,6 +281,10 @@ export default { this.imageInfo.size = `${imagePlaneModule.columns}*${imagePlaneModule.rows}` this.imageInfo.location = imagePlaneModule.sliceLocation this.imageInfo.total = detail.numberOfSlices + let type = this.determineImagePlane(imagePlaneModule.imageOrientationPatient) + let volume = cache.getVolume(this.volumeId) + let spacing = volume ? volume.spacing : [] + this.imageInfo.sliceThickness = type === 'AXIAL' ? spacing[2] : spacing[0] this.getOrientationMarker() if (this.series && this.series.Id) { let annotations = cornerstoneTools.annotation.state.getAllAnnotations().filter(item => item.metadata.toolName !== 'ScaleOverlay' && item.metadata.volumeId !== this.volumeId && !item.metadata.segmentationId && item.seriesId !== this.series.Id)