From 1a6d359bb7937f5e86aefa10a2ee72dcfc83443b Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Fri, 26 Dec 2025 18:40:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E5=9B=BE=E8=A1=A8?= =?UTF-8?q?=E5=9B=BE=E4=BE=8B=E9=A2=9C=E8=89=B2=E4=B8=8D=E4=B8=80=E8=87=B4?= =?UTF-8?q?=E5=92=8C=E7=BB=9F=E4=B8=80=E8=A1=A8=E6=A0=BC=E5=85=B3=E9=94=AE?= =?UTF-8?q?=E6=8C=87=E6=A0=87=E5=AD=97=E4=BD=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - chartOptions.ts: 修复营收与利润趋势图表图例颜色与柱子颜色不对应问题 - constants.ts: 统一详细数据表格左侧关键指标的字体字号(13px)和粗细(500) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../components/FinancialPanorama/utils/chartOptions.ts | 5 ++++- src/views/Company/components/ForecastReport/constants.ts | 8 +++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src/views/Company/components/FinancialPanorama/utils/chartOptions.ts b/src/views/Company/components/FinancialPanorama/utils/chartOptions.ts index 451108b1..357a21b6 100644 --- a/src/views/Company/components/FinancialPanorama/utils/chartOptions.ts +++ b/src/views/Company/components/FinancialPanorama/utils/chartOptions.ts @@ -127,7 +127,10 @@ export const getComparisonChartOption = ( }, }, legend: { - data: ['营业收入', '净利润'], + data: [ + { name: '营业收入', itemStyle: { color: '#EF4444' } }, + { name: '净利润', itemStyle: { color: fui.gold } }, + ], bottom: 0, textStyle: { color: '#A0AEC0', diff --git a/src/views/Company/components/ForecastReport/constants.ts b/src/views/Company/components/ForecastReport/constants.ts index ee9c7372..7146db92 100644 --- a/src/views/Company/components/ForecastReport/constants.ts +++ b/src/views/Company/components/ForecastReport/constants.ts @@ -129,22 +129,24 @@ export const DETAIL_TABLE_STYLES = ` background: #242d3d !important; } - /* 指标标签样式 */ + /* 指标标签样式 - 统一字体字号和粗细 */ .forecast-detail-table .metric-tag { background: rgba(212, 175, 55, 0.15); border-color: rgba(212, 175, 55, 0.3); color: #D4AF37; + font-size: 13px; font-weight: 500; } - /* 重要指标行高亮 */ + /* 重要指标行高亮 - 保持字体字号一致,仅背景色区分 */ .forecast-detail-table .important-row { background: rgba(212, 175, 55, 0.06) !important; } .forecast-detail-table .important-row .metric-tag { background: rgba(212, 175, 55, 0.25); color: #FFD700; - font-weight: 600; + font-size: 13px; + font-weight: 500; } /* 斑马纹 - 奇数行 */