路由壳升级:TaskWorker 三信号 + main_router→main_view 迁移(54/54 smoke 通过)
This commit is contained in:
@ -16,7 +16,7 @@ src/new/
|
||||
│ ├── __init__.py
|
||||
│ ├── step1_view.py # Step 1 真实视图(继承 BaseView)
|
||||
│ └── placeholder_view.py # step2-step13 占位视图
|
||||
└── main_router.py # 路由与调度壳(QMainWindow + QThread)
|
||||
└── main_view.py # 路由与调度壳(QMainWindow + QThread)
|
||||
```
|
||||
|
||||
## 端到端调用链
|
||||
@ -28,13 +28,13 @@ Step1View._on_run_clicked (绿色按钮)
|
||||
BaseView.dispatch_execute (沿父链上溯)
|
||||
│ ancestor.run_single_step(step_id, config)
|
||||
▼
|
||||
MainRouter.run_single_step (查 ROUTES 表 → 注入 work_dir)
|
||||
MainView.run_single_step (查 ROUTES 表 → 注入 work_dir)
|
||||
│ TaskWorker(service_func, config).start()
|
||||
▼
|
||||
services.step1_service.execute_step1(config)
|
||||
│ 调 WaterMaskStep.run(...) → 包装成 dict 返回
|
||||
▼
|
||||
MainRouter._on_step_done (按 status 写日志)
|
||||
MainView._on_step_done (按 status 写日志)
|
||||
```
|
||||
|
||||
## 运行验证
|
||||
@ -52,13 +52,13 @@ python _smoke_new_arch.py
|
||||
|
||||
```cmd
|
||||
cd D:\111\office\ZHLduijie\1.WQ\WQ_GUI
|
||||
python -m src.new.main_router
|
||||
python -m src.new.main_view
|
||||
```
|
||||
|
||||
或:
|
||||
|
||||
```cmd
|
||||
python src\new\main_router.py
|
||||
python src\new\main_view.py
|
||||
```
|
||||
|
||||
启动后:
|
||||
|
||||
Reference in New Issue
Block a user