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
| 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: 'draw',
| name: '图纸管理',
| meta: {
| icon: 'dashboard',
| authority: {
| role: ['1001', '1002', '1003'],
| }
| },
| component: BlankView,
| children: [
| {
| path: 'center',
| name: '图纸中心',
| component: () => import('@/pages/drawManage/drawCenter'),
| },
| {
| path: 'details/:subCode',
| name: '图纸详情',
| meta: {
| invisible: true,
| highlight: '/draw/center'
| },
| component: () => import('@/pages/drawManage/details'),
| },
| // {
| // path: 'analysis',
| // name: '图纸审批',
| // component: () => import('@/pages/dashboard/analysis'),
| // }
| ]
| },
| {
| 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'),
| }
| ]
| },
| ]
| },
| ]
| }
|
| export default options
|
|