zhangyu 3 лет назад
Родитель
Сommit
e1e43d9ebc
4 измененных файлов с 76 добавлено и 1 удалено
  1. 25 0
      src/data/menus.js
  2. 25 1
      src/router/system.js
  3. 13 0
      src/views/draw/plane/index.vue
  4. 13 0
      src/views/draw/topo/index.vue

+ 25 - 0
src/data/menus.js

@@ -335,6 +335,31 @@ export default [
       permission: 'system:role:query'
     }]
   },
+  // 绘图工具
+  {
+    path: '/draw',
+    name: '绘图工具',
+    icon: '',
+    children: [{
+      path: '/draw/topo',
+      name: '拓扑图',
+      icon: '',
+      opts: [{
+        name: '查看',
+        basic: true,
+        permission: 'system:role:query'
+      }]
+    }, {
+      path: '/draw/plane',
+      name: '平面图',
+      icon: '',
+      opts: [{
+        name: '查看',
+        basic: true,
+        permission: 'system:role:query'
+      }]
+    }]
+  },
   /******************** 通用字典 ***************************/
 // {
 // 	path: '/dictionaries',

+ 25 - 1
src/router/system.js

@@ -85,6 +85,9 @@ import data from '@/views/relation/data'
 import datatable from '@/views/relation/datatable'
 /**  数据日志同步 */
 import syncLog from '@/views/synclog'
+/**  绘图工具 */
+import topo from '@/views/draw/topo'
+import plane from '@/views/draw/plane'
 
 /**  厂家库 */
 /**  辅助屏 */
@@ -815,7 +818,28 @@ export default [{
 				}
 			}
 		]
-  }
+  },
+  //绘图工具
+  {
+    path: '/draw',
+    name: 'LayoutMain',
+    component: LayoutMain,
+    children: [
+      {path: '', name: 'topo', component: topo},
+      {
+        path: 'topo',
+        name: 'topo',
+        component: topo,
+        meta: {keepAlive: false, breadcrumbs: [{label: '绘图工具', path: '/draw/topo'}, {label: '拓扑图'}]}
+      },
+      {
+        path: 'plane',
+        name: 'plane',
+        component: plane,
+        meta: {keepAlive: false, breadcrumbs: [{label: '绘图工具', path: '/draw/topo'}, {label: '平面图'}]}
+      },
+    ]
+  },
   /******************** 通用字典 ***************************/
   //厂家库
   // {

+ 13 - 0
src/views/draw/plane/index.vue

@@ -0,0 +1,13 @@
+<template>
+  <div>平面图</div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style>
+
+</style>

+ 13 - 0
src/views/draw/topo/index.vue

@@ -0,0 +1,13 @@
+<template>
+  <div>拓扑图</div>
+</template>
+
+<script>
+export default {
+
+}
+</script>
+
+<style>
+
+</style>