feat(layout): 导航菜单自动刷新

-点击导航菜单对应页面自动刷新
-设备布局示意,添加背景图片及显示修改
This commit is contained in:
lidg
2026-11-11 10:44:12 +08:00
parent 43e38f0aa8
commit 6e22fe5672
13 changed files with 268 additions and 154 deletions
+5 -2
View File
@@ -10,6 +10,7 @@
class QTableWidget;
class QGroupBox;
class QResizeEvent;
class QEvent;
class QLabel;
class QPushButton;
class QTimer;
@@ -70,13 +71,14 @@ private slots:
void markWorkpieceNg();
protected:
bool eventFilter(QObject *watched, QEvent *event) override;
void resizeEvent(QResizeEvent *event) override;
private:
void loadCurrentOrder();
void updateProductionStats();
void updateRackSummary();
void updateRackSize();
void updateDeviceLayout();
void updateRecoveryButtons();
QString controlOperationContext(QString *identity) const;
bool confirmControlOperation(const QString &title, const QString &effect);
@@ -85,6 +87,8 @@ private:
static QString formatDuration(int elapsedMs);
Ui::DashboardPage *ui;
QWidget *layoutCanvas;
QLabel *layoutBackground;
QGroupBox *rackBox;
QVector<QLabel *> rackTrayCells;
QLabel *deviceStatusLabel;
@@ -94,7 +98,6 @@ private:
QLabel *mainControlCabinetCell;
QLabel *safetyDoor1Cell;
QLabel *safetyDoor2Cell;
QLabel *safetyDoor3Cell;
QLabel *alarmCell;
QPushButton *markNgButton;
QPushButton *stopButton;