|
@@ -2,25 +2,25 @@ import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
import Layout from '@/layout'
|
|
|
|
|
|
export const constantRoutes = [{
|
|
|
- path: '/login',
|
|
|
- component: () =>
|
|
|
- import('@/views/login'),
|
|
|
- hidden: true,
|
|
|
-},
|
|
|
-{
|
|
|
- path: '/403',
|
|
|
- name: '403',
|
|
|
- component: () =>
|
|
|
- import('@/views/403'),
|
|
|
- hidden: true,
|
|
|
-},
|
|
|
-{
|
|
|
- path: '/404',
|
|
|
- name: '404',
|
|
|
- component: () =>
|
|
|
- import('@/views/404'),
|
|
|
- hidden: true,
|
|
|
-},
|
|
|
+ path: '/login',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/login'),
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/403',
|
|
|
+ name: '403',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/403'),
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/404',
|
|
|
+ name: '404',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/404'),
|
|
|
+ hidden: true,
|
|
|
+ },
|
|
|
]
|
|
|
export const asyncRoutes = [
|
|
|
|
|
@@ -55,16 +55,16 @@ export const asyncRoutes = [
|
|
|
},
|
|
|
component: Layout,
|
|
|
children: [{
|
|
|
- meta: {
|
|
|
- title: '告警管理',
|
|
|
- icon: 'alarmManage',
|
|
|
- affix: true,
|
|
|
- },
|
|
|
- path: 'index',
|
|
|
- component: () =>
|
|
|
- import('@/views/alarmManage/index'),
|
|
|
+ meta: {
|
|
|
+ title: '告警管理',
|
|
|
+ icon: 'alarmManage',
|
|
|
+ affix: true,
|
|
|
+ },
|
|
|
+ path: 'index',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/alarmManage/index'),
|
|
|
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
]
|
|
|
},
|
|
@@ -83,44 +83,30 @@ export const asyncRoutes = [
|
|
|
},
|
|
|
path: '/siteManage',
|
|
|
component: () =>
|
|
|
- import('@/views/siteManage/index'),
|
|
|
+ import ('@/views/siteManage/index'),
|
|
|
selectLeftMenu: '/alarmManage',
|
|
|
hidden: true
|
|
|
}]
|
|
|
},
|
|
|
|
|
|
-
|
|
|
{
|
|
|
+ path: '/stationManage',
|
|
|
+ redirect: '/stationManage/index',
|
|
|
meta: {
|
|
|
- icon: 'stationManage',
|
|
|
title: '台区管理',
|
|
|
+ icon: 'stationManage',
|
|
|
},
|
|
|
- path: '/stationManage',
|
|
|
- redirect: '/stationManage/index',
|
|
|
component: Layout,
|
|
|
children: [{
|
|
|
meta: {
|
|
|
+ title: '台区管理',
|
|
|
icon: 'stationManage',
|
|
|
- title: '站点列表',
|
|
|
- activeMenu: '/stationManage/index'
|
|
|
},
|
|
|
- path: 'siteList',
|
|
|
+ path: '/stationManage',
|
|
|
component: () =>
|
|
|
- import('@/views/stationManage/siteList.vue'),
|
|
|
- hidden: true,
|
|
|
- },
|
|
|
- {
|
|
|
- meta: {
|
|
|
- icon: 'stationManage',
|
|
|
- title: '所有台区',
|
|
|
- activeMenu: '/stationManage/index'
|
|
|
- },
|
|
|
- path: 'index',
|
|
|
- component: () =>
|
|
|
- import('@/views/stationManage/index.vue'),
|
|
|
- hidden: true,
|
|
|
- }
|
|
|
- ]
|
|
|
+ import ('@/views/stationManage/index'),
|
|
|
+ hidden: true
|
|
|
+ }]
|
|
|
},
|
|
|
|
|
|
/**
|
|
@@ -137,32 +123,32 @@ export const asyncRoutes = [
|
|
|
component: Layout,
|
|
|
redirect: '/deviceManage/powerEquip',
|
|
|
children: [{
|
|
|
- meta: { icon: 'powerEquip', title: '设备管理', },
|
|
|
- path: 'powerEquip',
|
|
|
- component: () =>
|
|
|
- import('@/views/deviceManage/powerEquip/index.vue'),
|
|
|
- },
|
|
|
- // {
|
|
|
- // title: 'index-layout.menu.deviceManage.videoEquip',
|
|
|
- // path: 'videoEquip',
|
|
|
- // component: () => import('@/views/deviceManage/videoEquip/index.vue'),
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: 'index-layout.menu.deviceManage.communicateEquip',
|
|
|
- // path: 'communicateEquip',
|
|
|
- // component: () => import('@/views/deviceManage/communicateEquip/index.vue'),
|
|
|
- // },
|
|
|
- // {
|
|
|
- // title: 'index-layout.menu.deviceManage.channelList',
|
|
|
- // path: 'channelList',
|
|
|
- // component: () => import('@/views/deviceManage/channelList/index.vue'),
|
|
|
- // },
|
|
|
- {
|
|
|
- meta: { icon: 'attribTemplate', title: '属性模板', },
|
|
|
- path: 'attribTemplate',
|
|
|
- component: () =>
|
|
|
- import('@/views/deviceManage/attribTemplate/index.vue'),
|
|
|
- }
|
|
|
+ meta: { icon: 'powerEquip', title: '设备管理', },
|
|
|
+ path: 'powerEquip',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/deviceManage/powerEquip/index.vue'),
|
|
|
+ },
|
|
|
+ // {
|
|
|
+ // title: 'index-layout.menu.deviceManage.videoEquip',
|
|
|
+ // path: 'videoEquip',
|
|
|
+ // component: () => import('@/views/deviceManage/videoEquip/index.vue'),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: 'index-layout.menu.deviceManage.communicateEquip',
|
|
|
+ // path: 'communicateEquip',
|
|
|
+ // component: () => import('@/views/deviceManage/communicateEquip/index.vue'),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // title: 'index-layout.menu.deviceManage.channelList',
|
|
|
+ // path: 'channelList',
|
|
|
+ // component: () => import('@/views/deviceManage/channelList/index.vue'),
|
|
|
+ // },
|
|
|
+ {
|
|
|
+ meta: { icon: 'attribTemplate', title: '属性模板', },
|
|
|
+ path: 'attribTemplate',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/deviceManage/attribTemplate/index.vue'),
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
|
|
@@ -181,45 +167,45 @@ export const asyncRoutes = [
|
|
|
component: Layout,
|
|
|
redirect: '/dataManage/sameAnalysis',
|
|
|
children: [{
|
|
|
- meta: { icon: 'sameAnalysis', title: '同比分析报表', },
|
|
|
- path: 'sameAnalysis',
|
|
|
- component: () =>
|
|
|
- import('@/views/dataManage/sameAnalysis/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { icon: 'chainAnalysis', title: '环比分析报表', },
|
|
|
- path: 'chainAnalysis',
|
|
|
- component: () =>
|
|
|
- import('@/views/dataManage/chainAnalysis/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { icon: 'handOpera', title: '手动抄表', },
|
|
|
- title: 'index-layout.menu.dataManage.handOpera',
|
|
|
- path: 'handOpera',
|
|
|
- component: () =>
|
|
|
- import('@/views/dataManage/handOpera/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { icon: 'energyReport', title: '用能月报', },
|
|
|
- title: 'index-layout.menu.dataManage.energyReport',
|
|
|
- path: 'energyReport',
|
|
|
- component: () =>
|
|
|
- import('@/views/dataManage/energyReport/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { icon: 'demandAnalysis', title: '需量分析', },
|
|
|
- title: 'index-layout.menu.dataManage.demandAnalysis',
|
|
|
- path: 'demandAnalysis',
|
|
|
- component: () =>
|
|
|
- import('@/views/dataManage/demandAnalysis/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { icon: 'consumConfig', title: '能耗分析配置', },
|
|
|
- title: 'index-layout.menu.dataManage.consumConfig',
|
|
|
- path: 'consumConfig',
|
|
|
- component: () =>
|
|
|
- import('@/views/dataManage/consumConfig/index.vue'),
|
|
|
- }
|
|
|
+ meta: { icon: 'sameAnalysis', title: '同比分析报表', },
|
|
|
+ path: 'sameAnalysis',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/dataManage/sameAnalysis/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { icon: 'chainAnalysis', title: '环比分析报表', },
|
|
|
+ path: 'chainAnalysis',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/dataManage/chainAnalysis/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { icon: 'handOpera', title: '手动抄表', },
|
|
|
+ title: 'index-layout.menu.dataManage.handOpera',
|
|
|
+ path: 'handOpera',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/dataManage/handOpera/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { icon: 'energyReport', title: '用能月报', },
|
|
|
+ title: 'index-layout.menu.dataManage.energyReport',
|
|
|
+ path: 'energyReport',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/dataManage/energyReport/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { icon: 'demandAnalysis', title: '需量分析', },
|
|
|
+ title: 'index-layout.menu.dataManage.demandAnalysis',
|
|
|
+ path: 'demandAnalysis',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/dataManage/demandAnalysis/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { icon: 'consumConfig', title: '能耗分析配置', },
|
|
|
+ title: 'index-layout.menu.dataManage.consumConfig',
|
|
|
+ path: 'consumConfig',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/dataManage/consumConfig/index.vue'),
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
|
|
@@ -236,29 +222,29 @@ export const asyncRoutes = [
|
|
|
component: Layout,
|
|
|
redirect: '/powerQuality/harmonicReport',
|
|
|
children: [{
|
|
|
- meta: { icon: 'harmonicReport', title: '谐波报表', },
|
|
|
- path: 'harmonicReport',
|
|
|
- component: () =>
|
|
|
- import('@/views/powerQuality/harmonicReport/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { icon: 'realTimeMonitoring', title: '实时监测', },
|
|
|
- path: 'realTimeMonitoring',
|
|
|
- component: () =>
|
|
|
- import('@/views/powerQuality/realTimeMonitoring/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { icon: 'asseReport', title: '评估报告', },
|
|
|
- path: 'asseReport',
|
|
|
- component: () =>
|
|
|
- import('@/views/powerQuality/asseReport/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { icon: 'unbalanceAnalysis', title: '三相不平衡分析', },
|
|
|
- path: 'unbalanceAnalysis',
|
|
|
- component: () =>
|
|
|
- import('@/views/powerQuality/unbalanceAnalysis/index.vue'),
|
|
|
- },
|
|
|
+ meta: { icon: 'harmonicReport', title: '谐波报表', },
|
|
|
+ path: 'harmonicReport',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/powerQuality/harmonicReport/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { icon: 'realTimeMonitoring', title: '实时监测', },
|
|
|
+ path: 'realTimeMonitoring',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/powerQuality/realTimeMonitoring/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { icon: 'asseReport', title: '评估报告', },
|
|
|
+ path: 'asseReport',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/powerQuality/asseReport/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { icon: 'unbalanceAnalysis', title: '三相不平衡分析', },
|
|
|
+ path: 'unbalanceAnalysis',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/powerQuality/unbalanceAnalysis/index.vue'),
|
|
|
+ },
|
|
|
|
|
|
]
|
|
|
},
|
|
@@ -273,19 +259,19 @@ export const asyncRoutes = [
|
|
|
meta: { title: '月度报告', icon: 'monthReport', },
|
|
|
component: Layout,
|
|
|
children: [{
|
|
|
- meta: { title: '月度报告', icon: 'monthReport', },
|
|
|
- path: '/monthReport',
|
|
|
- component: () =>
|
|
|
- import('@/views/monthReport/index'),
|
|
|
- hidden: true
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { title: '月报模板', icon: 'reportModel', },
|
|
|
- path: '/reportModel',
|
|
|
- component: () =>
|
|
|
- import('@/views/monthReport/reportModel'),
|
|
|
- hidden: true
|
|
|
- }
|
|
|
+ meta: { title: '月度报告', icon: 'monthReport', },
|
|
|
+ path: '/monthReport',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/monthReport/index'),
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { title: '月报模板', icon: 'reportModel', },
|
|
|
+ path: '/reportModel',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/monthReport/reportModel'),
|
|
|
+ hidden: true
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
|
|
@@ -299,7 +285,7 @@ export const asyncRoutes = [
|
|
|
meta: { title: '计划停电', icon: 'planOutage', },
|
|
|
path: '/planOutage',
|
|
|
component: () =>
|
|
|
- import('@/views/planOutage/index'),
|
|
|
+ import ('@/views/planOutage/index'),
|
|
|
hidden: true
|
|
|
}],
|
|
|
},
|
|
@@ -319,33 +305,33 @@ export const asyncRoutes = [
|
|
|
redirect: '/patrolManage/patrolPlan',
|
|
|
name: 'patrolManage',
|
|
|
children: [{
|
|
|
- meta: { title: '巡检计划', icon: 'patrolPlan' },
|
|
|
- path: 'patrolPlan',
|
|
|
- name: 'patrolPlan',
|
|
|
- component: () =>
|
|
|
- import('@/views/patrolManage/patrolPlan/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { title: '巡检记录', icon: 'patrolRecord' },
|
|
|
- path: 'patrolRecord',
|
|
|
- name: 'patrolRecord',
|
|
|
- component: () =>
|
|
|
- import('@/views/patrolManage/patrolRecord/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { title: '巡检内容', icon: '巡检内容' },
|
|
|
- path: 'patrolContent',
|
|
|
- name: 'patrolContent',
|
|
|
- component: () =>
|
|
|
- import('@/views/patrolManage/patrolContent/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { title: '检查条目', icon: '检查条目' },
|
|
|
- path: 'checkEntries',
|
|
|
- name: 'checkEntries',
|
|
|
- component: () =>
|
|
|
- import('@/views/patrolManage/checkEntries/index.vue'),
|
|
|
- },
|
|
|
+ meta: { title: '巡检计划', icon: 'patrolPlan' },
|
|
|
+ path: 'patrolPlan',
|
|
|
+ name: 'patrolPlan',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/patrolManage/patrolPlan/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { title: '巡检记录', icon: 'patrolRecord' },
|
|
|
+ path: 'patrolRecord',
|
|
|
+ name: 'patrolRecord',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/patrolManage/patrolRecord/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { title: '巡检内容', icon: '巡检内容' },
|
|
|
+ path: 'patrolContent',
|
|
|
+ name: 'patrolContent',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/patrolManage/patrolContent/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { title: '检查条目', icon: '检查条目' },
|
|
|
+ path: 'checkEntries',
|
|
|
+ name: 'checkEntries',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/patrolManage/checkEntries/index.vue'),
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
|
|
@@ -365,35 +351,35 @@ export const asyncRoutes = [
|
|
|
redirect: '/operManage/siteAchives',
|
|
|
name: 'operManage',
|
|
|
children: [{
|
|
|
- meta: { title: '现场档案', icon: 'siteAchives', },
|
|
|
- path: 'siteAchives',
|
|
|
- component: () =>
|
|
|
- import('@/views/operManage/siteAchives/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { title: '缺陷管理', icon: 'defectManage', },
|
|
|
- path: 'defectManage',
|
|
|
- component: () =>
|
|
|
- import('@/views/operManage/defectManage/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { title: '工单管理', icon: 'workManage', },
|
|
|
- path: 'workManage',
|
|
|
- component: () =>
|
|
|
- import('@/views/operManage/workManage/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { title: '运维统计', icon: 'operStatistics', },
|
|
|
- path: 'operStatistics',
|
|
|
- component: () =>
|
|
|
- import('@/views/operManage/operStatistics/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { title: '工作量统计', icon: 'workStatistics', },
|
|
|
- path: 'workStatistics',
|
|
|
- component: () =>
|
|
|
- import('@/views/operManage/workStatistics/index.vue'),
|
|
|
- },
|
|
|
+ meta: { title: '现场档案', icon: 'siteAchives', },
|
|
|
+ path: 'siteAchives',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/operManage/siteAchives/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { title: '缺陷管理', icon: 'defectManage', },
|
|
|
+ path: 'defectManage',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/operManage/defectManage/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { title: '工单管理', icon: 'workManage', },
|
|
|
+ path: 'workManage',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/operManage/workManage/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { title: '运维统计', icon: 'operStatistics', },
|
|
|
+ path: 'operStatistics',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/operManage/operStatistics/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { title: '工作量统计', icon: 'workStatistics', },
|
|
|
+ path: 'workStatistics',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/operManage/workStatistics/index.vue'),
|
|
|
+ },
|
|
|
|
|
|
]
|
|
|
},
|
|
@@ -409,17 +395,17 @@ export const asyncRoutes = [
|
|
|
component: Layout,
|
|
|
redirect: '/systemManage/userManage',
|
|
|
children: [{
|
|
|
- meta: { title: '用户管理', icon: 'userManage', },
|
|
|
- path: 'userManage',
|
|
|
- component: () =>
|
|
|
- import('@/views/systemManage/userManage/index.vue'),
|
|
|
- },
|
|
|
- {
|
|
|
- meta: { title: '权限管理', icon: 'rolePermission', },
|
|
|
- path: 'rolePermission',
|
|
|
- component: () =>
|
|
|
- import('@/views/systemManage/rolePermission/index.vue'),
|
|
|
- },
|
|
|
+ meta: { title: '用户管理', icon: 'userManage', },
|
|
|
+ path: 'userManage',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/systemManage/userManage/index.vue'),
|
|
|
+ },
|
|
|
+ {
|
|
|
+ meta: { title: '权限管理', icon: 'rolePermission', },
|
|
|
+ path: 'rolePermission',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/systemManage/rolePermission/index.vue'),
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
|
|
@@ -435,25 +421,25 @@ export const asyncRoutes = [
|
|
|
icon: 'apps-line',
|
|
|
},
|
|
|
children: [{
|
|
|
- path: 'table',
|
|
|
- name: 'Table',
|
|
|
- component: () =>
|
|
|
- import('@/views/vab/table'),
|
|
|
- meta: {
|
|
|
- title: '表格',
|
|
|
- icon: 'table-2',
|
|
|
+ path: 'table',
|
|
|
+ name: 'Table',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/vab/table'),
|
|
|
+ meta: {
|
|
|
+ title: '表格',
|
|
|
+ icon: 'table-2',
|
|
|
+ },
|
|
|
},
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'icon',
|
|
|
- name: 'Icon',
|
|
|
- component: () =>
|
|
|
- import('@/views/vab/icon'),
|
|
|
- meta: {
|
|
|
- title: '图标',
|
|
|
- icon: 'remixicon-line',
|
|
|
+ {
|
|
|
+ path: 'icon',
|
|
|
+ name: 'Icon',
|
|
|
+ component: () =>
|
|
|
+ import ('@/views/vab/icon'),
|
|
|
+ meta: {
|
|
|
+ title: '图标',
|
|
|
+ icon: 'remixicon-line',
|
|
|
+ },
|
|
|
},
|
|
|
- },
|
|
|
],
|
|
|
},
|
|
|
|