第一个标记渲染时,不触发更新

uat_us
caiyiling 2024-03-18 15:53:29 +08:00
parent a048572403
commit cd45362a07
1 changed files with 11 additions and 3 deletions

View File

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