支持页码的正常显示

This commit is contained in:
work-zym\zhangyiming 2024-11-25 16:30:04 +08:00
parent 1f3e167cc7
commit d4d6534204
2 changed files with 8 additions and 0 deletions

Binary file not shown.

View File

@ -397,6 +397,14 @@ void MedicalRecordManager::updateContext()
{
return;
}
if(m_currentPage!=0)
{
m_labPageNumTxt.setText(QString("%1/%2").arg(m_currentPage).arg(QString::number((int)page)));
}
else
{
m_labPageNumTxt.setText(QString("%1/%2").arg(1).arg(QString::number((int)page)));
}
DataManager::instance().getMedicRecordList(fileName, lstInfo, m_currentPage, m_tableWidget.rowCount());
m_tableWidget.horizontalHeader()->setSectionResizeMode(QHeaderView::Fixed);