123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282 |
- import { createRouter, createWebHistory, createWebHashHistory } from 'vue-router'
- import Home from '../pages/Home.vue'
- const routes = [{
- path: '/',
- redirect: '/dataFilter/prepare',
- },
- {
- path: '/',
- name: 'Home',
- redirect: '/dataFilter/prepare',
- component: Home,
- children: [
- {
- icon: 'iconfont iconbaojingpeizhi',
- path: '/dataFilter',
- name: 'dataFilter',
- redirect: '/dataFilter/prepare',
- meta: {
- title: '数据准备',
- },
- component: () =>
- import(
- '../pages/routerViewss.vue'
- ),
- children: [
- {
- icon: 'el-icon-s-home',
- path: '/dataFilter/prepare',
- name: 'dataFilterPrepare',
- meta: {
- title: '风电数据准备',
- },
- component: () =>
- import(
- '../pages/dataFilter/prepare/index.vue'
- ),
- },
- {
- icon: 'el-icon-s-home',
- path: '/dataFilter/process',
- name: 'dataFilterProcess',
- meta: {
- title: '风电数据处理',
- },
- component: () =>
- import(
- '../pages/dataFilter/process/index.vue'
- ),
- },
- // {
- // icon: 'el-icon-s-home',
- // path: '/dataFilter/lightPrepare',
- // name: 'dataFilterLightPrepare',
- // meta: {
- // title: '光伏数据准备',
- // },
- // component: () =>
- // import(
- // '../pages/dataFilter/lightPrepare/index.vue'
- // ),
- // },
- ]
- },
- {
- icon: 'iconfont iconbaojingpeizhi',
- path: '/dataAnalysis',
- name: 'dataAnalysis',
- redirect: '/dataAnalysis/combine',
- meta: {
- title: '风电分析',
- },
- component: () =>
- import(
- '../pages/routerViewss.vue'
- ),
- children: [
- {
- icon: 'el-icon-s-home',
- path: '/dataAnalysis/combine',
- name: 'dataAnalysis',
- meta: {
- title: '功率曲线拟合分析',
- },
- component: () =>
- import(
- '../pages/dataAnalysis/combine/index.vue'
- ),
- },
- {
- icon: 'el-icon-s-home',
- path: '/dataAnalysis/rateAnalysis',
- name: 'dataAnalysisRateAnalysis',
- meta: {
- title: '对风偏差分析',
- },
- component: () =>
- import(
- '../pages/dataAnalysis/rateAnalysis/index.vue'
- ),
- },
- {
- icon: 'el-icon-s-home',
- path: '/dataAnalysis/lineAnalysis',
- name: 'dataAnalysislineAnalysis',
- meta: {
- title: '曲线偏差率分析',
- },
- component: () =>
- import(
- '../pages/dataAnalysis/lineAnalysis/index.vue'
- ),
- },
- {
- icon: 'el-icon-s-home',
- path: '/dataAnalysis/hotAnalysis',
- name: 'dataAnalysisthotAnalysis',
- meta: {
- title: '温度与功率分析',
- },
- component: () =>
- import(
- '../pages/dataAnalysis/hotAnalysis/index.vue'
- ),
- },
- {
- icon: 'el-icon-s-home',
- path: '/dataAnalysis/posAnalysis',
- name: 'dataAnalysisPosAnalysis',
- meta: {
- title: '微观选址分析',
- },
- component: () =>
- import(
- '../pages/dataAnalysis/posAnalysis/index.vue'
- ),
- },
- {
- icon: 'el-icon-s-home',
- path: '/dataAnalysis/spaceAnalysis',
- name: 'dataAnalysisspaceAnalysis',
- meta: {
- title: '毛容量分析',
- },
- component: () =>
- import(
- '../pages/dataAnalysis/spaceAnalysis/index.vue'
- ),
- },
- // {
- // icon: 'el-icon-s-home',
- // path: '/dataAnalysis/angleAnalysis',
- // name: 'dataAnalysisAngleAnalysis',
- // meta: {
- // title: '浆距角分析',
- // },
- // component: () =>
- // import(
- // '../pages/dataAnalysis/angleAnalysis/index.vue'
- // ),
- // },
- {
- icon: 'el-icon-s-home',
- path: '/dataAnalysis/windAnalysis',
- name: 'dataAnalysisWindAnalysis',
- meta: {
- title: '损失电量分析',
- },
- component: () =>
- import(
- '../pages/dataAnalysis/windAnalysis/index.vue'
- ),
- },
- {
- icon: 'el-icon-s-home',
- path: '/dataAnalysis/agcAnalysis',
- name: 'dataAnalysisAgcAnalysis',
- meta: {
- title: 'AGC曲线偏差分析',
- },
- component: () =>
- import(
- '../pages/dataAnalysis/agcAnalysis/index.vue'
- ),
- },
- // {
- // icon: 'el-icon-s-home',
- // path: '/report/index',
- // name: 'reportIndex',
- // meta: {
- // title: '分析报告',
- // },
- // component: () =>
- // import(
- // '../pages/report/index.vue'
- // ),
- // },
- ]
- },
- {
- icon: 'iconfont iconbaojingpeizhi',
- path: '/lightAnalysis',
- name: 'lightAnalysis',
- redirect: '/lightAnalysis/glAnalysis',
- meta: {
- title: '场站分析',
- },
- component: () =>
- import(
- '../pages/routerViewss.vue'
- ),
- children: [
- {
- icon: 'el-icon-s-home',
- path: '/report/index',
- name: 'reportIndex',
- meta: {
- title: '分析报告',
- },
- component: () =>
- import(
- '../pages/report/index.vue'
- ),
- },
- // {
- // icon: 'el-icon-s-home',
- // path: '/lightAnalysis/glAnalysis',
- // name: 'glAnalysis',
- // meta: {
- // title: '功率曲线分析',
- // },
- // component: () =>
- // import(
- // '../pages/lightAnalysis/glAnalysis/index.vue'
- // ),
- // },
- // {
- // icon: 'el-icon-s-home',
- // path: '/lightAnalysis/glHotAnalysis',
- // name: 'glHotAnalysis',
- // meta: {
- // title: '功率光照曲线分析',
- // },
- // component: () =>
- // import(
- // '../pages/lightAnalysis/glHotAnalysis/index.vue'
- // ),
- // },
- ]
- },
- ],
- },
- // {
- // path: '/login',
- // name: 'Login',
- // meta: {
- // title: '登录',
- // },
- // component: () =>
- // import(
- // /* webpackChunkName: "login" */
- // '../pages/Login.vue'
- // ),
- // },
- ]
- const router = createRouter({
- history: createWebHashHistory(''),
- routes,
- })
- router.beforeEach((to, from, next) => {
- document.title = `${to.meta.title} | 发电能力分析平台`
- // const role = sessionStorage.getItem('ms_chinesename')
- // if (!role && to.path !== '/login') {
- // next('/login')
- // } else {
- next()
- // }
- })
- export default router
|