From fb68892cd4636aaa95bcf4698208a1ea2ff24a94 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Mon, 12 May 2025 17:22:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9F=BA=E7=BA=BF=E4=BA=8C=E7=BB=B4=E4=B8=8A?= =?UTF-8?q?=E7=9A=84=E7=97=85=E7=81=B6=E8=A2=AB=E6=B8=B2=E6=9F=93=E5=88=B0?= =?UTF-8?q?=E4=BA=86=E9=9A=8F=E8=AE=BF=E7=9A=84=E8=9E=8D=E5=90=88=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms3D/components/ReadPage.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 c3b4d767..31cb75b7 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue @@ -708,7 +708,8 @@ export default { studyList: [], volumeData: {}, fusionSerieId: {}, - loadingText: null + loadingText: null, + resetAnnotation: false , // 是否初始化标记 (融合时使用) } }, computed: { @@ -1471,6 +1472,7 @@ export default { async customAnnotationRemovedListener(e) { const { annotation } = e.detail try{ + if ( this.resetAnnotation && this.isFusion ) return false if (!annotation) return false if (this.readingTaskState === 2) throw 'annotation Not allowed to operate' if (annotation.visitTaskId === this.taskInfo.VisitTaskId && annotation.seriesId) { @@ -2733,6 +2735,9 @@ export default { let { ct, pt } = data this.loading = true this.loadingText = this.$t('trials:lugano:message:loadVolumes') + this.resetAnnotation = true + cornerstoneTools.annotation.state.removeAllAnnotations() + this.renderedTaskIds = [] if ( this.verifyFusionData(ct, pt) ) { this.loading = false this.loadingText = null @@ -2740,6 +2745,7 @@ export default { this.$refs[`viewport-1`][0].setSeriesInfo(pt) this.$refs[`viewport-2`][0].setSeriesInfo(pt) this.$refs[`viewport-3`][0].setSeriesInfo(pt) + this.resetAnnotation = false return true } if (!this.fusionSerieId.ct || this.fusionSerieId.ct !== ct.SeriesInstanceUid ) { @@ -2779,6 +2785,7 @@ export default { this.$refs[`viewport-fusion-1`][0].setSeriesInfo(ptData, { colorMap: true}) this.$refs[`viewport-fusion-2`][0].setSeriesInfo(fusionData, { isFusion: true, colorMap: true }) this.$refs[`viewport-fusion-3`][0].setSeriesInfo(ptData, { isMip: true, colorMap: true }) + this.resetAnnotation = false this.$nextTick(() => { this.$refs[`colorMap`].init() })