fix: 修复多任务上传状态显示问题

1. 后端: 上传完成后恢复为"未开始"状态,不再保持"等待上传"
2. 前端: 调整状态颜色
   - 上传截图(上传中): 红色
   - 等待上传: 黄色
   - 已完成: 绿色
This commit is contained in:
Yu Yon
2026-01-09 09:21:30 +08:00
parent 7f5e9d5244
commit b1484e9c03
16 changed files with 42 additions and 37 deletions

View File

@@ -147,10 +147,12 @@ function toPercent(acc) {
function statusTagType(status = '') {
const text = String(status)
if (text.includes('已完成') || text.includes('完成')) return 'success'
if (text.includes('失败') || text.includes('错误') || text.includes('异常') || text.includes('登录失败')) return 'danger'
if (text.includes('排队') || text.includes('运行') || text.includes('截图')) return 'warning'
return 'info'
if (text.includes('已完成') || text.includes('完成')) return 'success' // 绿色
if (text.includes('失败') || text.includes('错误') || text.includes('异常') || text.includes('登录失败')) return 'danger' // 红色
if (text.includes('上传截图')) return 'danger' // 上传中:红色
if (text.includes('等待上传')) return 'warning' // 等待上传:黄色
if (text.includes('排队') || text.includes('运行') || text.includes('截图')) return 'warning' // 黄色
return 'info' // 灰色
}
function showRuntimeProgress(acc) {