【非dicom】重置crf时,需要清除所有标记,包括标尺
continuous-integration/drone/push Build is passing Details

main
wangxiaoshuang 2025-10-29 14:05:55 +08:00
parent b6bc22af72
commit fe0ba42736
2 changed files with 6 additions and 5 deletions

View File

@ -1008,7 +1008,6 @@ export default {
if (psIndex > -1) {
this.psArr.splice(psIndex, 1)
}
console.log(this.psArr, psIndex)
if (annotation.metadata.toolName === 'Lengthscale') {
this.$emit('getEcrf', { type: "changePlottingScaleChangeAnswer", VisitTaskId: this.taskInfo.VisitTaskId, noneDicomFileId: annotation.noneDicomFileId, path: annotation.path || '', picturePath: null, psArr: this.psArr, isRemovePlottingScale: false })
}
@ -1018,10 +1017,12 @@ export default {
const viewport = renderingEngine.getViewport(viewportId)
viewport.render()
}
} else {
const errorMsg = { message: 'annotation Not allowed to operate' }
throw errorMsg
}
// else {
// console.log(1234567)
// const errorMsg = { message: 'annotation Not allowed to operate' }
// throw errorMsg
// }
} catch (err) {
cornerstoneTools.annotation.state.addAnnotation(annotation)
const renderingEngine = getRenderingEngine(renderingEngineId)

View File

@ -211,7 +211,7 @@ export default {
return i
})
this.$set(this.visitTaskList[taskIdx], 'Annotations', annotations)
// this.$refs.fileViewer.resetAnnotations({ annotations, visitTaskId })
this.$refs.fileViewer.resetAnnotations({ annotations, visitTaskId })
},
setReadingTaskState(state) {
this.readingTaskState = state