|
@@ -103,7 +103,8 @@ void DataTableWidget::setCurrentPage(int p)
|
|
|
return;
|
|
|
}
|
|
|
m_currentPage = p;
|
|
|
-
|
|
|
+ m_previous->setEnabled(p > 1);
|
|
|
+ m_next->setEnabled(p < m_mind1->levels() - 1);
|
|
|
setupTabWidget();
|
|
|
|
|
|
m_pageLab->setText(QString("共 %1 页, 当前第 %2 页").arg(m_mind1->levels() - 1).arg(p));
|
|
@@ -122,12 +123,10 @@ void DataTableWidget::updateCurrentTable()
|
|
|
QStandardItemModel *model = (QStandardItemModel *)table->model();
|
|
|
|
|
|
/// 设置顶部水平方向标题
|
|
|
- int hIndex = -1;
|
|
|
- // 导入评估数据时, 增加一列指标权重
|
|
|
- if (m_process.type == SchemePlanManager::ImportEvalData) {
|
|
|
- QStandardItem *item = new QStandardItem("指标权重");
|
|
|
- model->setHorizontalHeaderItem(++hIndex, item);
|
|
|
- }
|
|
|
+ int hIndex = -1;
|
|
|
+ int dimensionIndex = -1; // 量纲所在列
|
|
|
+ int typeIndex = -1; // 指标类型所在列
|
|
|
+
|
|
|
// 指标
|
|
|
CNodeData n = m_mind1->nodesInLevel(m_currentPage)[c];
|
|
|
QList<CNodeData> hList = m_mind1->subNodes(n);
|
|
@@ -142,7 +141,6 @@ void DataTableWidget::updateCurrentTable()
|
|
|
}
|
|
|
}
|
|
|
// 导入方案优选评估或效能评估的评估数据时, 需要显示量纲
|
|
|
- int dimensionIndex = -1;
|
|
|
if (m_process.type == SchemePlanManager::ImportEvalData
|
|
|
&& (m_process.indexType == ProjectManager::OptimalIndex
|
|
|
|| m_process.indexType == ProjectManager::EfficiencyIndex)) {
|
|
@@ -151,8 +149,6 @@ void DataTableWidget::updateCurrentTable()
|
|
|
dimensionIndex = hIndex;
|
|
|
}
|
|
|
// 导入方案优选评估的评估数据时, 需要显示指标类型
|
|
|
-
|
|
|
- int typeIndex = -1;
|
|
|
if (m_process.type == SchemePlanManager::ImportEvalData && m_process.indexType == ProjectManager::OptimalIndex) {
|
|
|
QStandardItem *item = new QStandardItem("指标类型");
|
|
|
model->setHorizontalHeaderItem(++hIndex, item);
|