소스 검색

feat(views): 初步添加“设备工况”模块

wangcong 2 달 전
부모
커밋
1bc3cee2ce
3개의 변경된 파일27개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      src/i18n/locales/zh.json
  2. 21 0
      src/router/index.ts
  3. 3 0
      src/views/device-work-status/DeviceWorkStatus.vue

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

@@ -124,6 +124,8 @@
     "withinGroupRanking": "组内排序"
   },
   "deviceList": {},
+  "deviceWorkStatus": {},
+  "envMonitor": {},
   "firstUsage": {
     "chooseItemToBeginSetup": "选择一项开始配置",
     "createCustomer": "为你的客户创建账号",
@@ -143,6 +145,7 @@
   "navigation": {
     "deviceList": "设备列表",
     "deviceManage": "设备管理",
+    "deviceWorkStatus": "设备工况",
     "envMonitor": "环境监控",
     "gatewayList": "网关列表",
     "gatewayManage": "网关管理",

+ 21 - 0
src/router/index.ts

@@ -62,6 +62,27 @@ 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: '/protocol-manage',
     name: 'protocolManage',

+ 3 - 0
src/views/device-work-status/DeviceWorkStatus.vue

@@ -0,0 +1,3 @@
+<template>
+  <div>设备工况</div>
+</template>