From 0f9963d939fb8787a77524cf3518e81b8bc92ff4 Mon Sep 17 00:00:00 2001 From: caiyiling <1321909229@qq.com> Date: Mon, 14 Apr 2025 13:41:42 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AE=AD=E5=A4=B4=E5=B7=A5=E5=85=B7=E6=9B=B4?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../reading/dicoms3D/components/ReadPage.vue | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue index 57ebe3ef..7c432635 100644 --- a/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue +++ b/src/views/trials/trials-panel/reading/dicoms3D/components/ReadPage.vue @@ -916,10 +916,10 @@ export default { toolGroup.addTool(ArrowAnnotateTool.toolName, { arrowHeadStyle: 'standard', changeTextCallback: async(data, eventData, doneChangingTextCallback) => { - return doneChangingTextCallback('') + return doneChangingTextCallback(data.label) }, getTextCallback: async(doneChangingTextCallback) => { - return doneChangingTextCallback('') + return doneChangingTextCallback('_') } }) } @@ -1178,7 +1178,12 @@ export default { const annotations = cornerstoneTools.annotation.state.getAllAnnotations() const idx = annotations.findIndex(i => i.annotationUID === obj.annotationUID) if (idx === -1) return - annotations[idx].data.label = obj.name + if (annotations[idx].metadata.toolName === 'ArrowAnnotate') { + annotations[idx].data.text = obj.name + } else { + annotations[idx].data.label = obj.name + } + const renderingEngine = getRenderingEngine(renderingEngineId) const viewportId = `viewport-${this.activeViewportIndex}` const viewport = renderingEngine.getViewport(viewportId)