This commit is contained in:
27942
2026-01-26 23:50:49 +08:00
parent 52fdc26077
commit 91e4037f7c

View File

@@ -3075,7 +3075,7 @@ class MainWindow(QMainWindow):
)
return
# 清空所有状态根据新的Excel配置表格为准
# 清空所有状态根据新的Excel配置表格为准(完全重置,不保留任何上一次的数据)
# 1. 清空配置列表
self.configs = []
# 2. 重置运行状态变量
@@ -3086,14 +3086,20 @@ class MainWindow(QMainWindow):
self.current_batch_task_index = 0
# 4. 清空行映射(用于状态回写)
self._row_map_by_user_index = {}
# 5. 重置成功/失败计数变量确保导入新Excel时完全清空上一次的统计
# 5. 重置所有计数变量确保导入新Excel时完全清空上一次的统计
self.batch_success_count = 0
self.batch_failed_count = 0
# 6. 重置所有状态卡片显示
self.batch_total_tasks = 0
self.batch_processed = 0
self.batch_pending_tasks = 0
# 6. 重置所有状态卡片显示(全部归零)
self.set_status_cards(update_text="未更新", pending=0, running=0, success=0, failed=0)
# 7. 重置进度条
if hasattr(self, "status_running_progress"):
self.status_running_progress.setValue(0)
if hasattr(self, "progress_bar"):
self.progress_bar.setValue(0)
self.progress_bar.setVisible(False)
# 转换为配置列表,添加异常处理
for idx, row in df.iterrows():