Explorar o código

feat(edge):add edge

crush %!s(int64=4) %!d(string=hai) anos
pai
achega
f0decb4fa0
Modificáronse 4 ficheiros con 50 adicións e 12 borrados
  1. 35 12
      config/routes.ts
  2. 5 0
      src/locales/en-US/pages.ts
  3. 5 0
      src/locales/zh-CN/menu.ts
  4. 5 0
      src/locales/zh-CN/pages.ts

+ 35 - 12
config/routes.ts

@@ -154,18 +154,6 @@
         component: './link/Certificate',
       },
       {
-        path: '/link/gateway',
-        name: 'gateway',
-        icon: 'smile',
-        component: './link/Gateway',
-      },
-      {
-        path: '/link/opcua',
-        name: 'opcua',
-        icon: 'smile',
-        component: './link/Opcua',
-      },
-      {
         path: '/link/protocol',
         name: 'protocol',
         icon: 'smile',
@@ -177,6 +165,18 @@
         icon: 'smile',
         component: './link/Type',
       },
+      {
+        path: '/link/gateway',
+        name: 'gateway',
+        icon: 'smile',
+        component: './link/Gateway',
+      },
+      {
+        path: '/link/opcua',
+        name: 'opcua',
+        icon: 'smile',
+        component: './link/Opcua',
+      },
     ],
   },
   {
@@ -359,6 +359,29 @@
       ]
   },
   {
+    path:'/edge',
+    name:'edge',
+    icon:"crown",
+    routes: [
+      {
+        path:'/edge',
+        redirect: '/edge/product'
+      },
+      {
+        path:'/edge/product',
+        name:'product',
+        icon:'smile',
+        component: './edge/Product',
+      },
+      {
+        path:'/edge/device',
+        name:'device',
+        icon:'smile',
+        component: './edge/Device'
+      }
+    ]
+  },
+  {
     path: '/',
     redirect: '/analysis',
   },

+ 5 - 0
src/locales/en-US/pages.ts

@@ -132,6 +132,7 @@ export default {
 
   // 设备接入
   'pages.link.certificate':'Certificate',
+  'pages.link.protocol':'protocol',
   'pages.link.type':'Type',
   'pages.link.gateway':'Gateway',
   'pages.link.opcua':'OPC UA',
@@ -177,4 +178,8 @@ export default {
   'pages.media.device':'Device',
   'pages.media.reveal':'Reveal',
   'pages.media.cascade':'Cascade',
+
+  // 边缘网关
+  'pages.edge.product':'Product',
+  'pages.edge.device':'Device'
 };

+ 5 - 0
src/locales/zh-CN/menu.ts

@@ -10,6 +10,7 @@ export default {
   'menu.system.open-api': '第三方平台',
   'menu.system.permission': '权限管理',
   'menu.system.tenant': '租户管理',
+  'menu.system.datasource': '数据源管理',
   'menu.device': '设备管理',
   'menu.device.product': '产品',
   'menu.device.product-detail': '产品详情',
@@ -21,6 +22,7 @@ export default {
   'menu.device.alarm': '告警记录',
   'menu.link':'设备接入',
   'menu.link.certificate':'证书管理',
+  'menu.link.protocol':'协议管理',
   'menu.link.type':'网络组件',
   'menu.link.gateway':'设备网关',
   'menu.link.opcua':'OPC UA',
@@ -48,6 +50,9 @@ export default {
   'menu.media.device':'视频设备',
   'menu.media.reveal':'分屏展示',
   'menu.media.cascade':'国标级联',
+  'menu.edge':'边缘网关',
+  'menu.edge.product':'产品',
+  'menu.edge.device':'设备',
   'menu.admin.sub-page': '二级管理页',
   'menu.login': '登录',
   'menu.register': '注册',

+ 5 - 0
src/locales/zh-CN/pages.ts

@@ -131,6 +131,7 @@ export default {
 
   // 设备接入
   'pages.link.certificate':'证书管理',
+  'pages.link.protocol':'协议管理',
   'pages.link.type':'网络组件',
   'pages.link.gateway':'设备网关',
   'pages.link.opcua':'OPC UA',
@@ -175,4 +176,8 @@ export default {
   'pages.media.device':'视频设备',
   'pages.media.reveal':'分屏展示',
   'pages.media.cascade':'国标级联',
+
+  // 边缘网关
+  'pages.edge.product':'产品',
+  'pages.edge.device':'设备'
 };