|
@@ -15,26 +15,25 @@ declare module 'vue-router' {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
- {
|
|
|
- path: '/',
|
|
|
- redirect: '/first-usage',
|
|
|
- },
|
|
|
+/**
|
|
|
+ * 数据中心相关路由
|
|
|
+ */
|
|
|
+const dataCenterRoutes: Readonly<RouteRecordRaw[]> = [
|
|
|
{
|
|
|
- path: '/home',
|
|
|
- redirect: '/home/index',
|
|
|
+ path: '/env-monitor',
|
|
|
+ redirect: '/env-monitor/index',
|
|
|
component: HvacLayout,
|
|
|
meta: {
|
|
|
- title: 'hvacHome',
|
|
|
- icon: 'setting',
|
|
|
+ title: 'envMonitor',
|
|
|
+ icon: 'env-monitoring',
|
|
|
hideSubMenu: true,
|
|
|
requiresAuth: true,
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index',
|
|
|
- name: 'hvacHome',
|
|
|
- component: () => import('@/views/hvac-home/HvacHome.vue'),
|
|
|
+ name: 'envMonitor',
|
|
|
+ component: () => import('@/views/env-monitor/EnvMonitor.vue'),
|
|
|
meta: {
|
|
|
requiresAuth: true,
|
|
|
},
|
|
@@ -42,20 +41,20 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- path: '/env-monitor',
|
|
|
- redirect: '/env-monitor/index',
|
|
|
+ path: '/energy-analysis',
|
|
|
+ redirect: '/energy-analysis/index',
|
|
|
component: HvacLayout,
|
|
|
meta: {
|
|
|
- title: 'envMonitor',
|
|
|
- icon: 'setting',
|
|
|
+ title: 'energyAnalysis',
|
|
|
+ icon: 'energy-analysis',
|
|
|
hideSubMenu: true,
|
|
|
requiresAuth: true,
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index',
|
|
|
- name: 'envMonitor',
|
|
|
- component: () => import('@/views/env-monitor/EnvMonitor.vue'),
|
|
|
+ name: 'energyAnalysis',
|
|
|
+ component: () => import('@/views/energy-analysis/EnergyAnalysis.vue'),
|
|
|
meta: {
|
|
|
requiresAuth: true,
|
|
|
},
|
|
@@ -63,20 +62,20 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- path: '/device-work-status',
|
|
|
- redirect: '/device-work-status/index',
|
|
|
+ path: '/large-screen',
|
|
|
+ redirect: '/large-screen/index',
|
|
|
component: HvacLayout,
|
|
|
meta: {
|
|
|
- title: 'deviceWorkStatus',
|
|
|
- icon: 'setting',
|
|
|
+ title: 'largeScreen',
|
|
|
+ icon: 'large-screen',
|
|
|
hideSubMenu: true,
|
|
|
requiresAuth: true,
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index',
|
|
|
- name: 'deviceWorkStatus',
|
|
|
- component: () => import('@/views/device-work-status/DeviceWorkStatus.vue'),
|
|
|
+ name: 'largeScreen',
|
|
|
+ component: () => import('@/views/large-screen/LargeScreen.vue'),
|
|
|
meta: {
|
|
|
requiresAuth: true,
|
|
|
},
|
|
@@ -84,20 +83,20 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- path: '/energy-analysis',
|
|
|
- redirect: '/energy-analysis/index',
|
|
|
+ path: '/data-query',
|
|
|
+ redirect: '/data-query/index',
|
|
|
component: HvacLayout,
|
|
|
meta: {
|
|
|
- title: 'energyAnalysis',
|
|
|
- icon: 'setting',
|
|
|
+ title: 'dataQuery',
|
|
|
+ icon: 'data-query',
|
|
|
hideSubMenu: true,
|
|
|
requiresAuth: true,
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index',
|
|
|
- name: 'energyAnalysis',
|
|
|
- component: () => import('@/views/energy-analysis/EnergyAnalysis.vue'),
|
|
|
+ name: 'dataQuery',
|
|
|
+ component: () => import('@/views/data-query/DataQuery.vue'),
|
|
|
meta: {
|
|
|
requiresAuth: true,
|
|
|
},
|
|
@@ -110,7 +109,7 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
component: HvacLayout,
|
|
|
meta: {
|
|
|
title: 'alarmManage',
|
|
|
- icon: 'setting',
|
|
|
+ icon: 'alarm-management',
|
|
|
hideSubMenu: true,
|
|
|
requiresAuth: true,
|
|
|
},
|
|
@@ -125,6 +124,73 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
+];
|
|
|
+
|
|
|
+/**
|
|
|
+ * 运维中心中心相关路由
|
|
|
+ */
|
|
|
+const opsCenterRoutes: Readonly<RouteRecordRaw[]> = [
|
|
|
+ {
|
|
|
+ path: '/user-permission',
|
|
|
+ name: 'userPermission',
|
|
|
+ redirect: '/user-permission/user-manage',
|
|
|
+ component: HvacLayout,
|
|
|
+ meta: {
|
|
|
+ title: 'userPermission',
|
|
|
+ icon: 'user-permissions',
|
|
|
+ requiresAuth: true,
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'user-manage',
|
|
|
+ name: 'userManage',
|
|
|
+ component: () => import('@/views/user-manage/UserManage.vue'),
|
|
|
+ meta: {
|
|
|
+ title: 'userManage',
|
|
|
+ requiresAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'role-manage',
|
|
|
+ name: 'roleManage',
|
|
|
+ component: () => import('@/views/role-manage/RoleManage.vue'),
|
|
|
+ meta: {
|
|
|
+ title: 'roleManage',
|
|
|
+ requiresAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'organization-manage',
|
|
|
+ name: 'organizationManage',
|
|
|
+ component: () => import('@/views/organization-manage/OrganizationManage.vue'),
|
|
|
+ meta: {
|
|
|
+ title: 'organizationManage',
|
|
|
+ requiresAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/algorithm-manage',
|
|
|
+ redirect: '/algorithm-manage/index',
|
|
|
+ component: HvacLayout,
|
|
|
+ meta: {
|
|
|
+ title: 'algorithmManage',
|
|
|
+ icon: 'algorithm-management',
|
|
|
+ hideSubMenu: true,
|
|
|
+ requiresAuth: true,
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index',
|
|
|
+ name: 'algorithmManage',
|
|
|
+ component: () => import('@/views/algorithm-manage/AlgorithmManage.vue'),
|
|
|
+ meta: {
|
|
|
+ requiresAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
{
|
|
|
path: '/protocol-manage',
|
|
|
name: 'protocolManage',
|
|
@@ -132,7 +198,7 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
component: HvacLayout,
|
|
|
meta: {
|
|
|
title: 'protocolManage',
|
|
|
- icon: 'setting',
|
|
|
+ icon: 'protocol-management',
|
|
|
requiresAuth: true,
|
|
|
},
|
|
|
children: [
|
|
@@ -171,8 +237,8 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
redirect: '/device-manage/device-list',
|
|
|
component: HvacLayout,
|
|
|
meta: {
|
|
|
- title: 'deviceManage',
|
|
|
- icon: 'setting',
|
|
|
+ title: 'device',
|
|
|
+ icon: 'device',
|
|
|
requiresAuth: true,
|
|
|
},
|
|
|
children: [
|
|
@@ -181,7 +247,7 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
name: 'deviceList',
|
|
|
component: () => import('@/views/device-list/DeviceList.vue'),
|
|
|
meta: {
|
|
|
- title: 'deviceList',
|
|
|
+ title: 'deviceManage',
|
|
|
requiresAuth: true,
|
|
|
},
|
|
|
children: [
|
|
@@ -195,25 +261,61 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
+ {
|
|
|
+ path: 'gateway-list',
|
|
|
+ name: 'gatewayList',
|
|
|
+ component: () => import('@/views/gateway-list/GatewayList.vue'),
|
|
|
+ meta: {
|
|
|
+ title: 'gatewayManage',
|
|
|
+ requiresAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+];
|
|
|
+
|
|
|
+const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
+ {
|
|
|
+ path: '/',
|
|
|
+ redirect: '/first-usage',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: '/home',
|
|
|
+ redirect: '/home/index',
|
|
|
+ component: HvacLayout,
|
|
|
+ meta: {
|
|
|
+ title: 'hvacHome',
|
|
|
+ icon: 'setting',
|
|
|
+ hideSubMenu: true,
|
|
|
+ requiresAuth: true,
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'index',
|
|
|
+ name: 'hvacHome',
|
|
|
+ component: () => import('@/views/hvac-home/HvacHome.vue'),
|
|
|
+ meta: {
|
|
|
+ requiresAuth: true,
|
|
|
+ },
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
- path: '/gateway-manage',
|
|
|
- name: 'gatewayManage',
|
|
|
- redirect: '/gateway-manage/gateway-list',
|
|
|
+ path: '/device-work-status',
|
|
|
+ redirect: '/device-work-status/index',
|
|
|
component: HvacLayout,
|
|
|
meta: {
|
|
|
- title: 'gatewayManage',
|
|
|
+ title: 'deviceWorkStatus',
|
|
|
icon: 'setting',
|
|
|
+ hideSubMenu: true,
|
|
|
requiresAuth: true,
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'gateway-list',
|
|
|
- name: 'gatewayList',
|
|
|
- component: () => import('@/views/gateway-list/GatewayList.vue'),
|
|
|
+ path: 'index',
|
|
|
+ name: 'deviceWorkStatus',
|
|
|
+ component: () => import('@/views/device-work-status/DeviceWorkStatus.vue'),
|
|
|
meta: {
|
|
|
- title: 'gatewayList',
|
|
|
requiresAuth: true,
|
|
|
},
|
|
|
},
|
|
@@ -264,6 +366,8 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
|
requiresAuth: true,
|
|
|
},
|
|
|
},
|
|
|
+ ...dataCenterRoutes,
|
|
|
+ ...opsCenterRoutes,
|
|
|
];
|
|
|
|
|
|
const router = createRouter({
|
|
@@ -287,6 +391,6 @@ const router = createRouter({
|
|
|
// }
|
|
|
// });
|
|
|
|
|
|
-export { routes };
|
|
|
+export { dataCenterRoutes, opsCenterRoutes, routes };
|
|
|
|
|
|
export default router;
|