import settings from "@/config/settings"; import { RoutesDataItem } from "@/utils/routes"; import BlankLayout from '@/layouts/BlankLayout.vue'; const IndexLayoutRoutes: Array = [ { icon: 'alarmManage', title: 'index-layout.menu.alarmManage', path: '/alarmManage', component: () => import('@/views/alarmManage/index.vue') }, { icon: 'siteManage', title: 'index-layout.menu.siteManage', path: '/siteManage', component: () => import('@/views/siteManage/index.vue') }, { icon: 'stationManage', title: 'index-layout.menu.stationManage', path: '/stationManage', redirect: '/stationManage/index', component: BlankLayout, children: [ { icon: 'stationManage', title: 'index-layout.menu.stationManage.EditArticle', path: 'siteList', component: () => import('@/views/stationManage/siteList.vue'), selectLeftMenu: '/stationManage', hidden: true }, { icon: 'stationManage', title: 'index-layout.menu.stationManage.Articleindex', path: 'index', component: () => import('@/views/stationManage/index.vue'), selectLeftMenu: '/stationManage', hidden: true } ] }, { icon: 'deviceManage', title: 'index-layout.menu.deviceManage', path: '/deviceManage', component: BlankLayout, redirect: '/deviceManage/powerEquip', children: [ { title: 'index-layout.menu.deviceManage.powerEquip', 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'), }, { title: 'index-layout.menu.deviceManage.attribTemplate', path: 'attribTemplate', component: () => import('@/views/deviceManage/attribTemplate/index.vue'), } ] }, { icon: 'dataManage', title: 'index-layout.menu.dataManage', path: '/dataManage', component: BlankLayout, redirect: '/dataManage/sameAnalysis', children: [ { title: 'index-layout.menu.dataManage.sameAnalysis', path: 'sameAnalysis', component: () => import('@/views/dataManage/sameAnalysis/index.vue'), }, { title: 'index-layout.menu.dataManage.chainAnalysis', path: 'chainAnalysis', component: () => import('@/views/dataManage/chainAnalysis/index.vue'), }, { title: 'index-layout.menu.dataManage.handOpera', path: 'handOpera', component: () => import('@/views/dataManage/handOpera/index.vue'), }, { title: 'index-layout.menu.dataManage.energyReport', path: 'energyReport', component: () => import('@/views/dataManage/energyReport/index.vue'), }, { title: 'index-layout.menu.dataManage.demandAnalysis', path: 'demandAnalysis', component: () => import('@/views/dataManage/demandAnalysis/index.vue'), }, { title: 'index-layout.menu.dataManage.consumConfig', path: 'consumConfig', component: () => import('@/views/dataManage/consumConfig/index.vue'), } ] }, { title: '电能质量', icon: 'powerQuality', path: '/powerQuality', component: BlankLayout, redirect: '/powerQuality/harmonicReport', children: [ { title: '谐波报表', path: 'harmonicReport', component: () => import('@/views/powerQuality/harmonicReport/index.vue'), }, { title: '实时监测', path: 'realTimeMonitoring', name: 'realTimeMonitoring', component: () => import('@/views/powerQuality/realTimeMonitoring/index.vue'), }, { title: '评估报告', path: 'asseReport', name: 'asseReport', component: () => import('@/views/powerQuality/asseReport/index.vue'), }, { title: '三相不平衡分析', path: 'unbalanceAnalysis', name: 'unbalanceAnalysis', component: () => import('@/views/powerQuality/unbalanceAnalysis/index.vue'), }, ] }, { icon: 'monthReport', title: '月度报告', path: '/monthReport', component: () => import('@/views/monthReport/index.vue'), }, { icon: 'planOutage', title: '计划停电', path: '/planOutage', component: () => import('@/views/planOutage/index.vue'), }, { title: '巡检管理', icon: 'patrolManage', path: '/patrolManage', component: BlankLayout, redirect: '/patrolManage/patrolPlan', name: 'patrolManage', children: [ { title: '巡检计划', path: 'patrolPlan', name: 'patrolPlan', component: () => import('@/views/patrolManage/patrolPlan/index.vue'), }, { title: '巡检记录', path: 'patrolRecord', name: 'patrolRecord', component: () => import('@/views/patrolManage/patrolRecord/index.vue'), }, { title: '巡检内容', path: 'patrolContent', name: 'patrolContent', component: () => import('@/views/patrolManage/patrolContent/index.vue'), }, { title: '检查条目', path: 'checkEntries', name: 'checkEntries', component: () => import('@/views/patrolManage/checkEntries/index.vue'), }, ] }, { title: '运维管理', icon: 'operManage', path: '/operManage', component: BlankLayout, redirect: '/operManage/siteAchives', name: 'operManage', children: [ { title: '现场档案', path: 'siteAchives', name: 'siteAchives', component: () => import('@/views/operManage/siteAchives/index.vue'), }, { title: '缺陷管理', path: 'defectManage', name: 'defectManage', component: () => import('@/views/operManage/defectManage/index.vue'), }, { title: '工单管理', path: 'workManage', name: 'workManage', component: () => import('@/views/operManage/workManage/index.vue'), }, { title: '运维统计', path: 'operStatistics', name: 'operStatistics', component: () => import('@/views/operManage/operStatistics/index.vue'), }, { title: '工作量统计', path: 'workStatistics', name: 'workStatistics', component: () => import('@/views/operManage/workStatistics/index.vue'), }, ] }, { title: '系统管理', icon: 'systemManage', path: '/systemManage', component: BlankLayout, redirect: '/systemManage/userManage', name: 'systemManage', children: [ { title: '用户管理', path: 'userManage', name: 'userManage', component: () => import('@/views/systemManage/userManage/index.vue'), }, { title: '权限管理', path: 'rolePermission', name: 'rolePermission', component: () => import('@/views/systemManage/rolePermission/index.vue'), }, ] }, { icon: 'permissions', title: 'index-layout.menu.roles', path: '/roles', redirect: '/roles/all', component: BlankLayout, children: [ { icon: 'detail', title: 'index-layout.menu.roles.all', path: 'all', component: () => import('@/views/roles/all/index.vue'), }, { icon: 'detail', roles: ['user'], title: 'index-layout.menu.roles.user', path: 'user', component: () => import('@/views/roles/user/index.vue'), }, { icon: 'detail', roles: ['test'], title: 'index-layout.menu.roles.test', path: 'test', component: () => import('@/views/roles/test/index.vue'), }, ], }, ]; export default IndexLayoutRoutes;