dingxin 6 years ago
parent
commit
b26911f92d

+ 21
- 1
VUECODE/smart-operate-manage/src/router/index.js View File

@@ -102,7 +102,27 @@ export const constantRouterMap = [
102 102
       }
103 103
     ]
104 104
   },
105
-
105
+  {
106
+    path: '/account',
107
+    component: Layout,
108
+    redirect: '/account/index',
109
+    alwaysShow: true,
110
+    meta: { title: '账号管理', icon: 'zip' },
111
+    children: [
112
+      {
113
+        path: '/account/user',
114
+        component: () => import('@/views/account/user/index'),
115
+        name: 'user-index',
116
+        meta: { title: '员工管理', icon: 'table' }
117
+      },
118
+      {
119
+        path: '/account/role',
120
+        component: () => import('@/views/account/role/index'),
121
+        name: 'role-index',
122
+        meta: { title: '角色管理', icon: 'table' }
123
+      }
124
+    ]
125
+  },
106 126
   { path: '*', redirect: '/404', hidden: true }
107 127
 ]
108 128
 

+ 0
- 0
VUECODE/smart-operate-manage/src/views/account/index.vue View File


+ 10
- 0
VUECODE/smart-operate-manage/src/views/account/role/index.vue View File

@@ -0,0 +1,10 @@
1
+<template>
2
+    <div>角色管理</div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+    
8
+}
9
+</script>
10
+

+ 10
- 0
VUECODE/smart-operate-manage/src/views/account/user/index.vue View File

@@ -0,0 +1,10 @@
1
+<template>
2
+    <div>员工管理</div>
3
+</template>
4
+
5
+<script>
6
+export default {
7
+    
8
+}
9
+</script>
10
+