1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
| import TabsView from '@/layouts/tabs/TabsView'
| import BlankView from '@/layouts/BlankView'
| // import PageView from '@/layouts/PageView'
|
| // 路由配置
| const options = {
| routes: [
| {
| path: '/login',
| name: '登录页',
| component: () => import('@/pages/login')
| },
| {
| path: '*',
| name: '404',
| component: () => import('@/pages/exception/404'),
| },
| {
| path: '/403',
| name: '403',
| component: () => import('@/pages/exception/403'),
| },
| {
| path: '/',
| name: '首页',
| component: TabsView,
| redirect: '/login',
| children: [
| {
| path: 'workplace',
| name: '工作台',
| meta: {
| icon: 'home',
| page: {
| closable: false
| },
| authority: {
| role: ['1001', '1002', '1003'],
| }
| },
| component: () => import('@/pages/workplace'),
| },
| {
| path: 'resource',
| name: '资源管理',
| meta: {
| icon: 'dashboard',
| authority: {
| role: ['1001', '1002', '1003'],
| }
| },
| component: BlankView,
| children: [
| {
| path: 'materials',
| name: '物料中心',
| component: () => import('@/pages/resourceManage/materialsCenter'),
| },
| {
| path: 'material-history',
| name: '物料历史',
| meta: {
| invisible: true,
| highlight: '/resource/materials'
| },
| component: () => import('@/pages/resourceManage/materialsCenter/history'),
| },
| {
| path: 'product',
| name: '产品中心',
| component: () => import('@/pages/resourceManage/product'),
| },
| {
| path: 'product-details',
| name: '产品详情',
| meta: {
| invisible: true,
| highlight: '/resource/product'
| },
| component: () => import('@/pages/resourceManage/product/details'),
| },
| {
| path: 'software',
| name: '软件中心',
| component: () => import('@/pages/resourceManage/software'),
| },
| // {
| // path: 'flow-card',
| // name: '流程卡',
| // component:()=>import('@/pages/resourceManage/flowCard')
| // },
| // {
| // path: 'sop-file',
| // name: 'SOP',
| // component:()=>import('@/pages/resourceManage/sopFile')
| // }
| ]
| },
| {
| path: 'user',
| name: '用户',
| meta: {
| icon: 'user',
| page: {
| cacheAble: false
| },
| authority: {
| role: '1004',
| }
| },
| component: BlankView,
| children: [
| {
| path: 'list',
| name: '用户信息',
| component: () => import('@/pages/user'),
| },
| // {
| // path: 'power',
| // name: '角色管理',
| // component: () => import('@/pages/user/power'),
| // }
| ]
| },
| {
| path: 'system',
| name: '系统',
| meta: {
| icon: 'profile',
| page: {
| cacheAble: false
| },
| authority: {
| role: '1004',
| }
| },
| component: BlankView,
| children: [
| {
| path: 'logs',
| name: '操作日志',
| component: () => import('@/pages/system/logs'),
| }
| ]
| },
| {
| path: 'permission',
| name: '权限',
| meta: {
| icon: 'apartment',
| page: {
| cacheAble: false
| },
| authority: {
| role: '1004',
| }
| },
| component: BlankView,
| children: [
| {
| path: 'list',
| name: '权限管理',
| component: () => import('@/pages/permission'),
| }
| ]
| },
| ]
| },
| ]
| }
|
| export default options
|
|