Your Name 3 年之前
父節點
當前提交
46583d7a95
共有 2 個檔案被更改,包括 79 行新增4 行删除
  1. 79
    3
      config/routes.js
  2. 0
    1
      src/pages/staff/Role/Edit/index.jsx

+ 79
- 3
config/routes.js 查看文件

@@ -26,47 +26,52 @@ export default [
26 26
           {
27 27
             path: '/welcome',
28 28
             name: 'welcome',
29
-            icon: 'smile',
30 29
             component: './welcome',
31 30
           },
32 31
           {
33 32
             path: '/building',
34 33
             name: '项目管理',
35
-            icon: 'control',
36 34
             component: '../layouts/BlankLayout',
35
+            menuCode: '/building',
37 36
             routes: [
38 37
               {
39 38
                 path: '/building/list',
40 39
                 name: '项目列表',
41 40
                 component: './building/List',
41
+                menuCode: '/building/list',
42 42
               },
43 43
               {
44 44
                 path: '/building/add',
45 45
                 name: '项目维护',
46 46
                 component: './building/Edit',
47
+                menuCode: '/building/add',
47 48
                 hideInMenu: true,
48 49
               },
49 50
               {
50 51
                 path: '/building/type',
51 52
                 name: '项目类型',
52 53
                 component: './building/type/index',
54
+                menuCode: '/building/type',
53 55
               },
54 56
               {
55 57
                 path: '/building/type/edi',
56 58
                 name: '项目类型编辑',
57 59
                 hideInMenu: true,
58 60
                 component: './building/type/edi',
61
+                menuCode: '/building/type/edi',
59 62
               },
60 63
               {
61 64
                 path: '/building/Developers',
62 65
                 name: '品牌开发商',
63 66
                 component: './building/Developers',
67
+                menuCode: '/building/Developers',
64 68
               },
65 69
               {
66 70
                 path: '/building/Developers/Edit',
67 71
                 name: '品牌开发商编辑',
68 72
                 hideInMenu: true,
69 73
                 component: './building/Developers/Edit',
74
+                menuCode: '/building/Developers/Edit',
70 75
               },
71 76
             ],
72 77
           },
@@ -74,52 +79,60 @@ export default [
74 79
             path: '/customer',
75 80
             name: '客户管理',
76 81
             component: '../layouts/BlankLayout',
82
+            menuCode: '/customer',
77 83
             routes: [
78 84
               {
79 85
                 path: '/customer/customer/list',
80 86
                 name: '客户列表',
81 87
                 component: './customer/Customer/index',
88
+                menuCode: '/customer/customer/list',
82 89
               },
83 90
               {
84 91
                 path: '/customer/customerlist/privateCustomerDetail',
85 92
                 name: '私客详情',
86 93
                 hideInMenu: true,
87 94
                 component: './customer/Customer/PrivateCustomer/CustomerDetail',
95
+                menuCode: '/customer/customerlist/privateCustomerDetail',
88 96
               },
89 97
               {
90 98
                 path: '/customer/customer/StatusChange',
91 99
                 name: '状态变更',
92 100
                 hideInMenu: true,
93 101
                 component: './customer/Customer/StatusChange',
102
+                menuCode: '/customer/customer/StatusChange',
94 103
               },
95 104
               {
96 105
                 path: '/customer/customerlist/publicCustomerDetail',
97 106
                 name: '公客详情',
98 107
                 hideInMenu: true,
99 108
                 component: './customer/Customer/PublicCustomer/publicCustomerDetail',
109
+                menuCode: '/customer/customerlist/publicCustomerDetail',
100 110
               },
101
-
102 111
               {
103 112
                 path: '/customer/recommend/channel',
104 113
                 name: '经纪人报备',
105 114
                 component: './recommend/channel',
115
+                menuCode: '/customer/recommend/channel',
106 116
               },
107 117
               {
108 118
                 path: '/customer/recommend/channel/audit',
109 119
                 name: '到访确认',
110 120
                 hideInMenu: true,
111 121
                 component: './recommend/channel/audit',
122
+                menuCode: '/customer/recommend/channel/audit',
112 123
               },
113 124
               {
114 125
                 path: '/customer/recommend/customer',
115 126
                 name: '普通客户推荐',
116 127
                 component: './recommend/customer',
128
+                menuCode: '/customer/recommend/customer',
117 129
               },
118 130
               {
119 131
                 path: '/customer/recommend/customer/audit',
120 132
                 name: '客户审核',
121 133
                 hideInMenu: true,
122 134
                 component: './recommend/customer/audit',
135
+                menuCode: '/customer/recommend/customer/audit',
123 136
               },
124 137
             ],
125 138
           },
@@ -127,35 +140,41 @@ export default [
127 140
             path: '/Live',
128 141
             name: '视频直播',
129 142
             component: '../layouts/BlankLayout',
143
+            menuCode: '/Live',
130 144
             routes: [
131 145
               {
132 146
                 path: '/Live/LiveActivity/List',
133 147
                 name: '直播活动',
134 148
                 component: './Live/LiveActivity/List',
149
+                menuCode: '/Live/LiveActivity/List',
135 150
               },
136 151
               {
137 152
                 path: '/Live/LiveActivity/Edit',
138 153
                 name: '编辑活动',
139 154
                 hideInMenu: true,
140 155
                 component: './Live/LiveActivity/Edit',
156
+                menuCode: '/Live/LiveActivity/Edit',
141 157
               },
142 158
               {
143 159
                 path: '/Live/LiveActivity/add',
144 160
                 name: '新增活动',
145 161
                 hideInMenu: true,
146 162
                 component: './Live/LiveActivity/add',
163
+                menuCode: '/Live/LiveActivity/add',
147 164
               },
148 165
 
149 166
               {
150 167
                 path: '/Live/video/List',
151 168
                 name: '视频',
152 169
                 component: './Live/video/List',
170
+                menuCode: '/Live/video/List',
153 171
               },
154 172
               {
155 173
                 path: '/Live/video/Edit',
156 174
                 name: '编辑视频',
157 175
                 hideInMenu: true,
158 176
                 component: './Live/video/Edit',
177
+                menuCode: '/Live/video/Edit',
159 178
               },
160 179
             ],
161 180
           },
@@ -163,77 +182,90 @@ export default [
163 182
             path: '/activity',
164 183
             name: '活动管理',
165 184
             component: '../layouts/BlankLayout',
185
+            menuCode: '/activity',
166 186
             routes: [
167 187
               {
168 188
                 path: '/activity/groupRoomActivity',
169 189
                 name: '团房活动',
170 190
                 component: './activity/groupRoomActivity',
191
+                menuCode: '/activity/groupRoomActivity',
171 192
               },
172 193
               {
173 194
                 path: '/activity/groupRoomActivity/detail',
174 195
                 name: '活动详情',
175 196
                 hideInMenu: true,
176 197
                 component: './activity/groupRoomActivity/detail',
198
+                menuCode: '/activity/groupRoomActivity/detail',
177 199
               },
178 200
               {
179 201
                 path: '/activity/groupRoomActivity/edit',
180 202
                 name: '编辑活动',
181 203
                 hideInMenu: true,
182 204
                 component: './activity/groupRoomActivity/edit',
205
+                menuCode: '/activity/groupRoomActivity/edit',
183 206
               },
184 207
               {
185 208
                 path: '/activity/groupRoomActivity/registrationRecord',
186 209
                 name: '报名记录',
187 210
                 hideInMenu: true,
188 211
                 component: './activity/groupRoomActivity/registrationRecord',
212
+                menuCode: '/activity/groupRoomActivity/registrationRecord',
189 213
               },
190 214
 
191 215
               {
192 216
                 path: '/activity/lookHouseActivity',
193 217
                 name: '一键带看',
194 218
                 component: './activity/lookHouseActivity',
219
+                menuCode: '/activity/lookHouseActivity',
195 220
               },
196 221
               {
197 222
                 path: '/activity/lookHouseActivity/detail',
198 223
                 name: '活动详情',
199 224
                 hideInMenu: true,
200 225
                 component: './activity/lookHouseActivity/detail',
226
+                menuCode: '/activity/lookHouseActivity/detail',
201 227
               },
202 228
               {
203 229
                 path: '/activity/lookHouseActivity/edit',
204 230
                 name: '编辑活动',
205 231
                 hideInMenu: true,
206 232
                 component: './activity/lookHouseActivity/edit',
233
+                menuCode: '/activity/lookHouseActivity/edit',
207 234
               },
208 235
               {
209 236
                 path: '/activity/lookHouseActivity/registrationRecord',
210 237
                 name: '报名记录',
211 238
                 hideInMenu: true,
212 239
                 component: './activity/lookHouseActivity/registrationRecord',
240
+                menuCode: '/activity/lookHouseActivity/registrationRecord',
213 241
               },
214 242
 
215 243
               {
216 244
                 path: '/activity/SignupActivity',
217 245
                 name: '报名活动',
218 246
                 component: './activity/SignupActivity',
247
+                menuCode: '/activity/SignupActivity',
219 248
               },
220 249
               {
221 250
                 path: '/activity/SignupActivity/detail',
222 251
                 name: '活动详情',
223 252
                 hideInMenu: true,
224 253
                 component: './activity/SignupActivity/detail',
254
+                menuCode: '/activity/SignupActivity/detail',
225 255
               },
226 256
               {
227 257
                 path: '/activity/SignupActivity/edit',
228 258
                 name: '编辑活动',
229 259
                 hideInMenu: true,
230 260
                 component: './activity/SignupActivity/edit',
261
+                menuCode: '/activity/SignupActivity/edit',
231 262
               },
232 263
               {
233 264
                 path: '/activity/SignupActivity/registrationRecord',
234 265
                 name: '报名记录',
235 266
                 hideInMenu: true,
236 267
                 component: './activity/SignupActivity/registrationRecord',
268
+                menuCode: '/activity/SignupActivity/registrationRecord',
237 269
               },
238 270
             ],
239 271
           },
@@ -241,51 +273,60 @@ export default [
241 273
             path: '/news',
242 274
             name: '资讯管理',
243 275
             component: '../layouts/BlankLayout',
276
+            menuCode: '/news',
244 277
             routes: [
245 278
               {
246 279
                 path: '/news/type/NewsType',
247 280
                 name: '资讯类型',
248 281
                 component: './news/type/NewsType',
282
+                menuCode: '/news/type/NewsType',
249 283
               },
250 284
               {
251 285
                 path: '/news/type/editNews',
252 286
                 name: '编辑资讯类型',
253 287
                 hideInMenu: true,
254 288
                 component: './news/type/editNews',
289
+                menuCode: '/news/type/editNews',
255 290
               },
256 291
               {
257 292
                 path: '/news/list/List',
258 293
                 name: '资讯列表',
259 294
                 component: './news/list/List',
295
+                menuCode: '/news/list/List',
260 296
               },
261 297
               {
262 298
                 path: '/news/list/Edit',
263 299
                 name: '编辑资讯',
264 300
                 hideInMenu: true,
265 301
                 component: './news/list/Edit',
302
+                menuCode: '/news/list/Edit',
266 303
               },
267 304
               //+购房百科
268 305
               {
269 306
                 path: '/news/Sellhouse/index',
270 307
                 name: '购房百科',
271 308
                 component: './system/Sellhouse/index',
309
+                menuCode: '/news/Sellhouse/index',
272 310
               },
273 311
               {
274 312
                 path: '/news/houseTypes/index',
275 313
                 name: '购房百百科类型',
276 314
                 component: './system/Sellhouse/houseTypes/index',
315
+                menuCode: '/news/houseTypes/index',
277 316
               },
278 317
               {
279 318
                 path: '/news/Sellhouse/Edit',
280 319
                 name: '编辑购房百科',
281 320
                 hideInMenu: true,
282 321
                 component: './system/Sellhouse/Edit',
322
+                menuCode: '/news/Sellhouse/Edit',
283 323
               },
284 324
               {
285 325
                 path: '/news/Sellhouse/houseTypes/Newindex',
286 326
                 name: '编辑购房百百科类型',
287 327
                 hideInMenu: true,
288 328
                 component: './system/Sellhouse/houseTypes/Newindex',
329
+                menuCode: '/news/Sellhouse/houseTypes/Newindex',
289 330
               },
290 331
             ],
291 332
           },
@@ -293,29 +334,34 @@ export default [
293 334
             path: '/channel',
294 335
             name: '渠道管理',
295 336
             component: '../layouts/BlankLayout',
337
+            menuCode: '/channel',
296 338
             routes: [
297 339
               {
298 340
                 path: '/channel/Channel/List',
299 341
                 name: '渠道管理',
300 342
                 component: './channel/Channel/List',
343
+                menuCode: '/channel/Channel/List',
301 344
               },
302 345
               {
303 346
                 path: '/channel/Channel/Edit',
304 347
                 name: '编辑渠道',
305 348
                 hideInMenu: true,
306 349
                 component: './channel/Channel/Edit',
350
+                menuCode: '/channel/Channel/Edit',
307 351
               },
308 352
               {
309 353
                 path: '/channel/Agent/List',
310 354
                 name: '经纪人',
311 355
                 hideInMenu: true,
312 356
                 component: './channel/Agent/List',
357
+                menuCode: '/channel/Agent/List',
313 358
               },
314 359
               {
315 360
                 path: '/channel/brokerList',
316 361
                 name: '经纪人',
317 362
                 hideInMenu: true,
318 363
                 component: './channel/brokerList',
364
+                menuCode: '/channel/brokerList',
319 365
               },
320 366
 
321 367
               {
@@ -323,6 +369,7 @@ export default [
323 369
                 name: '渠道推荐',
324 370
                 hideInMenu: true,
325 371
                 component: './channel/recommendClients',
372
+                menuCode: '/channel/recommendClients',
326 373
               },
327 374
 
328 375
               // {
@@ -335,6 +382,7 @@ export default [
335 382
                 path: '/channel/independentList',
336 383
                 name: '经纪人',
337 384
                 component: './channel/independentList/index',
385
+                menuCode: '/channel/independentList',
338 386
               },
339 387
               // {
340 388
               //   path: '/channel/newCustomer',
@@ -367,63 +415,74 @@ export default [
367 415
             path: '/findRoom',
368 416
             name: '需求反馈',
369 417
             component: '../layouts/BlankLayout',
418
+            menuCode: '/findRoom',
370 419
             routes: [
371 420
               {
372 421
                 path: '/findRoom/buyRoom',
373 422
                 name: '找房需求',
374 423
                 component: './findRoom/buyRoom',
424
+                menuCode: '/findRoom/buyRoom',
375 425
               },
376 426
               {
377 427
                 path: '/findRoom/buyRoom/audit',
378 428
                 name: '回访确认',
379 429
                 hideInMenu: true,
380 430
                 component: './findRoom/buyRoom/audit',
431
+                menuCode: '/findRoom/buyRoom/audit',
381 432
               },
382 433
 
383 434
               {
384 435
                 path: '/findRoom/rent',
385 436
                 name: '租房需求',
386 437
                 component: './findRoom/rent',
438
+                menuCode: '/findRoom/rent',
387 439
               },
388 440
               {
389 441
                 path: '/findRoom/rent/audit',
390 442
                 name: '回访确认',
391 443
                 hideInMenu: true,
392 444
                 component: './findRoom/rent/audit',
445
+                menuCode: '/findRoom/rent/audit',
393 446
               },
394 447
 
395 448
               {
396 449
                 path: '/findRoom/overseas',
397 450
                 name: '海外需求',
398 451
                 component: './findRoom/overseas',
452
+                menuCode: '/findRoom/overseas',
399 453
               },
400 454
               {
401 455
                 path: '/findRoom/overseas/audit',
402 456
                 name: '回访确认',
403 457
                 hideInMenu: true,
404 458
                 component: './findRoom/overseas/audit',
459
+                menuCode: '/findRoom/overseas/audit',
405 460
               },
406 461
 
407 462
               {
408 463
                 path: '/findRoom/addedValueService',
409 464
                 name: '增值服务',
410 465
                 component: './findRoom/addedValueService',
466
+                menuCode: '/findRoom/addedValueService',
411 467
               },
412 468
               {
413 469
                 path: '/findRoom/addedValueService/audit',
414 470
                 name: '回访确认',
415 471
                 hideInMenu: true,
416 472
                 component: './findRoom/addedValueService/audit',
473
+                menuCode: '/findRoom/addedValueService/audit',
417 474
               },
418 475
               {
419 476
                 path: '/findRoom/setting',
420 477
                 name: '回访设置',
421 478
                 component: './findRoom/setting',
479
+                menuCode: '/findRoom/setting',
422 480
               },
423 481
               {
424 482
                 path: '/findRoom/messageList',
425 483
                 name: '客户留言',
426 484
                 component: './system/messageList',
485
+                menuCode: '/findRoom/messageList',
427 486
               },
428 487
             ],
429 488
           },
@@ -432,17 +491,20 @@ export default [
432 491
             path: '/course',
433 492
             name: '我的课堂',
434 493
             component: '../layouts/BlankLayout',
494
+            menuCode: '/course',
435 495
             routes: [
436 496
               {
437 497
                 path: '/course/List',
438 498
                 name: '课程管理',
439 499
                 component: './course/List',
500
+                menuCode: '/course/List',
440 501
               },
441 502
               {
442 503
                 path: '/course/Edit',
443 504
                 name: '课程编辑',
444 505
                 hideInMenu: true,
445 506
                 component: './course/Edit',
507
+                menuCode: '/course/Edit',
446 508
               },
447 509
             ],
448 510
           },
@@ -450,39 +512,46 @@ export default [
450 512
             path: '/carouselFigure',
451 513
             name: '资源位管理',
452 514
             component: '../layouts/BlankLayout',
515
+            menuCode: '/carouselFigure',
453 516
             routes: [
454 517
               {
455 518
                 path: '/carouselFigure/carouselFigureList',
456 519
                 name: '轮播图',
457 520
                 component: './carouselFigure/carouselFigureList',
521
+                menuCode: '/carouselFigure/carouselFigureList',
458 522
               },
459 523
               {
460 524
                 path: '/carouselFigure/editCarousel',
461 525
                 name: '轮播图编辑',
462 526
                 hideInMenu: true,
463 527
                 component: './carouselFigure/editCarousel',
528
+                menuCode: '/carouselFigure/editCarousel',
464 529
               },
465 530
               {
466 531
                 path: '/carouselFigure/advertisingList',
467 532
                 name: '开屏广告',
468 533
                 component: './carouselFigure/advertisingList',
534
+                menuCode: '/carouselFigure/advertisingList',
469 535
               },
470 536
               {
471 537
                 path: '/carouselFigure/editAdvertising',
472 538
                 name: '开屏广告编辑',
473 539
                 hideInMenu: true,
474 540
                 component: './carouselFigure/editAdvertising',
541
+                menuCode: '/carouselFigure/editAdvertising',
475 542
               },
476 543
               {
477 544
                 path: '/carouselFigure/customImg/list',
478 545
                 name: '其他',
479 546
                 component: './carouselFigure/customImg/list',
547
+                menuCode: '/carouselFigure/customImg/list',
480 548
               },
481 549
               {
482 550
                 path: '/carouselFigure/customImg/edit',
483 551
                 name: '其他编辑',
484 552
                 hideInMenu: true,
485 553
                 component: './carouselFigure/customImg/edit',
554
+                menuCode: '/carouselFigure/customImg/edit',
486 555
               },
487 556
             ],
488 557
           },
@@ -491,38 +560,45 @@ export default [
491 560
             path: '/system',
492 561
             name: '系统管理',
493 562
             component: '../layouts/BlankLayout',
563
+            menuCode: '/system',
494 564
             routes: [
495 565
               {
496 566
                 path: '/system/intention',
497 567
                 name: '意向值',
498 568
                 component: './system/intention',
569
+                menuCode: '/system/intention',
499 570
               },
500 571
               {
501 572
                 path: '/system/Staff/List',
502 573
                 name: '员工列表',
503 574
                 component: './staff/Staff/List',
575
+                menuCode: '/system/Staff/List',
504 576
               },
505 577
               {
506 578
                 path: '/system/Staff/Edit',
507 579
                 name: '编辑员工',
508 580
                 hideInMenu: true,
509 581
                 component: './staff/Staff/Edit',
582
+                menuCode: '/system/Staff/Edit',
510 583
               },
511 584
               {
512 585
                 path: '/system/Role/List',
513 586
                 name: '角色管理',
514 587
                 component: './staff/Role/List',
588
+                menuCode: '/system/Role/List',
515 589
               },
516 590
               {
517 591
                 path: '/system/Role/Edit',
518 592
                 name: '编辑角色',
519 593
                 hideInMenu: true,
520 594
                 component: './staff/Role/Edit',
595
+                menuCode: '/system/Role/Edit',
521 596
               },
522 597
               {
523 598
                 path: '/system/Organization/List',
524 599
                 name: '组织架构',
525 600
                 component: './staff/Organization',
601
+                menuCode: '/system/Organization/List',
526 602
               },
527 603
             ],
528 604
           },

+ 0
- 1
src/pages/staff/Role/Edit/index.jsx 查看文件

@@ -6,7 +6,6 @@ import AuthButton from '@/components/AuthButton';
6 6
 import request from '@/utils/request';
7 7
 import router from 'umi/router';
8 8
 import apis from '@/services/apis';
9
-import AuthButton from '@/components/AuthButton';
10 9
 
11 10
 const { TextArea } = Input;
12 11