277b13eaae
优化内容: 1. 表格布局: - 使用 calc(100vw - 160px) 确保表格不超出视口 - 操作列 fixed='right' 固定在右侧,宽度 300px - 按钮 3 个后自动换行 (max-width: 200px) - 恢复合理列宽,不再过度压缩 2. 批量操作区域: - 容器改为 inline-block,宽度自适应按钮内容 - 背景宽度与按钮总宽度匹配 3. 分类标签: - 显示数量 (如 '待处理 (20)') - 点击切换筛选,去掉误导的 'X' 图标 4. 删除功能: - 操作列增加删除按钮 - 删除前弹出确认对话框 5. 系统日志: - 修复后端日志路径 (parents[4]) - 404 时显示友好提示 6. 其他: - 左侧菜单宽度 160px - 所有功能保留 (登录、用户管理、批量操作等)
22 lines
608 B
Python
22 lines
608 B
Python
#!/usr/bin/env python3
|
|
import sys, os, json, logging
|
|
from pathlib import Path
|
|
|
|
sys.path.insert(0, str(Path('.')).resolve())
|
|
|
|
# 导入 creator 模块中的函数
|
|
from scripts.creator import select_next_topic, run_pipeline_topic
|
|
|
|
# 设置日志
|
|
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
|
|
|
|
# 选择并锁定 A01
|
|
topic = select_next_topic('A01')
|
|
if topic:
|
|
print(f"✅ 选中选题: {topic['id']} - {topic['title']}")
|
|
# 执行流水线
|
|
result = run_pipeline_topic(topic)
|
|
print("生成结果:", result)
|
|
else:
|
|
print("❌ 无法选中选题 A01")
|