From 57939ce67764151b27bd71e45d2c65f6fd28eb9a Mon Sep 17 00:00:00 2001 From: aszerW Date: Thu, 26 Mar 2026 21:23:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(rotation):=20=E4=BF=AE=E6=AD=A3=E6=8A=A5?= =?UTF-8?q?=E5=91=8A=E5=9B=BE=E8=A1=A8=E6=93=8D=E4=BD=9C=E5=88=97=E7=9A=84?= =?UTF-8?q?=E7=B4=A2=E5=BC=95=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将操作列索引从第8列调整为第11列(索引10) - 保持不同操作对应的行背景色不变 - 修复因操作列索引错误导致的行着色问题 --- strategies/rotation/report.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/strategies/rotation/report.py b/strategies/rotation/report.py index 6cceed1..ab9e245 100644 --- a/strategies/rotation/report.py +++ b/strategies/rotation/report.py @@ -581,13 +581,13 @@ def _plot_report_chart( # 数据行按操作着色 for i in range(len(table_data)): - action = table_data[i][7] # 操作列在第8列 + action = table_data[i][10] # 操作列在第11列(索引10) if action == "调入": color = "#d4edda" # 绿色 elif action == "调出": color = "#f8d7da" # 红色 else: - color = "#fff3cd" # 黄色 + color = "#fff3cd" # 黄色(维持) for j in range(len(col_labels)): table[i + 1, j].set_facecolor(color)