Summary: - Fix methodology score display issue in task list (show score instead of 'warn') - Add methodology_score field to database schema - Fix report display when only methodology agent is selected - Implement Word document export using docx library - Update documentation to v3.0/v3.1 Backend changes: - Add methodologyScore to Prisma schema and TaskSummary type - Update reviewWorker to save methodologyScore - Update getTaskList to return methodologyScore Frontend changes: - Install docx and file-saver libraries - Implement handleExportReport with Word generation - Fix activeTab auto-selection based on available data - Add proper imports for docx components Documentation: - Update RVW module status to 90% (Phase 1-5 complete) - Update system status document to v3.0 Tested: All review workflows verified, Word export functional
86 lines
1.1 KiB
Bash
86 lines
1.1 KiB
Bash
#!/bin/bash
|
||
|
||
# Linux/Mac脚本 - 运行缺失值处理功能测试
|
||
|
||
echo "========================================"
|
||
echo "缺失值处理功能 - 自动化测试"
|
||
echo "========================================"
|
||
echo
|
||
|
||
# 检查Python是否安装
|
||
if ! command -v python3 &> /dev/null; then
|
||
echo "[错误] Python未安装"
|
||
exit 1
|
||
fi
|
||
|
||
echo "[1/3] 检查Python服务状态..."
|
||
if ! curl -s http://localhost:8001/health > /dev/null 2>&1; then
|
||
echo "[警告] Python服务未运行,请先启动服务:"
|
||
echo " cd extraction_service"
|
||
echo " python main.py"
|
||
echo
|
||
exit 1
|
||
fi
|
||
echo "[OK] Python服务运行正常"
|
||
echo
|
||
|
||
echo "[2/3] 检查依赖..."
|
||
python3 -c "import pandas, numpy, requests" 2> /dev/null
|
||
if [ $? -ne 0 ]; then
|
||
echo "[警告] 缺少依赖,正在安装..."
|
||
pip3 install pandas numpy requests
|
||
fi
|
||
echo "[OK] 依赖检查完成"
|
||
echo
|
||
|
||
echo "[3/3] 运行测试..."
|
||
echo
|
||
python3 test_fillna_operations.py
|
||
|
||
echo
|
||
echo "========================================"
|
||
echo "测试完成"
|
||
echo "========================================"
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
|