From 5394a2cde5eaa51268e750c4f09f24b50466f377 Mon Sep 17 00:00:00 2001 From: wangxiaoshuang <825034831@qq.com> Date: Wed, 29 Oct 2025 16:04:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9Edicom=E8=A7=92=E5=BA=A6=E5=B7=A5?= =?UTF-8?q?=E5=85=B7=E6=B7=BB=E5=8A=A0=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../visit-review/components/FileViewer.vue | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue b/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue index c70a2358..3d7b7156 100644 --- a/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue +++ b/src/views/trials/trials-panel/reading/visit-review/components/FileViewer.vue @@ -574,7 +574,10 @@ export default { cachedStats: false, getTextLines: this.getCircleROIToolTextLines }) - toolGroup.addTool(AngleTool.toolName) + toolGroup.addTool(AngleTool.toolName, { + cachedStats: false, + getTextLines: this.getAngleToolTextLines + }) toolGroup.addTool(PlanarFreehandROITool.toolName, { allowOpenContours: false, cachedStats: false, @@ -1541,6 +1544,25 @@ export default { } return textLines }, + // 角度工具注释信息 + getAngleToolTextLines(data, targetId) { + const cachedVolumeStats = data.cachedStats[targetId] + const { label } = data + const { angle } = cachedVolumeStats + if (angle === undefined) { + return + } + + if (isNaN(angle)) { + return [`${angle}`] + } + const textLines = [] + if (label) { + textLines.push(label) + } + textLines.push(`${angle.toFixed(this.digitPlaces)} ${String.fromCharCode(176)}`) + return textLines + }, reRound(result, finalPrecision) { if (typeof result === 'string' && result.includes(', ')) { const numStrs = result.split(', ')