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
| import Layout from '@/layouts'
| /**
| * icon
| * home: 首页
| * alarm: 报警
| * car: 车辆
| * company: 公司
| * complaint: 投诉
| * sys: 系统
| * order: 订单
| *
| * hide: true, // 是否隐藏
| *
| */
|
| export default [
| {
| path: '/',
| component: () => import('@/view/login'),
| },
| {
| path: '/home',
| component: Layout,
| children: [
| {
| path: '/home',
| component: () => import('@/view/home'),
| meta: {
| title: '首页',
| icon: 'home'
| }
| },
| ]
| },
| {
| path: '/company',
| component: Layout,
| children: [
| {
| path: '/company',
| component: () => import('@/view/company'),
| meta: {
| title: '公司管理',
| icon: 'company'
| }
| }
| ]
| },
| {
| path: '/car',
| component: Layout,
| children: [
| {
| path: '/car-manage',
| component: () => import('@/view/car-manage'),
| meta: {
| title: '车辆管理',
| icon: 'car'
| }
| },
| {
| path: '/car-detail',
| component: () => import('@/view/car-manage/detail'),
| meta: {
| title: '车辆详情',
| icon: 'car',
| hide: true
| }
| }
| ]
| },
| {
| path: '/early-warning',
| component: Layout,
| children: [
| {
| path: '/early-warning',
| component: () => import('@/view/early-warning'),
| meta: {
| title: '报警记录',
| icon: 'alarm'
| }
| }
| ]
| },
| {
| path: '/order',
| component: Layout,
| children: [
| {
| path: '/order',
| component: () => import('@/view/order'),
| meta: {
| title: '订单记录',
| icon: 'order'
| }
| }
| ]
| },
| {
| path: '/complaint',
| component: Layout,
| children: [
| {
| path: '/complaint',
| component: () => import('@/view/complaint/index'),
| meta: {
| title: '投诉记录',
| icon: 'complaint'
| }
| }
| ]
| },
| {
| path: '/systemManage',
| meta: {
| title: "系统管理",
| icon: 'sys',
| },
| component: Layout,
| children: [
| {
| path: 'driver',
| component: () => import('@/view/systemManage/driver'),
| meta: {
| title: '驾驶员列表',
| }
| },
| {
| path: 'type',
| component: () => import('@/view/car-type'),
| meta: {
| title: '车辆分类',
| }
| },
| {
| path: 'user',
| component: () => import('@/view/systemManage/user'),
| meta: {
| title: '用户管理',
| }
| },
| {
| path: 'role',
| component: () => import('@/view/systemManage/role'),
| meta: {
| title: '角色管理',
| }
| },
| {
| path: 'add-role',
| component: () => import('@/view/systemManage/role/addEdit.vue'),
| meta: {
| title: '添加角色',
| hide: true
| }
| },
| {
| path: 'role-detail',
| component: () => import('@/view/systemManage/role/detail'),
| meta: {
| title: '角色详情',
| hide: true
| }
| }
| ]
| }
|
| ]
|
|