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
| 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: '/driver',
| component: Layout,
| children: [
| {
| path: '/driver',
| component: () => import('@/view/driver'),
| meta: {
| title: '驾驶员管理',
| icon: 'driver'
| }
| }
| ]
| },
| {
| 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: '/car-playback',
| component: () => import('@/view/playback'),
| meta: {
| title: '车辆回放',
| 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'
| }
| }
| ]
| }
|
| ]
|
|