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(', ')