重阅保存表单标记渲染问题修复
parent
6407cd8264
commit
c745756c8c
|
@ -527,7 +527,8 @@ export default {
|
||||||
initAnnotations: [],
|
initAnnotations: [],
|
||||||
activeCanvasWW: null,
|
activeCanvasWW: null,
|
||||||
activeCanvasWC: null,
|
activeCanvasWC: null,
|
||||||
fusion: { visible: false } // 历史记录融合调窗
|
fusion: { visible: false }, // 历史记录融合调窗
|
||||||
|
// initFirstAnnotation:false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
@ -709,18 +710,20 @@ export default {
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_ADDED, (e) => {
|
eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_ADDED, (e) => {
|
||||||
|
console.log('ANNOTATION_ADDED')
|
||||||
this.onAnnotationAdded(e)
|
this.onAnnotationAdded(e)
|
||||||
})
|
})
|
||||||
|
|
||||||
const debouncedCallback = this.debounce((e) => {
|
const debouncedCallback = this.debounce((e) => {
|
||||||
const { annotation } = e.detail
|
this.onAnnotationModified(e)
|
||||||
const { remark } = annotation.data
|
// const { annotation } = e.detail
|
||||||
var idx = this.initAnnotations.findIndex(i => i.orderMark === remark)
|
// const { remark } = annotation.data
|
||||||
if (this.initAnnotations.length > 0 && idx > -1 && this.initAnnotations[idx].orderMark === remark && !this.initAnnotations[idx].isInit) {
|
// var idx = this.initAnnotations.findIndex(i => i.orderMark === remark)
|
||||||
this.initAnnotations[idx].isInit = true
|
// if (this.initAnnotations.length > 0 && idx > -1 && this.initAnnotations[idx].orderMark === remark && !this.initAnnotations[idx].isInit) {
|
||||||
} else {
|
// this.initAnnotations[idx].isInit = true
|
||||||
this.onAnnotationModified(e)
|
// } else {
|
||||||
}
|
// 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) {
|
||||||
|
@ -756,6 +759,7 @@ export default {
|
||||||
// }
|
// }
|
||||||
}, 120)
|
}, 120)
|
||||||
eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_MODIFIED, (e) => {
|
eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_MODIFIED, (e) => {
|
||||||
|
console.log('ANNOTATION_MODIFIED')
|
||||||
debouncedCallback(e)
|
debouncedCallback(e)
|
||||||
})
|
})
|
||||||
eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_SELECTION_CHANGE, (e) => {
|
eventTarget.addEventListener(cornerstoneTools.Enums.Events.ANNOTATION_SELECTION_CHANGE, (e) => {
|
||||||
|
|
Loading…
Reference in New Issue