internal_system_v1/coverinfo.cpp
@@ -7,6 +7,7 @@ #include <QSqlRecord> int g_comId = 0; // 全局变量,保存单位id QString g_dataRootPath; // 数据的根目录 CoverInfo::CoverInfo(QWidget *parent) : QMainWindow(parent), @@ -42,6 +43,7 @@ if(dirRe.exists()){ dirPath = dirPathRelease; } g_dataRootPath = dirPath; // 将根目录保存起来 QStringList list; QDirIterator it(dirPath, {"*.xls","*.xlsx"}, QDir::Files | QDir::NoSymLinks | QDir::NoDotAndDotDot, QDirIterator::Subdirectories); while(it.hasNext())