feat(layout): 导航菜单自动刷新
-点击导航菜单对应页面自动刷新 -设备布局示意,添加背景图片及显示修改
This commit is contained in:
+12
-3
@@ -266,6 +266,15 @@ QualityPage::~QualityPage()
|
||||
{
|
||||
}
|
||||
|
||||
void QualityPage::refresh()
|
||||
{
|
||||
loadInspectionRecords();
|
||||
loadStatistics();
|
||||
if (!traceBarcodeEdit->text().trimmed().isEmpty()) {
|
||||
loadTrace();
|
||||
}
|
||||
}
|
||||
|
||||
void QualityPage::setupInspectionTab()
|
||||
{
|
||||
inspectionOrderEdit = new QLineEdit;
|
||||
@@ -357,10 +366,10 @@ void QualityPage::setupTraceTab()
|
||||
|
||||
void QualityPage::loadInspectionRecords()
|
||||
{
|
||||
const QString slotText = inspectionSlotEdit->text().trimmed();
|
||||
bool slotOk = true;
|
||||
const int trayPos = inspectionSlotEdit->text().trimmed().isEmpty()
|
||||
? 0 : inspectionSlotEdit->text().trimmed().toInt(&slotOk);
|
||||
if (!slotOk || trayPos < 1 || trayPos > 49) {
|
||||
const int trayPos = slotText.isEmpty() ? 0 : slotText.toInt(&slotOk);
|
||||
if (!slotText.isEmpty() && (!slotOk || trayPos < 1 || trayPos > 49)) {
|
||||
setMessage(inspectionMessageLabel, "位置号必须是 1 到 49", true);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user