|
@@ -1,32 +1,31 @@
|
|
|
import { createRouter, createWebHashHistory } from 'vue-router'
|
|
|
import Layout from '@/layout'
|
|
|
|
|
|
-export const constantRoutes = [
|
|
|
- {
|
|
|
+export const constantRoutes = [{
|
|
|
path: '/login',
|
|
|
component: () =>
|
|
|
- import('@/views/login'),
|
|
|
+ import ('@/views/login'),
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
path: '/403',
|
|
|
name: '403',
|
|
|
component: () =>
|
|
|
- import('@/views/403'),
|
|
|
+ import ('@/views/403'),
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
path: '/404',
|
|
|
name: '404',
|
|
|
component: () =>
|
|
|
- import('@/views/404'),
|
|
|
+ import ('@/views/404'),
|
|
|
hidden: true,
|
|
|
},
|
|
|
{
|
|
|
path: '/401',
|
|
|
name: '401',
|
|
|
component: () =>
|
|
|
- import('@/views/401'),
|
|
|
+ import ('@/views/401'),
|
|
|
hidden: true,
|
|
|
},
|
|
|
]
|
|
@@ -70,11 +69,9 @@ export const asyncRoutes = [
|
|
|
},
|
|
|
path: 'index',
|
|
|
component: () =>
|
|
|
- import('@/views/alarmManage/index'),
|
|
|
-
|
|
|
- },
|
|
|
+ import ('@/views/alarmManage/index'),
|
|
|
|
|
|
- ]
|
|
|
+ }, ]
|
|
|
},
|
|
|
{
|
|
|
path: '/siteManage',
|
|
@@ -91,7 +88,7 @@ export const asyncRoutes = [
|
|
|
},
|
|
|
path: '/siteManage',
|
|
|
component: () =>
|
|
|
- import('@/views/siteManage/index'),
|
|
|
+ import ('@/views/siteManage/index'),
|
|
|
selectLeftMenu: '/alarmManage',
|
|
|
hidden: true
|
|
|
}]
|
|
@@ -112,7 +109,7 @@ export const asyncRoutes = [
|
|
|
},
|
|
|
path: '/stationManage',
|
|
|
component: () =>
|
|
|
- import('@/views/stationManage/index'),
|
|
|
+ import ('@/views/stationManage/index'),
|
|
|
hidden: true
|
|
|
}]
|
|
|
},
|
|
@@ -125,41 +122,48 @@ export const asyncRoutes = [
|
|
|
* channelList 通道列表
|
|
|
* attribTemplate 属性模板
|
|
|
*/
|
|
|
+
|
|
|
{
|
|
|
- meta: { icon: 'deviceManage', title: '设备管理', },
|
|
|
path: '/deviceManage',
|
|
|
- component: Layout,
|
|
|
redirect: '/deviceManage/powerEquip',
|
|
|
- children: [{
|
|
|
- meta: { icon: 'powerEquip', title: '设备管理', },
|
|
|
- path: 'powerEquip',
|
|
|
- component: () =>
|
|
|
- import('@/views/deviceManage/powerEquip/index.vue'),
|
|
|
+ meta: {
|
|
|
+ title: '设备管理',
|
|
|
+ icon: 'deviceManage',
|
|
|
},
|
|
|
- // {
|
|
|
- // 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: Layout,
|
|
|
+ children: [{
|
|
|
+ meta: {
|
|
|
+ title: '设备管理',
|
|
|
+ icon: 'deviceManage',
|
|
|
+ },
|
|
|
+ path: '/deviceManage',
|
|
|
component: () =>
|
|
|
- import('@/views/deviceManage/attribTemplate/index.vue'),
|
|
|
- }
|
|
|
- ]
|
|
|
+ import ('@/views/deviceManage/powerEquip'),
|
|
|
+ hidden: true
|
|
|
+ }]
|
|
|
},
|
|
|
|
|
|
+
|
|
|
+ // {
|
|
|
+ // meta: { icon: 'deviceManage', title: '设备管理', },
|
|
|
+ // path: '/deviceManage',
|
|
|
+ // component: Layout,
|
|
|
+ // redirect: '/deviceManage/powerEquip',
|
|
|
+ // children: [{
|
|
|
+ // meta: { icon: 'powerEquip', title: '设备管理', },
|
|
|
+ // path: 'powerEquip',
|
|
|
+ // component: () =>
|
|
|
+ // import ('@/views/deviceManage/powerEquip/index.vue'),
|
|
|
+ // },
|
|
|
+ // {
|
|
|
+ // meta: { icon: 'attribTemplate', title: '属性模板', },
|
|
|
+ // path: 'attribTemplate',
|
|
|
+ // component: () =>
|
|
|
+ // import ('@/views/deviceManage/attribTemplate/index.vue'),
|
|
|
+ // }
|
|
|
+ // ]
|
|
|
+ // },
|
|
|
+
|
|
|
/**
|
|
|
* dataManage 数据管理
|
|
|
* sameAnalysis 同比分析报表
|
|
@@ -175,45 +179,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'),
|
|
|
+ // }
|
|
|
]
|
|
|
},
|
|
|
|
|
@@ -230,29 +234,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'),
|
|
|
+ },
|
|
|
|
|
|
]
|
|
|
},
|
|
@@ -267,19 +271,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
|
|
|
+ }
|
|
|
]
|
|
|
},
|
|
|
|
|
@@ -293,7 +297,7 @@ export const asyncRoutes = [
|
|
|
meta: { title: '计划停电', icon: 'planOutage', },
|
|
|
path: '/planOutage',
|
|
|
component: () =>
|
|
|
- import('@/views/planOutage/index'),
|
|
|
+ import ('@/views/planOutage/index'),
|
|
|
hidden: true
|
|
|
}],
|
|
|
},
|
|
@@ -313,33 +317,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'),
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
|
|
@@ -359,35 +363,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'),
|
|
|
+ },
|
|
|
|
|
|
]
|
|
|
},
|
|
@@ -403,17 +407,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'),
|
|
|
+ },
|
|
|
]
|
|
|
},
|
|
|
|
|
@@ -429,25 +433,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',
|
|
|
+ },
|
|
|
},
|
|
|
- },
|
|
|
],
|
|
|
},
|
|
|
|