902_trafficManagement.js
3.49 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
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
const _import = require("@/libs/util.import." + process.env.NODE_ENV)
export const routerName = {
902: {
path: "/flowManage",
name: "flowManage",
meta: {
title: "流量管理",
authId: "902",
parentId: "1",
cache: false
}
},
90201: {
path: "/customerList",
name: "customerList",
meta: {
title: "客户列表",
authId: "90201",
parentId: "902",
cache: false
},
auth: [
{
authId: "9020101",
parentId: "90201",
label: "导出",
category: "Button",
type: "primary",
handle: "handleExport"
}
],
component: _import("customer/customerList")
},
90202: {
path: "/recordList",
name: "recordList",
meta: {
title: "预录信息",
authId: "90202",
parentId: "902",
cache: false
},
auth: [
{
authId: "9020201",
parentId: "90202",
label: "预录客户",
icon: "plus",
category: "Button",
type: "primary",
handle: "handleAdd",
addRoutePath: [
{
authId: "901",
name: "预录客户",
parentId: "90202"
}
]
},
{
authId: "9020202",
parentId: "90202",
label: "一键导入",
category: "Button",
type: "primary",
handle: "handleImport"
},
{
authId: "9020203",
parentId: "90202",
label: "编辑",
handle: "handleEdit",
addRoutePath: [
{
authId: "901",
name: "预录客户",
parentId: "90202"
}
]
}
],
component: _import("customer/recordList")
},
90203: {
path: "/invitation",
name: "invitation",
meta: {
title: "邀约管理",
authId: "90203",
parentId: "902",
cache: false
},
auth: [
{
authId: "9020301",
parentId: "90203",
label: "再次电联",
handle: "handleMoreCall"
// ruleObj: {
// attr: 'status',
// rule: {
// 0: '上架',
// 1: '下架'
// }
// }
},
{
authId: "9020302",
parentId: "90203",
label: "取消预约",
handle: "handleCancel"
},
{
authId: "9020303",
parentId: "90203",
label: "更新备注",
handle: "handleUpdateRemark"
},
{
authId: "9020304",
parentId: "90203",
label: "修改时间",
handle: "handleChangeTime"
},
{
authId: "9020305",
parentId: "90203",
label: "电联一下",
handle: "handleCall"
},
{
authId: "9020306",
parentId: "90203",
label: "预约时间",
handle: "handleAppoint"
},
{
authId: "9020307",
parentId: "90203",
label: "更新备注",
handle: "handleUpdateRemark"
}
],
component: _import("customer/invitation")
},
901: {
path: "/editCustomer",
name: "editCustomer",
meta: {
title: "预录客户",
authId: "901",
parentId: "90202",
cache: false,
sideHidden: false,
activePath: "/recordList"
},
component: _import("customer/editCustomer")
}
}
// { routerName }