|
@@ -15,6 +15,30 @@ declare module 'vue-router' {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+/**
|
|
|
|
+ * AI智控相关路由
|
|
|
|
+ */
|
|
|
|
+const aiSmartCtrlRoutes: RouteRecordRaw[] = [
|
|
|
|
+ {
|
|
|
|
+ path: 'real-time-monitor',
|
|
|
|
+ name: 'realTimeMonitor',
|
|
|
|
+ component: () => import('@/views/real-time-monitor/RealTimeMonitor.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: 'realTimeMonitor',
|
|
|
|
+ requiresAuth: true,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+ {
|
|
|
|
+ path: 'device-work-status',
|
|
|
|
+ name: 'deviceWorkStatus',
|
|
|
|
+ component: () => import('@/views/device-work-status/DeviceWorkStatus.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: 'deviceWorkStatus',
|
|
|
|
+ requiresAuth: true,
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
+];
|
|
|
|
+
|
|
/**
|
|
/**
|
|
* 数据中心相关路由
|
|
* 数据中心相关路由
|
|
*/
|
|
*/
|
|
@@ -127,7 +151,7 @@ const dataCenterRoutes: Readonly<RouteRecordRaw[]> = [
|
|
];
|
|
];
|
|
|
|
|
|
/**
|
|
/**
|
|
- * 运维中心中心相关路由
|
|
|
|
|
|
+ * 运维中心相关路由
|
|
*/
|
|
*/
|
|
const opsCenterRoutes: Readonly<RouteRecordRaw[]> = [
|
|
const opsCenterRoutes: Readonly<RouteRecordRaw[]> = [
|
|
{
|
|
{
|
|
@@ -321,27 +345,6 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
},
|
|
},
|
|
],
|
|
],
|
|
},
|
|
},
|
|
- {
|
|
|
|
- path: '/device-work-status',
|
|
|
|
- redirect: '/device-work-status/index',
|
|
|
|
- component: HvacLayout,
|
|
|
|
- meta: {
|
|
|
|
- title: 'deviceWorkStatus',
|
|
|
|
- icon: 'setting',
|
|
|
|
- hideSubMenu: true,
|
|
|
|
- requiresAuth: true,
|
|
|
|
- },
|
|
|
|
- children: [
|
|
|
|
- {
|
|
|
|
- path: 'index',
|
|
|
|
- name: 'deviceWorkStatus',
|
|
|
|
- component: () => import('@/views/device-work-status/DeviceWorkStatus.vue'),
|
|
|
|
- meta: {
|
|
|
|
- requiresAuth: true,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
- },
|
|
|
|
{
|
|
{
|
|
path: '/first-usage',
|
|
path: '/first-usage',
|
|
name: 'firstUsage',
|
|
name: 'firstUsage',
|
|
@@ -387,6 +390,28 @@ const routes: Readonly<RouteRecordRaw[]> = [
|
|
requiresAuth: true,
|
|
requiresAuth: true,
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ {
|
|
|
|
+ path: '/ai-smart-ctrl',
|
|
|
|
+ name: 'aiSmartCtrl',
|
|
|
|
+ redirect: '/ai-smart-ctrl/device-group',
|
|
|
|
+ component: HvacLayout,
|
|
|
|
+ meta: {
|
|
|
|
+ title: 'aiSmartCtrl',
|
|
|
|
+ requiresAuth: true,
|
|
|
|
+ },
|
|
|
|
+ children: [
|
|
|
|
+ {
|
|
|
|
+ path: 'device-group',
|
|
|
|
+ name: 'deviceGroup',
|
|
|
|
+ component: () => import('@/views/device-group/DeviceGroup.vue'),
|
|
|
|
+ meta: {
|
|
|
|
+ title: 'deviceGroup',
|
|
|
|
+ requiresAuth: true,
|
|
|
|
+ },
|
|
|
|
+ children: aiSmartCtrlRoutes,
|
|
|
|
+ },
|
|
|
|
+ ],
|
|
|
|
+ },
|
|
...dataCenterRoutes,
|
|
...dataCenterRoutes,
|
|
...opsCenterRoutes,
|
|
...opsCenterRoutes,
|
|
];
|
|
];
|
|
@@ -412,6 +437,6 @@ const router = createRouter({
|
|
// }
|
|
// }
|
|
// });
|
|
// });
|
|
|
|
|
|
-export { dataCenterRoutes, opsCenterRoutes, routes };
|
|
|
|
|
|
+export { aiSmartCtrlRoutes, dataCenterRoutes, opsCenterRoutes, routes };
|
|
|
|
|
|
export default router;
|
|
export default router;
|