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) => {