Compare commits

...

2 Commits

Author SHA1 Message Date
57939ce677 fix(rotation): 修正报告图表操作列的索引错误
- 将操作列索引从第8列调整为第11列(索引10)
- 保持不同操作对应的行背景色不变
- 修复因操作列索引错误导致的行着色问题
2026-03-26 21:23:55 +08:00
4b8e1dbec6 fix(build): 修复基础镜像存在性检查及构建逻辑
- 使用docker images --format精确匹配镜像名称和标签
- 修正基础镜像检查条件,确保检测index-base:latest
- 添加未找到Dockerfile_base时的脚本退出逻辑
- 优化基础镜像构建流程提示信息
2026-03-26 21:23:21 +08:00
2 changed files with 4 additions and 3 deletions

View File

@@ -19,13 +19,14 @@ echo ""
# 检查并构建基础镜像(如果不存在)
echo "0. 检查基础镜像..."
if ! docker images | grep -q "index-base"; then
if ! docker images --format "{{.Repository}}:{{.Tag}}" | grep -q "index-base:latest"; then
echo " 基础镜像不存在,开始构建..."
if [ -f "Dockerfile_base" ]; then
docker build --platform linux/arm64 -f Dockerfile_base -t index-base:latest .
echo " ✅ 基础镜像构建成功"
else
echo " ⚠️ 未找到 Dockerfile_base跳过基础镜像构建"
exit 1
fi
else
echo " ✅ 基础镜像已存在"

View File

@@ -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)