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 1ac3f6e0..40ce69da 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 @@ -516,7 +516,8 @@ export default { loadingText: '', initAnnotations: [], activeCanvasWW: null, - activeCanvasWC: null + activeCanvasWC: null, + } }, computed: { @@ -598,11 +599,13 @@ export default { }) FusionEvent.$on('getScreenshots', async(callback) => { // var base64Str = await this.$refs['FUSION_AXIAL'].getScreenshots() + const loading = this.$loading({ fullscreen: true }) const divForDownloadViewport = document.querySelector( '.dicom-container' ) var canvas = await html2canvas(divForDownloadViewport) var pictureBaseStr = canvas.toDataURL('image/png', 1) + loading.close() callback(pictureBaseStr) }) }, @@ -696,8 +699,13 @@ export default { }) const debouncedCallback = this.debounce((e) => { - // const { annotation } = e.detail - this.onAnnotationModified(e) + const { annotation } = e.detail + const { remark } = annotation.data + if(this.initAnnotations.length > 0 && this.initAnnotations[0].orderMark === remark && !this.initAnnotations[0].isInit){ + this.initAnnotations[0].isInit = true + }else{ + this.onAnnotationModified(e) + } // const { cachedStats } = annotation.data // var isNotValidAnnotationNum = 0 // for (const volumeId in cachedStats) {