import { viewRoutesMapping } from 'amos-rules-config';

import RootView from './../view';
// import RootBizView from './../view/mainframe/RootBizView';
import RootBizView from './../view/mainframe/BizFrame';
import SubConsoleView from './../view/mainframe/SubConsoleView';
import ConsoleView from './../view/console';

import Config from './../view/config';
// import EmptyPage from './../view/common/page/EmptyPage';
import UserInfo from './../view/userInfo';

// 银行三维图
import Three3dView from '../view/bank/3dview';

import TileView from './../view/tileView';

import RegionList from './../view/region';

import BusinessView from './../view/bizview/point/PointView';
import RiskPoint from './../view/bizview/riskPoint/index';
import Dutyinfo from './../view/bizview/dutyInfo/index';
import Fireequip from './../view/bizview/fireEquipment/index';
import Personnel from './../view/bizview/personnelInfo/index';
// import CheckDetail from './../view/bizview/checkManage/checkDetail';
import CheckList from './../view/bizview/xjcheck/CheckList';
import Patrol from './../view/bizview/point';
import TaskView from './../view/bizview/task';
import PointInfo from './../view/bizview/pointInfo';
import EmptyPage from './../view/common/page/EmptyPage';

// 引入消防资源组件
import FireResourceView from './../view/bizview/equipmentLedger/FireResources';
import EquipmentView from './../view/bizview/equipmentLedger/Equipment';
import MonitorView from './../view/bizview/equipmentLedger/Monitor';
import MatchEquipment from './../view/bizview/equipmentLedger/Equipment/MatchEquipment';
import Alarm from './../view/bizview/situation/alarm/index';
//import RiskModel from './../view/bizview/preControl/riskModel';
//import RiskModelMgt from './../view/bizview/safetyRiskMgt/riskModelMgt/index';
//import MgtCtrlModel from './../view/bizview/preControl/mgtCtrlModel';
import RiskModel from './../view/bank/preControl/riskModel/index';
import RiskModelMgt from './../view/bank/preControl/riskModelMgt/index';
import MgtCtrlModel from './../view/bank/preControl/mgtCtrlModel/index';
import RiskKnowledgeMgt from './../view/bizview/safetyRiskMgt/riskKnowledgeMgt/index';
import TaskWork from './../view/bizview/safetyControlObj/taskwork/index';
import EquipFacilities from './../view/bizview/safetyControlObj/equipmentsAndFacilities/index';
import RiskAssessment from './../view/bizview/situation/riskAssessment/index';

// import FireWaterResourceView from './../view/bizview/equipmentLedger/FireResources/water';
// import FireStationResourceView from './../view/bizview/equipmentLedger/FireResources/FireStation';
// import FireFoamResourceView from './../view/bizview/equipmentLedger/FireResources/fireFoam';
import FireStrengthResourceView from './../view/bizview/equipmentLedger/FireResources/FireStrength';
import FireStationMatches from './../view/bizview/equipmentLedger/FireResources/matchEquipment/FireStationMatches';
import XJCtrlModel from '../view/bizview/xunjian';
import DifferentiateView from './../view/bizview/intelligentDifferentiate/DifferentiateView';
import Cameras from './../view/bizview/safetyControlObj/cameras/index';
import RiskList from './../view/bizview/preControl/riskList/index';

import CheckStandard from './../view/bizview/checkStandard';
import CheckPlan from './../view/bizview/checkPlan';
import Execute from './../view/bizview/execute';
import Identification from './../view/bizview/identification';
import Announcement from './../view/bizview/announcement';
import DailyInformation from './../view/bizview/dailyInformation';

import MytoDo from './../view/bizview/mytoDo';
import MytoHave from './../view/bizview/mytoHave';
import ProcessTo from './../view/bizview/processTo';
import JudgedSummary from './../view/bizview/judgedSummary';
import WarningCurve from './../view/bizview/warningCurve';
import WarningIndicatorConfig from './../view/bizview/warningIndicators';
import ThresholdConfig from './../view/bizview/thresholdConfiguration';
import WarningIndicatorManage from './../view/bizview/warningIndicatorManage';
import Check from './../view/bizview/check/index';
import PreControlSituation from './../view/bizview/situation/preControl/index';
import DangerList from './../view/bizview/execute/dangerList/DangerList';

import VideoIframe from './../view/bank/monitor/video/Video';//<iframe>
import Video from './../view/bank/monitor/videoLabel/Video';//<video>
import Topography from './../view/bank/biz/topography';// 这里有一个诡异的错误，删除或不引用监控屏地图不显示
import NetTopology from './../view/bank/netTopology';
import Pams from './../view/bizview/pams';
import SelfSupport from './../view/bizview/selfSupport';
import WarningsSituation from './../view/bank/situation/warn/Warnings';
import TwoDimensionalMap from './../view/bank/monitor/2d';
import PamsTable from './../view/pamsTable';
import DynamicRing from './../view/bank/dynamicRing';
import EquipMonitor from './../view/bank/equipMonitor';
import EqpAndMovingRing from './../view/bank/eqpAndMovingRing/index';
import VirtualCloudPlatform from './../view/bank/virtualCloudPlatform/index';
import FinancialCityLan from './../view/bank/financialCityLan/index';


const Routes = {
  ...viewRoutesMapping,
  ruleConfig: SubConsoleView,

  main: RootView,
  biz: RootBizView,
  console: ConsoleView,

  // config: Config,
  config: SubConsoleView,

  '3dview': Three3dView,
  tileview: TileView,

  twoDimensionalMap: TwoDimensionalMap,
  bizview: BusinessView,
  riskpoint: RiskPoint,
  dutyinfo: Dutyinfo,
  fireequip: Fireequip,
  personnel: Personnel,
  patrolpoint: Patrol,
  pointInfo: PointInfo,
  // checkdetail: CheckDetail,
  checklist: CheckList,
  task: TaskView,

  //设备台账
  assessment: RiskAssessment,
  fireresource: FireResourceView,
  equipment: EquipmentView,
  monitor: MonitorView,
  alarm: Alarm,

  riskModel: RiskModel,
  modelManage: RiskModelMgt,
  mgtCtrlModel: MgtCtrlModel,

  // mgtCtrlModel: TaskWork,
  xjCtrlModel: XJCtrlModel,
  // param: ParamSet,
  param: RiskList,
  // matchequipment: MatchEquipment,
  riskassessment: RiskAssessment,
  // waterResource: FireWaterResourceView,
  waterResource: FireStationMatches,
  stationResource: MatchEquipment,
  // foamResource: FireFoamResourceView,
  strengthResource: FireStrengthResourceView,
  differentiate: DifferentiateView,
  knowledgeManage: RiskKnowledgeMgt,
  // riskElementManage: SubConsoleView
  equipmentFacilities: EquipFacilities,
  taskwork: TaskWork,
  camera: Cameras,
  checkStandard: CheckStandard,
  checkPlan: CheckPlan,
  execute: Execute,
  identification: Identification,
  announcement: Announcement,
  dailyInformation: DailyInformation,
  mytoDo: MytoDo,
  mytoHave: MytoHave,
  processTo: ProcessTo,
  judgedSummary: JudgedSummary,
  warningCurve: WarningCurve,
  warningIndicators: WarningIndicatorConfig,
  thresholdConfiguration: ThresholdConfig,
  warningIndicatorManage: WarningIndicatorManage,
  checkRecordList: Check,
  preControl: PreControlSituation,
  dangerList: DangerList,
  topography: NetTopology,
  defaultRoute: Pams,
  videoIframe: VideoIframe,//报警监控
  video: Video,//报警监控
  warn: WarningsSituation,//告警信息
  twoDimensionalMap: TwoDimensionalMap,
  pamsTable: PamsTable,
  donghuan: DynamicRing,
  deviceMonitor: EquipMonitor,
  eqpAndMovingRing: EqpAndMovingRing,
  //自建系统
  selfSupport: SelfSupport,
  //虚拟云平台监控
  virtualCloudPlatform: VirtualCloudPlatform,
  //金融城域网
  financialCityLan: FinancialCityLan
};

const pageCompontent = key => {
  return Routes[key] || EmptyPage;
};

export {
  RootView, UserInfo,
  RootBizView,
  ConsoleView,
  RegionList
};

export default pageCompontent;
