import { createRouter, createWebHashHistory } from 'vue-router' const routes = [ { path: '/dataFilter', redirect:'/dataFilter/prepare', name: 'dataFilter', meta: { title: '数据准备', icon: 'icon-Simple-matrix' }, children: [ { path: 'prepare', component: () => import('@/views/dataFilter/prepare/index'), name: 'dataFilterPrepare', meta: { title: '数据准备', icon: '' }, }, { path: 'process', component: () => import('@/views/dataFilter/process/index'), name: 'dataFilterProcess', meta: { title: '数据预处理', icon: '' }, }, ] }, { path: '/dataAnalysis', redirect:'/dataAnalysis/combine', name: 'dataAnalysis', meta: { title: '数据分析', icon: 'icon-Simple-matrix' }, children: [ { path: 'combine', component: () => import('@/views/dataAnalysis/combine/index'), name: 'dataFilterCombine', meta: { title: '功率曲线拟合分析', icon: '' }, }, { path: 'rateAnalysis', component: () => import('@/views/dataAnalysis/rateAnalysis/index'), name: 'dataFilterRateAnalysis', meta: { title: '风资源分析', icon: '' }, }, { path: 'lineAnalysis', component: () => import('@/views/dataAnalysis/lineAnalysis/index'), name: 'dataFilterLineAnalysis', meta: { title: '曲线偏差率分析', icon: '' }, }, ] }, // { // path: '/', // component: () => import('@/views/Home'), // name: 'Home', // meta: { // title: '首页', // icon: '' // } // }, // { // path: '/stateMonitor', // redirect:'/stateMonitor/simpleMatrix', // component: () => import('@/views/stateMonitor'), // name: 'stateMonitor', // meta: { // title: '安全监控', // icon: '' // }, // children:[ // { // path: 'simpleMatrix', // component: () => import('@/views/stateMonitor/simpleMatrix'), // name: 'simpleMatrix', // meta: { // title: '基础矩阵', // icon: 'icon-Simple-matrix' // } // }, // { // path: 'detailMatrix', // component: () => import('@/views/stateMonitor/detailMatrix'), // name: 'detailMatrix', // meta: { // title: '明细矩阵', // icon: 'icon-Detailed-matrix' // } // }, // { // path: 'factoryMonitor', // redirect:'factoryMonitor/facHome', // component: () => import('@/views/stateMonitor/factoryMonitor'), // name: 'factoryMonitor', // meta: { // title: '厂站监视', // icon: 'icon-Single-station-surveillance' // }, // children:[ // { // path: 'facHome', // // redirect:'facHome/home', // component: () => import('@/views/stateMonitor/factoryMonitor/facHome'), // name: 'facHome', // meta: { // title: '首页', // icon: '' // }, // children:[{ // path: 'dataDetial', // component: () => import('@/views/stateMonitor/factoryMonitor/facHome/dataDetial'), // name: 'dataDetial', // meta: { // title: '', // icon: '' // }, // }, // { // path: 'home', // component: () => import('@/views/stateMonitor/factoryMonitor/facHome/home'), // name: 'home', // meta: { // title: '', // icon: '' // }, // }, // ] // }, // { // path: 'windPowerPlant', // component: () => import('@/views/stateMonitor/factoryMonitor/windPowerPlant'), // name: 'windPowerPlant', // meta: { // title: '风电场站', // icon: '' // }, // }, // { // path: 'photovoltaic', // component: () => import('@/views/stateMonitor/factoryMonitor/photovoltaic'), // name: 'photovoltaic', // meta: { // title: '光伏场站', // icon: '' // }, // } // ] // }, // { // path: 'synthesizeTargetSystem', // component: () => import('@/views/stateMonitor/synthesizeTargetSystem'), // name: 'synthesizeTargetSystem', // meta: { // title: '综合指标', // icon: 'icon-Composite-indicator' // } // }, // { // path: 'AGCMonitor', // component: () => import('@/views/stateMonitor/AGCMonitor'), // name: 'AGCMonitor', // meta: { // title: 'AGC监视', // icon: 'icon-Composite-indicator' // } // }, // { // path: 'monitorState', // component: () => import('@/views/stateMonitor/monitorState'), // name: 'monitorState', // meta: { // title: '运行状态', // icon: 'icon-State-monitoring' // } // } // ] // }, // { // path: '/economicsOperation', // redirect:'/economicsOperation/homePage', // component: () => import('@/views/economicsOperation'), // name: 'economicsOperation', // meta: { // title: '经济运行', // icon: '' // }, // children: [ // { // path: 'homePage', // component: () => import('@/views/economicsOperation/homePage'), // name: 'homePage', // meta: { // title: '首页', // icon: 'icon-Simple-matrix' // } // }, // { // path: 'benchmarkingManagement', // redirect:'benchmarkingManagement/performanceRankingList', // component: () => import('@/views/economicsOperation/benchmarkingManagement'), // name: 'benchmarkingManagement', // meta: { // title: '对标管理', // icon: 'icon-Simple-matrix' // }, // children: [ // { // path: 'performanceRankingList', // component: () => import('@/views/economicsOperation/benchmarkingManagement/performanceRankingList'), // name: 'performanceRankingList', // meta: { // title: '风机绩效榜', // icon: '' // }, // }, // { // path: "/benchmarkingManagement/decision1Mx", //风机绩效榜明细 // name: "benchmarkingManagement", // component: () => // import( /* webpackChunkName: "decision1Mx" */ "@/views/economicsOperation/benchmarkingManagement/performanceRankingList/decision1Mx"), // }, // { // path: 'loseRate', // component: () => import('@/views/economicsOperation/benchmarkingManagement/loseRate'), // name: 'loseRate', // meta: { // title: '五项损失率', // icon: '' // }, // }, // { // path: 'companyBenchmarking', // component: () => import('@/views/economicsOperation/benchmarkingManagement/companyBenchmarking'), // name: 'companyBenchmarking', // meta: { // title: '公司对标', // icon: '' // }, // }, // { // path: 'siteBenchmarking', // component: () => import('@/views/economicsOperation/benchmarkingManagement/siteBenchmarking'), // name: 'siteBenchmarking', // meta: { // title: '场内对标', // icon: '' // }, // }, // { // path: 'intervalBenchmarking', // component: () => import('@/views/economicsOperation/benchmarkingManagement/intervalBenchmarking'), // name: 'intervalBenchmarking', // meta: { // title: '场际对标', // icon: '' // }, // }, // { // path: 'projectBenchmarking', // component: () => import('@/views/economicsOperation/benchmarkingManagement/projectBenchmarking'), // name: 'projectBenchmarking', // meta: { // title: '项目对标', // icon: '' // }, // }, // { // path: 'wiringBenchmarking', // component: () => import('@/views/economicsOperation/benchmarkingManagement/wiringBenchmarking'), // name: 'wiringBenchmarking', // meta: { // title: '线路对标', // icon: '' // }, // },{ // path: 'standAloneBenchmarking', // component: () => import('@/views/economicsOperation/benchmarkingManagement/standAloneBenchmarking'), // name: 'standAloneBenchmarking', // meta: { // title: '单机对标', // icon: '' // }, // }] // }, // { // path: 'efficiency', // redirect:'efficiency/restorationEfficiency', // component: () => import('@/views/economicsOperation/efficiency'), // name: 'efficiency', // meta: { // title: '三率', // icon: 'icon-Simple-matrix' // }, // children: [ // { // path: 'restorationEfficiency', // component: () => import('@/views/economicsOperation/efficiency/restorationEfficiency'), // name: 'restorationEfficiency', // meta: { // title: '复位及时率', // icon: '' // }, // }, // { // path: 'consumeEfficiency', // component: () => import('@/views/economicsOperation/efficiency/consumeEfficiency'), // name: 'consumeEfficiency', // meta: { // title: '消缺及时率', // icon: '' // }, // }, // { // path: 'stateEfficiency', // component: () => import('@/views/economicsOperation/efficiency/stateEfficiency'), // name: 'stateEfficiency', // meta: { // title: '状态转换率', // icon: '' // }, // } // ] // }, // { // path: 'performanceAnalyse', // redirect:'performanceAnalyse/standAloneAnalyse', // component: () => import('@/views/economicsOperation/performanceAnalyse'), // name: 'performanceAnalyse', // meta: { // title: '性能分析', // icon: 'icon-Simple-matrix' // }, // children: [ // { // path: 'standAloneAnalyse', // component: () => import('@/views/economicsOperation/performanceAnalyse/standAloneAnalyse'), // name: 'standAloneAnalyse', // meta: { // title: '单机性能分析', // icon: '' // }, // }, // { // path: 'monthlyAnalysis', // component: () => import('@/views/economicsOperation/performanceAnalyse/monthlyAnalysis'), // name: 'monthlyAnalysis', // meta: { // title: '单机月度分析', // icon: '' // }, // }, // { // path: 'performanceAssess', // component: () => import('@/views/economicsOperation/performanceAnalyse/performanceAssess'), // name: 'performanceAssess', // meta: { // title: '性能等级评估', // icon: '' // }, // }, // { // path: 'cutInAndOutAnalysis', // component: () => import('@/views/economicsOperation/performanceAnalyse/cutInAndOutAnalysis'), // name: 'cutInAndOutAnalysis', // meta: { // title: '切入切出分析', // icon: '' // }, // } // ] // } // ] // } ] const router = createRouter({ history: createWebHashHistory(), routes }) export default router