Fix step4_panel variable name inconsistency causing AttributeError

This commit is contained in:
DXC
2026-06-11 15:14:26 +08:00
parent 5d75d3371b
commit 1ad4c54b80
6 changed files with 572 additions and 646 deletions

View File

@ -1918,8 +1918,8 @@ class WaterQualityGUI(QMainWindow):
self.step3_panel = Step3Panel()
self.step_stack.addTab(self.create_scroll_area(self.step3_panel), QIcon(self.get_icon_path("3.png")), "耀斑去除")
self.step4_panel = Step4SamplingPanel()
self.step_stack.addTab(self.create_scroll_area(self.step4_panel), QIcon(self.get_icon_path("4.png")), "采样点布设")
self.step4_sampling_panel = Step4SamplingPanel()
self.step_stack.addTab(self.create_scroll_area(self.step4_sampling_panel), QIcon(self.get_icon_path("4.png")), "采样点布设")
self.step5_clean_panel = Step5CleanPanel()
self.step_stack.addTab(self.create_scroll_area(self.step5_clean_panel), QIcon(self.get_icon_path("5.png")), "数据清洗")
@ -2153,7 +2153,7 @@ class WaterQualityGUI(QMainWindow):
# Step4采样点布设切换时自动填充输出路径
elif index == 3:
self.step4_panel.update_from_config(work_dir=self.work_dir)
self.step4_sampling_panel.update_from_config(work_dir=self.work_dir)
# Step5数据清洗切换时自动填充数据流转路径
elif index == 4: