import { parameterList } from '@/store/assets/fmeaTreeData';

const getters = {
  sidebar: (state) => state.app.sidebar,
  language: (state) => state.app.language,
  lang: state => state.app.lang,
  size: (state) => state.app.size,
  device: (state) => state.app.device,
  visitedViews: (state) => state.tagsView.visitedViews,
  cachedViews: (state) => state.tagsView.cachedViews,
  token: (state) => state.user.token,
  avatar: (state) => state.user.avatar,
  name: (state) => state.user.name,
  introduction: (state) => state.user.introduction,
  roles: (state) => state.user.roles,
  permission_routes: (state) => state.permission.routes,
  errorLogs: (state) => state.errorLog.logs,
  userInfo: (state) => state.user.userInfo,
  //userId: state => state.user.userId,
  /**
   * fmea
   */
  riskAnalysisSwitch: (state) => state.fmeaTree.riskAnalysisSwitch,//用于风险分析页面
  fmeaId: (state) => state.fmeaTree.fmeaId,
  rfmeaId: (state) => state.fmeaTree.rfmeaId,
  commentsFlag: (state) => state.fmeaTree.commentsFlag,//能否添加评审意见
  CopyCutNodeParentStruType: (state) => state.fmeaTree.CopyCutNodeParentStruType,//复制或剪切的节点的父节点类型，主要用于复制 预防措施，预防控制，探测措施，探测控制时粘贴问题
  fmeaName: (state) => state.fmeaTree.fmeaName,
  structureId: (state) => state.fmeaTree.structureId,
  strucTreeDataId: (state) => state.fmeaTree.strucTreeDataId, //流程图跳转
  fmeaLanguage: (state) => state.fmeaTree.fmeaLanguage,
  pageLanguage: (state) => state.fmeaTree.pageLanguage, //全局的语言
  checkedLeftNodeId: (state) => state.fmeaTree.checkedLeftNodeId,
  checkedLeftNode: (state) => state.fmeaTree.checkedLeftNode,
  checkedRightNodeId: (state) => state.fmeaTree.checkedRightNodeId,
  checkedRightNode: (state) => state.fmeaTree.checkedRightNode,
  lastCheckedNodeId: (state) => state.fmeaTree.lastCheckedNodeId,
  lastCheckedX6Node: (state) => state.fmeaTree.lastCheckedX6Node,
  lastCheckedNode: (state) => state.fmeaTree.lastCheckedNode,
  lastCheckedLRTreeFlag: (state) => state.fmeaTree.lastCheckedLRTreeFlag,
  lastFailCheckedNode: (state) => state.fmeaTree.lastFailCheckedNode,
  sideRfmeaId: (state) => state.fmeaTree.sideRfmeaId,
  sideCheckedLeftNode: (state) => state.fmeaTree.sideCheckedLeftNode,
  sideLastCheckedNode: (state) => state.fmeaTree.sideLastCheckedNode,
  parameterCheckedNode: (state) => state.fmeaTree.parameterCheckedNode,
  lastBoundaryMapNode: (state) => state.fmeaTree.lastBoundaryMapNode,
  leftStruIdFromComments: (state) => state.fmeaTree.leftStruIdFromComments,
  commentsParentIds: (state) => state.fmeaTree.commentsParentIds,
  rightParentStruIdFromComments: (state) => state.fmeaTree.rightParentStruIdFromComments,
  rightStruIdFromComments: (state) => state.fmeaTree.rightStruIdFromComments,

  nodeTypeDict: (state) => state.fmeaTree.nodeTypeDict,
  elemTypeDict: (state) => state.fmeaTree.elemTypeDict,
  optElemTypeDict: (state) => state.fmeaTree.optElemTypeDict,
  struMenuList: (state) => state.fmeaTree.struMenuList,
  leftTreeMenus: (state) => state.fmeaTree.leftTreeMenus,
  struLeftTreeMenus: (state) => state.fmeaTree.struLeftTreeMenus,
  struRightX6Menus: (state) => state.fmeaTree.struRightX6Menus,
  pLeftTreeMenus: (state) => state.fmeaTree.pLeftTreeMenus,
  rightTreeMenus: (state) => state.fmeaTree.rightTreeMenus,
  failMenuList: (state) => state.fmeaTree.failMenuList,
  icons: (state) => state.fmeaTree.icons,
  treeIcons: (state) => state.fmeaTree.treeIcons,
  attrTabs: (state) => state.fmeaTree.attrTabs,
  lastCheckedNetNode: (state) => state.fmeaTree.lastCheckedNetNode,
  lastCheckedNetLRNode: (state) => state.fmeaTree.lastCheckedNetLRNode,
  lastCheckedNodeTree: (state) => state.fmeaTree.lastCheckedNodeTree,
  lastCopyOrCutNode: (state) => state.fmeaTree.lastCopyOrCutNode,
  lastCopyOrCutLRTreeFlag: (state) => state.fmeaTree.lastCopyOrCutLRTreeFlag,
  lastCopyOrCut: (state) => state.fmeaTree.lastCopyOrCut,
  multiCopyNode: (state) => state.fmeaTree.multiCopyNode,
  multiSelectedNode: (state) => state.fmeaTree.multiSelectedNode,
  multiSelectedLNode: (state) => state.fmeaTree.multiSelectedLNode,
  multiCopyOrCut: (state) => state.fmeaTree.multiCopyOrCut,
  boundaryStruIdList: (state) => state.fmeaTree.boundaryStruIdList,
  boundaryLeftStruTree: (state) => state.fmeaTree.boundaryLeftStruTree,
  variantFilterNodes: (state) => state.fmeaTree.variantFilterNodes,
  parameterList: (state) => state.fmeaTree.parameterList,
  geometricObj: (state) => state.fmeaTree.geometricObj,

  fmeaTopBtns: (state) => state.fmeaTree.fmeaTopBtns,
  variantMatrixTopBtns: (state) => state.fmeaTree.variantMatrixTopBtns,
  fmeaReadOnlyTopBtns: (state) => state.fmeaTree.fmeaReadOnlyTopBtns,
  fmeaTableTopBtns: (state) => state.fmeaTable.fmeaTableTopBtns,

  topologyTopBtns: (state) => state.topology.topologyTopBtns,
  topologyReadOnlyTopBtns: (state) => state.topology.topologyReadOnlyTopBtns,
  topologyTopZTreeBtns: (state) => state.topology.topologyTopZTreeBtns,
  topologyTopX6Btns: (state) => state.topology.topologyTopX6Btns,
  topologyRightBtns: (state) => state.topology.topologyRightBtns,
  topologyZoomBtns: (state) => state.topology.topologyZoomBtns,
  topologyStruMenuList: (state) => state.topology.topologyStruMenuList,

  pFmeaTopBtns: (state) => state.fmeaTree.pFmeaTopBtns,
  pFmeaTableTopBtns: (state) => state.pFmeaTable.pFmeaTableTopBtns,

  /**
   * 寿命数据分析
   */
  lastCheckedTree: (state) => state.analysis.lastCheckedTree,
  lifeDataTopBtns: (state) => state.analysis.lifeDataTopBtns,
  treeId: (state) => state.analysis.treeId,
  analysisName: (state) => state.analysis.analysisName,
  isAnalysis: (state) => state.analysis.isAnalysis,
  whichTree: (state) => state.analysis.whichTree,
  treeDataId: (state) => state.analysis.treeDataId,
  dataId: (state) => state.analysis.dataId,
  settingId: (state) => state.analysis.settingId,
  wbId: (state) => state.analysis.wbId,
  hasProb: (state) => state.analysis.hasProb
};
export default getters;
