From dd192890e5e2797c945494002257d2e4d5ce9751 Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Fri, 26 Dec 2025 18:37:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(FinancialPanorama):=20=E7=BB=9F=E4=B8=80?= =?UTF-8?q?=E8=90=A5=E6=94=B6=E6=9F=B1=E7=8A=B6=E5=9B=BE=E9=A2=9C=E8=89=B2?= =?UTF-8?q?=E4=B8=BA=E7=BA=A2=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将营收与利润趋势图表的柱状图颜色从动态红涨绿跌改为统一红色 - 图例颜色自动与柱子颜色保持一致 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../components/FinancialPanorama/utils/chartOptions.ts | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/src/views/Company/components/FinancialPanorama/utils/chartOptions.ts b/src/views/Company/components/FinancialPanorama/utils/chartOptions.ts index 3c785aa2..451108b1 100644 --- a/src/views/Company/components/FinancialPanorama/utils/chartOptions.ts +++ b/src/views/Company/components/FinancialPanorama/utils/chartOptions.ts @@ -200,14 +200,7 @@ export const getComparisonChartOption = ( type: 'bar', data: revenueData.map((d) => d.value?.toFixed(2)), itemStyle: { - color: (params: { dataIndex: number; value: number }) => { - const idx = params.dataIndex; - if (idx === 0) return fui.gold; // 金色作为基准 - const prevValue = revenueData[idx - 1].value; - const currValue = params.value; - // 红涨绿跌 - return currValue >= prevValue ? '#EF4444' : '#10B981'; - }, + color: '#EF4444', // 统一红色 }, }, {