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

@@ -946,9 +946,12 @@ class KDocsUploader:
return
if getattr(account, "is_running", False):
return
if getattr(account, "status", "") != "上传截图":
current_status = getattr(account, "status", "")
# 只处理上传相关的状态
if current_status not in ("上传截图", "等待上传"):
return
account.status = prev_status or "未开始"
# 上传完成后恢复为未开始,而不是恢复到之前的等待上传状态
account.status = "未开始"
self._emit_account_update(user_id, account)
def _select_sheet(self, sheet_name: str, sheet_index: int) -> None: