From c745756c8c2257446fc4a75e09c9685dd151c562 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Wed, 27 Mar 2024 15:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E9=98=85=E4=BF=9D=E5=AD=98=E8=A1=A8?= =?UTF-8?q?=E5=8D=95=E6=A0=87=E8=AE=B0=E6=B8=B2=E6=9F=93=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dicoms/components/Fusion/PetCt.vue | 22 +++++++++++-------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/PetCt.vue b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/PetCt.vue index 4c14176d..6a070362 100644 --- a/src/views/trials/trials-panel/reading/dicoms/components/Fusion/PetCt.vue +++ b/src/views/trials/trials-panel/reading/dicoms/components/Fusion/PetCt.vue @@ -527,7 +527,8 @@ export default { initAnnotations: [], activeCanvasWW: null, activeCanvasWC: null, - fusion: { visible: false } // 历史记录融合调窗 + fusion: { visible: false }, // 历史记录融合调窗 + // initFirstAnnotation:false } }, computed: { @@ -709,18 +710,20 @@ export default { } }) eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_ADDED, (e) => { + console.log('ANNOTATION_ADDED') this.onAnnotationAdded(e) }) const debouncedCallback = this.debounce((e) => { - const { annotation } = e.detail - const { remark } = annotation.data - var idx = this.initAnnotations.findIndex(i => i.orderMark === remark) - if (this.initAnnotations.length > 0 && idx > -1 && this.initAnnotations[idx].orderMark === remark && !this.initAnnotations[idx].isInit) { - this.initAnnotations[idx].isInit = true - } else { - this.onAnnotationModified(e) - } + this.onAnnotationModified(e) + // const { annotation } = e.detail + // const { remark } = annotation.data + // var idx = this.initAnnotations.findIndex(i => i.orderMark === remark) + // if (this.initAnnotations.length > 0 && idx > -1 && this.initAnnotations[idx].orderMark === remark && !this.initAnnotations[idx].isInit) { + // this.initAnnotations[idx].isInit = true + // } else { + // this.onAnnotationModified(e) + // } // const { cachedStats } = annotation.data // var isNotValidAnnotationNum = 0 // for (const volumeId in cachedStats) { @@ -756,6 +759,7 @@ export default { // } }, 120) eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_MODIFIED, (e) => { + console.log('ANNOTATION_MODIFIED') debouncedCallback(e) }) eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_SELECTION_CHANGE, (e) => {