operation.ts
2.72 KB
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
export default {
path: 'operation',
name: 'operation',
component: () => import('@/views/operation/index.vue'),
meta: {
requiresAuth: true,
roles: ['*'],
},
children: [
{
path: 'banners',
name: 'operation-banner',
component: () => import('@/views/operation/banner/index.vue'),
meta: {
requiresAuth: true,
hideInMenu: false,
isRedirect: true,
reload: true,
roles: ['operation-banner'],
breadcrumb: ['operation', 'operation-banner'],
},
},
{
path: 'notification',
name: 'operation-notification',
component: () => import('@/views/operation/notification/index.vue'),
meta: {
requiresAuth: true,
hideInMenu: false,
isRedirect: true,
reload: true,
roles: ['operation-notification'],
breadcrumb: ['operation', 'operation-notification'],
},
},
{
path: 'notification',
name: 'operation-notification-create',
component: () => import('@/views/operation/notification/create.vue'),
meta: {
title: '创建',
requiresAuth: true,
hideInMenu: true,
reload: true,
isRedirect: true,
menuSelectKey: 'operation-notification',
roles: ['operation-notification-create'],
breadcrumb: ['operation', 'operation-notification'],
},
},
{
path: 'notification/:id(\\d+)',
name: 'operation-notification-show',
component: () => import('@/views/operation/notification/show.vue'),
meta: {
title: '详情',
requiresAuth: true,
hideInMenu: true,
reload: true,
isRedirect: true,
menuSelectKey: 'operation-notification',
roles: ['operation-notification-show'],
breadcrumb: ['operation', 'operation-notification', 'operation-notification-show'],
},
},
{
path: 'notification/:id(\\d+)/edit',
name: 'operation-notification-update',
component: () => import('@/views/operation/notification/update.vue'),
meta: {
title: '详情',
requiresAuth: true,
hideInMenu: true,
reload: true,
isRedirect: true,
menuSelectKey: 'operation-notification',
roles: ['operation-notification-edit'],
breadcrumb: ['operation', 'operation-notification', 'operation-notification-update'],
},
},
{
path: 'broker',
name: 'operation-broker',
component: () => import('@/views/operation/broker/index.vue'),
meta: {
requiresAuth: true,
hideInMenu: false,
isRedirect: true,
reload: true,
roles: ['operation-broker'],
breadcrumb: ['operation', 'operation-broker'],
},
},
],
};