#include "EXIndexView.h" #include "dbService/ClassSet.h" #include "dbService/CNodeDataService.h" #include #include #include EXIndexView::EXIndexView(ProjectInfo *proj, QWidget *parent) : EXEvalView(proj, parent) { setTitle("指标体系"); } void EXIndexView::setType(int type) { EXEvalView::setType(type); setupTabWidget(); } void EXIndexView::setupTabWidget() { m_tab->clear(); for (int i : indexList()) { CMindView *m = new CMindView(this); m->setAllowEdit(false); ProjectManager::IndexType t = (ProjectManager::IndexType)i; QString s = ProjectManager::nameOfIndexType(t); m_tab->addTab(m, s); QList list; bool ret = CNodeDataService().QueryAllValid(list, proj()->id, t); if (ret) { m->setNodeList(list); } } }