Selaa lähdekoodia

feat(views): 初步添加“环境监控”模块

wangcong 2 kuukautta sitten
vanhempi
sitoutus
47317f965a

+ 1 - 0
src/i18n/locales/zh.json

@@ -143,6 +143,7 @@
   "navigation": {
     "deviceList": "设备列表",
     "deviceManage": "设备管理",
+    "envMonitor": "环境监控",
     "gatewayList": "网关列表",
     "gatewayManage": "网关管理",
     "gatewayProtocol": "网关协议管理",

+ 21 - 0
src/router/index.ts

@@ -41,6 +41,27 @@ const routes: Readonly<RouteRecordRaw[]> = [
       },
     ],
   },
+  {
+    path: '/env-monitor',
+    redirect: '/env-monitor/index',
+    component: HvacLayout,
+    meta: {
+      title: 'envMonitor',
+      icon: 'setting',
+      hideSubMenu: true,
+      requiresAuth: true,
+    },
+    children: [
+      {
+        path: 'index',
+        name: 'envMonitor',
+        component: () => import('@/views/env-monitor/EnvMonitor.vue'),
+        meta: {
+          requiresAuth: true,
+        },
+      },
+    ],
+  },
   {
     path: '/protocol-manage',
     name: 'protocolManage',

+ 3 - 0
src/views/env-monitor/AreaEditor.vue

@@ -0,0 +1,3 @@
+<template>
+  <div>区域编辑器</div>
+</template>

+ 3 - 0
src/views/env-monitor/EnvMonitor.vue

@@ -0,0 +1,3 @@
+<template>
+  <div>环境监控</div>
+</template>