From 99dd28a713388dc2fe25eecf327d194ab9d9d160 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 23 Jun 2025 17:55:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=B1=E5=83=8F=E6=B5=8F=E8=A7=88=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Dicom/DicomCanvas.vue | 4 +--- .../trials-panel/reading/dicoms3D/components/Viewport.vue | 3 ++- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/Dicom/DicomCanvas.vue b/src/components/Dicom/DicomCanvas.vue index f52fc74a..88bdc371 100644 --- a/src/components/Dicom/DicomCanvas.vue +++ b/src/components/Dicom/DicomCanvas.vue @@ -378,6 +378,7 @@ export default { this.stack.imageIdIndex = newImageIdIndex this.series.imageIdIndex = newImageIdIndex this.height = (this.stack.currentImageIdIndex) * 100 / (this.stack.imageIds.length - 1) + this.resetWwwc() }, stackScrollCallback(e) { const { detail } = e @@ -423,9 +424,6 @@ export default { this.dicomInfo.zoom = viewport.scale.toFixed(4) var data = e.detail.image.data const position = data.string('x00201041') - const windowCenter = data.string('x00281050') - const windowWidth = data.string('x00281051') - this.setWwwc(windowWidth, windowCenter) this.dicomInfo.location = position }, getOrientationMarker(element) { 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 6fa4a69a..9aa2606f 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/Viewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/Viewport.vue @@ -403,7 +403,8 @@ export default { this.series = { ...obj } const renderingEngine = getRenderingEngine(this.renderingEngineId) const viewport = renderingEngine.getViewport(this.viewportId) - const image = await cornerstoneDICOMImageLoader.wadouri.loadImage(obj.ImageIds[obj.SliceIndex]).promise + let imageId = obj.ImageIds[obj.SliceIndex] ? obj.ImageIds[obj.SliceIndex] : obj.ImageIds[0] + const image = await cornerstoneDICOMImageLoader.wadouri.loadImage(imageId).promise if (obj.Modality === 'PT') { this.cachePTMetadata([image]) }