feat/vtk-3d-view #7
|
|
@ -2,7 +2,6 @@
|
|||
|
||||
#include <QComboBox>
|
||||
#include <QDate>
|
||||
#include <QDebug>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include "panels/columns/DateRangeEdit.hpp"
|
||||
|
|
@ -177,16 +176,6 @@ void CategorySection::refreshArrayCombo() {
|
|||
arrayCombo_->addItem(name, val); // data=实际属性值(passesFilters 据此比对)
|
||||
}
|
||||
}
|
||||
if (arrayCombo_->count() <= 1) // 诊断:装置下拉仍空 → 打印枚举大小 + 首行属性,定位是枚举空还是值不匹配
|
||||
qInfo().noquote() << "[arrayfilter]" << QString::fromStdString(spec_.id) << "enum="
|
||||
<< en.size() << "rows=" << rows_.size()
|
||||
<< (rows_.empty() ? QString() : [&] {
|
||||
QStringList vs;
|
||||
for (const auto& kv : rows_.front().properties)
|
||||
vs << (QString::fromStdString(kv.confFieldId) + "=" +
|
||||
QString::fromStdString(kv.value));
|
||||
return "row0[" + vs.join(',') + "]";
|
||||
}());
|
||||
}
|
||||
const int idx = arrayCombo_->findData(prev); // 尽量保留上次选择
|
||||
arrayCombo_->setCurrentIndex(idx >= 0 ? idx : 0);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
#include "dto/NavDto.hpp"
|
||||
|
||||
#include <QDebug>
|
||||
#include <QJsonDocument>
|
||||
#include <QJsonValue>
|
||||
#include <QString>
|
||||
#include <QStringList>
|
||||
|
|
@ -118,13 +116,6 @@ std::vector<StructNode> parseStructNodes(const QJsonArray& arr) {
|
|||
std::vector<DsRow> parseDsRows(const QJsonArray& arr) {
|
||||
std::vector<DsRow> out;
|
||||
out.reserve(static_cast<size_t>(arr.size()));
|
||||
// 诊断(一次):打印首行原始 JSON,定位装置/采集时间等字段实际所在(properties 形态/attachedParameters)。
|
||||
static bool s_loggedRaw = false;
|
||||
if (!s_loggedRaw && !arr.isEmpty()) {
|
||||
s_loggedRaw = true;
|
||||
qInfo().noquote() << "[dsrow-raw]"
|
||||
<< QJsonDocument(arr.first().toObject()).toJson(QJsonDocument::Compact);
|
||||
}
|
||||
for (const QJsonValue& v : arr) {
|
||||
const QJsonObject o = v.toObject();
|
||||
DsRow d;
|
||||
|
|
|
|||
Loading…
Reference in New Issue