|
@@ -7,6 +7,7 @@
|
|
|
|
|
|
#include "EvalDataManager.h"
|
|
|
#include "algorithm/HierarchicalAnalysis.h"
|
|
|
+#include "MindEvaluation.h"
|
|
|
|
|
|
#include "GreyClusteringConfigWidget.h" // 灰色聚类配置
|
|
|
#include "GreyClusteringSampleTable.h" // 灰色聚类评估
|
|
@@ -317,10 +318,21 @@ void DataCollectionWidget::slotImportData(UserConfig *config)
|
|
|
|
|
|
void DataCollectionWidget::slotConfigSelected(UserConfig *config)
|
|
|
{
|
|
|
+
|
|
|
DataTableWidget *table = (DataTableWidget *)m_tab->currentWidget();
|
|
|
+ QString indexName = ProjectManager::nameOfIndexType((ProjectManager::IndexType)table->process().indexType);
|
|
|
+
|
|
|
+ MindEvaluation *eval = new MindEvaluation(table->mind1(), MindEvaluation::Merge, indexName,
|
|
|
+ table->process().dSource == SchemePlanManager::FromExpert);
|
|
|
+ eval->updateSeqNodes();
|
|
|
+ eval->computeWeights();
|
|
|
+
|
|
|
+ for (MindNodeItem item : eval->mindNodeWeights) {
|
|
|
+ qDebug() << __FUNCTION__ << __LINE__ << item.name << item.value << item.score << endl;
|
|
|
+ }
|
|
|
+
|
|
|
QList<NodeMatrixInfo *> data;
|
|
|
- QString indexName = ProjectManager::nameOfIndexType((ProjectManager::IndexType)table->process().indexType);
|
|
|
- NodeMatrixService().QueryNodeMatrixListByExpertIdAndEngineerId(&data, config->engineerId, config->userId,
|
|
|
+ NodeMatrixService().QueryNodeMatrixListByExpertIdAndEngineerId(&data, config->userId, config->engineerId,
|
|
|
indexName);
|
|
|
|
|
|
qDebug() << __FUNCTION__ << __LINE__ << config->engineerId << config->userId << indexName << data.size() << endl;
|