From 84f68c79f096ce7a224e1aa460f49b784eee73e7 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 30 Mar 2026 10:52:28 +0800 Subject: [PATCH 1/3] 1 --- .../reading/dicoms3D/components/VolumeViewport.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 635eb876..70f2d6a3 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue @@ -481,12 +481,12 @@ export default { async createImageIdsAndCacheMetaData(obj) { this.loading = true try { - return await createImageIdsAndCacheMetaData({ + return await createImageIdsAndCacheMetaData({ modality: obj.Modality, imageIds: obj.ImageIds - }) + }) } finally { - this.loading = false + this.loading = false } }, async getVolume(serie, isFusion = false) { From fdc2bc5f8ad9846baeabe2ee9f9b96d304d50bbd Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 30 Mar 2026 10:54:07 +0800 Subject: [PATCH 2/3] 1 --- .../trials-panel/reading/dicoms3D/components/ReadPage.vue | 5 ----- 1 file changed, 5 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 99f27846..f9e9d1bf 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue @@ -1601,11 +1601,6 @@ export default { // }) }, renderAnnotations(series) { - if (series.SeriesInstanceUid) { - let volume = cache.getVolume(series.SeriesInstanceUid) - // console.log(volume.metadata.FrameOfReferenceUID); - } - const taskId = series.TaskInfo ? series.TaskInfo.VisitTaskId : null if (!taskId || this.renderedTaskIds.includes(taskId)) return this.renderedTaskIds.push(taskId) From a987ac086b4b01498c5670c9acbdb6b866cb4919 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 30 Mar 2026 10:57:27 +0800 Subject: [PATCH 3/3] 1 --- .../reading/dicoms3D/components/VolumeViewport.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 70f2d6a3..c877a4fe 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/VolumeViewport.vue @@ -234,7 +234,7 @@ export default { // 如果行向量主要在 X-Y 平面 (rowZ 很小),则为 Axial。 // 如果行向量主要在 X-Z 平面 (rowY 很小),则为 Sagittal。 // 为了简化,我们可以直接根据视线方向(法线)来判断。 - // 法线方向 = 行向量 × 列向量 + // 法线方向 = 行向量 × 列向量 const [colX, colY, colZ] = imageOrientationPatient.slice(3); const normalX = rowY * colZ - rowZ * colY; const normalY = rowZ * colX - rowX * colZ; @@ -282,6 +282,13 @@ export default { this.imageInfo.location = imagePlaneModule.sliceLocation this.imageInfo.total = detail.numberOfSlices this.getOrientationMarker() + + let annotations = cornerstoneTools.annotation.state.getAllAnnotations().filter(item => item.metadata.toolName !== 'ScaleOverlay' && item.metadata.volumeId !== this.volumeId && !item.metadata.segmentationId) + // console.log(annotations, 'annotations') + annotations.forEach(item => { + cornerstoneTools.annotation.state.removeAnnotation(item.annotationUID) + }) + this.$emit('renderAnnotations', this.series) let properties = viewport.getProperties() if (this.isFusion) {