From 3e4122caecedd43f0bd649ee2806a5bee81b11be Mon Sep 17 00:00:00 2001 From: kkfluous Date: Sun, 29 Mar 2026 09:39:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=8E=BB=E9=99=A4=E5=AE=A2=E6=88=B7Tab?= =?UTF-8?q?=E7=9A=84=E9=A5=BC=E5=9B=BE=EF=BC=88=E5=AE=A2=E6=88=B7=E8=BF=90?= =?UTF-8?q?=E8=90=A5=E5=9C=B0=E5=8C=BA=E5=8D=A0=E6=AF=94=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 4.6 (1M context) --- src/App.tsx | 74 ----------------------------------------------------- 1 file changed, 74 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 1add586..0ea49ac 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -2200,80 +2200,6 @@ export default function App() { {tabReady && activeTab === 'customer' && (
- {/* Customer Region Distribution Chart */} -
-
-
-
-

客户运营地区占比

-
-
- - -
-
- {(() => { - const PIE_COLORS = ['#6366f1','#06b6d4','#f59e0b','#f43f5e','#10b981','#a855f7','#94a3b8']; - const pieData = customerPieData; - const grandTotal = pieData.reduce((s,d) => s + d.value, 0); - return ( -
- {/* Donut chart */} -
- - - - {pieData.map((_, i) => ( - - ))} - - [`${value} 辆`, '']} - contentStyle={{ borderRadius: '10px', border: 'none', boxShadow: '0 8px 24px -4px rgba(0,0,0,0.12)', fontSize: 12 }} - /> - - - {/* Center label */} -
- {grandTotal} - -
-
- {/* Custom legend */} -
- {pieData.map((item, i) => { - const pct = grandTotal > 0 ? (item.value / grandTotal * 100) : 0; - const color = PIE_COLORS[i % PIE_COLORS.length]; - return ( -
-
- {item.name} -
-
-
- {item.value} - {pct.toFixed(1)}% -
- ); - })} -
-
- ); - })()} -
{/* Customer Operations Statistics Section */}