1
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
070db5158d
commit
c25cb097ab
|
@ -517,36 +517,13 @@ export default {
|
||||||
this.renderHistoryAnnotationTaskIds.push(obj.VisitTaskId)
|
this.renderHistoryAnnotationTaskIds.push(obj.VisitTaskId)
|
||||||
// let arr = []
|
// let arr = []
|
||||||
obj.Annotations.map(i => {
|
obj.Annotations.map(i => {
|
||||||
// if (typeof i.MeasureData === 'string') {
|
|
||||||
// const annotation = JSON.parse(i.MeasureData)
|
|
||||||
const annotation = i.MeasureData
|
const annotation = i.MeasureData
|
||||||
annotation.annotationId = i.Id
|
annotation.annotationId = i.Id
|
||||||
// if (annotation.metadata.toolName === 'Length') {
|
|
||||||
// let annotations = obj.Annotations.filter(item=>{
|
|
||||||
// const annotation = JSON.parse(item.MeasureData)
|
|
||||||
// item.metadata.referencedImageId === annotation.metadata.referencedImageId
|
|
||||||
// })
|
|
||||||
// annotations.map(i=>{
|
|
||||||
// return {
|
|
||||||
// i,
|
|
||||||
// 'i.data.ps': annotation.data.handles.ps
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
// console.log(annotations)
|
|
||||||
// }
|
|
||||||
cornerstoneTools.annotation.state.addAnnotation(annotation)
|
cornerstoneTools.annotation.state.addAnnotation(annotation)
|
||||||
if (obj.ReadingTaskState === 2) {
|
if (obj.ReadingTaskState === 2) {
|
||||||
cornerstoneTools.annotation.locking.setAnnotationLocked(annotation.annotationUID)
|
cornerstoneTools.annotation.locking.setAnnotationLocked(annotation.annotationUID)
|
||||||
}
|
}
|
||||||
|
|
||||||
})
|
})
|
||||||
// arr.map(i=>{
|
|
||||||
// cornerstoneTools.annotation.state.addAnnotation(i)
|
|
||||||
// if (obj.ReadingTaskState === 2) {
|
|
||||||
// cornerstoneTools.annotation.locking.setAnnotationLocked(i.annotationUID)
|
|
||||||
// }
|
|
||||||
// })
|
|
||||||
|
|
||||||
},
|
},
|
||||||
// 渲染图片
|
// 渲染图片
|
||||||
async renderImage(imageIds, canvasIndex, sliceIndex) {
|
async renderImage(imageIds, canvasIndex, sliceIndex) {
|
||||||
|
@ -942,9 +919,6 @@ export default {
|
||||||
viewport.render()
|
viewport.render()
|
||||||
// 保存成功
|
// 保存成功
|
||||||
// this.$message.success(this.$t('common:message:savedSuccessfully'))
|
// this.$message.success(this.$t('common:message:savedSuccessfully'))
|
||||||
},
|
|
||||||
calculateCachedStats(imageId) {
|
|
||||||
|
|
||||||
},
|
},
|
||||||
getLengthToolTextLines(data, targetId) {
|
getLengthToolTextLines(data, targetId) {
|
||||||
const cachedVolumeStats = data.cachedStats[targetId]
|
const cachedVolumeStats = data.cachedStats[targetId]
|
||||||
|
|
Loading…
Reference in New Issue