第一个标记渲染时,不触发更新
parent
a048572403
commit
cd45362a07
|
@ -516,7 +516,8 @@ export default {
|
||||||
loadingText: '',
|
loadingText: '',
|
||||||
initAnnotations: [],
|
initAnnotations: [],
|
||||||
activeCanvasWW: null,
|
activeCanvasWW: null,
|
||||||
activeCanvasWC: null
|
activeCanvasWC: null,
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -598,11 +599,13 @@ export default {
|
||||||
})
|
})
|
||||||
FusionEvent.$on('getScreenshots', async(callback) => {
|
FusionEvent.$on('getScreenshots', async(callback) => {
|
||||||
// var base64Str = await this.$refs['FUSION_AXIAL'].getScreenshots()
|
// var base64Str = await this.$refs['FUSION_AXIAL'].getScreenshots()
|
||||||
|
const loading = this.$loading({ fullscreen: true })
|
||||||
const divForDownloadViewport = document.querySelector(
|
const divForDownloadViewport = document.querySelector(
|
||||||
'.dicom-container'
|
'.dicom-container'
|
||||||
)
|
)
|
||||||
var canvas = await html2canvas(divForDownloadViewport)
|
var canvas = await html2canvas(divForDownloadViewport)
|
||||||
var pictureBaseStr = canvas.toDataURL('image/png', 1)
|
var pictureBaseStr = canvas.toDataURL('image/png', 1)
|
||||||
|
loading.close()
|
||||||
callback(pictureBaseStr)
|
callback(pictureBaseStr)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
@ -696,8 +699,13 @@ export default {
|
||||||
})
|
})
|
||||||
|
|
||||||
const debouncedCallback = this.debounce((e) => {
|
const debouncedCallback = this.debounce((e) => {
|
||||||
// const { annotation } = e.detail
|
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)
|
this.onAnnotationModified(e)
|
||||||
|
}
|
||||||
// const { cachedStats } = annotation.data
|
// const { cachedStats } = annotation.data
|
||||||
// var isNotValidAnnotationNum = 0
|
// var isNotValidAnnotationNum = 0
|
||||||
// for (const volumeId in cachedStats) {
|
// for (const volumeId in cachedStats) {
|
||||||
|
|
Loading…
Reference in New Issue