ソースを参照

Merge branch 'master' of http://git.ycjcjy.com/marketing/pc-admin into master

zlisen 3 年 前
コミット
7890b95fc9
共有3 個のファイルを変更した32 個の追加403 個の削除を含む
  1. 2
    2
      config/proxy.js
  2. 28
    399
      config/routes.js
  3. 2
    2
      src/utils/request.js

+ 2
- 2
config/proxy.js ファイルの表示

@@ -8,8 +8,8 @@
8 8
 export default {
9 9
   dev: {
10 10
     '/api/': {
11
-      target: 'https://xlk.njyz.tech/',
12
-      // target: 'http://localhost:8081/',
11
+      // target: 'https://xlk.njyz.tech/',
12
+      target: 'http://localhost:8081/',
13 13
       // target: 'https://xlj.newlandsh.com/',
14 14
       changeOrigin: true,
15 15
       pathRewrite: {

+ 28
- 399
config/routes.js ファイルの表示

@@ -86,29 +86,12 @@ export default [
86 86
                 hideInMenu: true,
87 87
                 component: './customer/Customer/PrivateCustomer/CustomerDetail',
88 88
               },
89
-              // {
90
-              //   path: '/customer/customerlist/list',
91
-              //   name: '客户列表old',
92
-              //   component: './customer/customerlist/index copy.jsx',
93
-              // },
94
-              // {
95
-              //   path: '/customer/customerlist/customerDetail',
96
-              //   name: '私客详情',
97
-              //   hideInMenu: true,
98
-              //   component: './customer/customerlist/customerDetail',
99
-              // },
100 89
               {
101 90
                 path: '/customer/customer/StatusChange',
102 91
                 name: '状态变更',
103 92
                 hideInMenu: true,
104 93
                 component: './customer/Customer/StatusChange',
105 94
               },
106
-
107
-              // {
108
-              //   path: '/customer/drift/list',
109
-              //   name: '游客列表',
110
-              //   component: './customer/drift/index',
111
-              // },
112 95
               {
113 96
                 path: '/customer/customerlist/publicCustomerDetail',
114 97
                 name: '公客详情',
@@ -140,78 +123,6 @@ export default [
140 123
               },
141 124
             ],
142 125
           },
143
-
144
-          // {
145
-          //   path: '/recommend',
146
-          //   name: '推荐客户',
147
-          //   component: '../layouts/BlankLayout',
148
-          //   routes: [
149
-          //     {
150
-          //       path: '/recommend/customer',
151
-          //       name: '客户推荐',
152
-          //       component: './recommend/customer',
153
-          //     },
154
-          //     {
155
-          //       path: '/recommend/customer/audit',
156
-          //       name: '客户审核',
157
-          //       hideInMenu: true,
158
-          //       component: './recommend/customer/audit',
159
-          //     },
160
-
161
-          //     {
162
-          //       path: '/recommend/channel',
163
-          //       name: '经纪人推荐',
164
-          //       component: './recommend/channel',
165
-          //     },
166
-          //     {
167
-          //       path: '/recommend/channel/audit',
168
-          //       name: '客户审核',
169
-          //       hideInMenu: true,
170
-          //       component: './recommend/channel/audit',
171
-          //     },
172
-          //   ],
173
-          // },
174
-          {
175
-            path: '/staff',
176
-            name: '员工管理',
177
-            component: '../layouts/BlankLayout',
178
-            routes: [
179
-              {
180
-                path: '/staff/Staff/List',
181
-                name: '员工列表',
182
-                component: './staff/Staff/List',
183
-              },
184
-              {
185
-                path: '/staff/Staff/Edit',
186
-                name: '编辑员工',
187
-                hideInMenu: true,
188
-                component: './staff/Staff/Edit',
189
-              },
190
-              {
191
-                path: '/staff/Role/List',
192
-                name: '角色管理',
193
-                component: './staff/Role/List',
194
-              },
195
-              {
196
-                path: '/staff/Role/Edit',
197
-                name: '编辑角色',
198
-                hideInMenu: true,
199
-                component: './staff/Role/Edit',
200
-              },
201
-              {
202
-                path: '/staff/Organization/List',
203
-                name: '组织架构',
204
-                component: './staff/Organization',
205
-              },
206
-
207
-              // {
208
-              //   path: '/staff/list/distribution',
209
-              //   name: '分配归属',
210
-              //   hideInMenu: true,
211
-              //   component: './staff/list/distribution',
212
-              // },
213
-            ],
214
-          },
215 126
           {
216 127
             path: '/Live',
217 128
             name: '视频直播',
@@ -246,42 +157,6 @@ export default [
246 157
                 hideInMenu: true,
247 158
                 component: './Live/video/Edit',
248 159
               },
249
-              // {
250
-              //   path: '/Live/video/add',
251
-              //   name: '新增活动',
252
-              //   hideInMenu: true,
253
-              //   component: './Live/video/add',
254
-              // },
255
-
256
-              // {
257
-              //   path: '/staff/Staff/Edit',
258
-              //   name: '编辑员工',
259
-              //   hideInMenu: true,
260
-              //   component: './staff/Staff/Edit',
261
-              // },
262
-              // {
263
-              //   path: '/staff/Role/List',
264
-              //   name: '角色管理',
265
-              //   component: './staff/Role/List',
266
-              // },
267
-              // {
268
-              //   path: '/staff/Role/Edit',
269
-              //   name: '编辑角色',
270
-              //   hideInMenu: true,
271
-              //   component: './staff/Role/Edit',
272
-              // },
273
-              // {
274
-              //   path: '/staff/Organization/List',
275
-              //   name: '组织架构',
276
-              //   component: './staff/Organization',
277
-              // },
278
-
279
-              // {
280
-              //   path: '/staff/list/distribution',
281
-              //   name: '分配归属',
282
-              //   hideInMenu: true,
283
-              //   component: './staff/list/distribution',
284
-              // },
285 160
             ],
286 161
           },
287 162
           {
@@ -360,30 +235,6 @@ export default [
360 235
                 hideInMenu: true,
361 236
                 component: './activity/SignupActivity/registrationRecord',
362 237
               },
363
-
364
-              // {
365
-              //   path: '/activity/SignupActivity',
366
-              //   name: '报名活动',
367
-              //   component: './activity/SignupActivity',
368
-              // },
369
-              // {
370
-              //   path: '/activity/SignupActivity/detail',
371
-              //   name: '活动详情',
372
-              //   hideInMenu: true,
373
-              //   component: './activity/SignupActivity/detail',
374
-              // },
375
-              // {
376
-              //   path: '/activity/SignupActivity/edit',
377
-              //   name: '编辑活动',
378
-              //   hideInMenu: true,
379
-              //   component: './activity/SignupActivity/edit',
380
-              // },
381
-              // {
382
-              //   path: '/activity/SignupActivity/registrationRecord',
383
-              //   name: '报名记录',
384
-              //   hideInMenu: true,
385
-              //   component: './activity/SignupActivity/registrationRecord',
386
-              // },
387 238
             ],
388 239
           },
389 240
           {
@@ -436,18 +287,6 @@ export default [
436 287
                 hideInMenu: true,
437 288
                 component: './system/Sellhouse/houseTypes/Newindex',
438 289
               },
439
-              // {
440
-              //   path: '/news/list/NewsList',
441
-              //   name: '资讯列表',
442
-              //   component: './news/list/NewsList',
443
-              // },
444
-
445
-              // {
446
-              //   path: '/news/list/editNewsList',
447
-              //   name: '编辑资讯',
448
-              //   hideInMenu: true,
449
-              //   component: './news/list/editNewsList',
450
-              // },
451 290
             ],
452 291
           },
453 292
           {
@@ -472,24 +311,6 @@ export default [
472 311
                 hideInMenu: true,
473 312
                 component: './channel/Agent/List',
474 313
               },
475
-
476
-              // {
477
-              //   path: '/channel/channelList',
478
-              //   name: '渠道管理',
479
-              //   component: './channel/channelList',
480
-              // },
481
-              {
482
-                path: '/channel/addChannel',
483
-                name: '添加渠道',
484
-                hideInMenu: true,
485
-                component: './channel/addChannel',
486
-              },
487
-              {
488
-                path: '/channel/editChannel',
489
-                name: '编辑渠道',
490
-                hideInMenu: true,
491
-                component: './channel/editChannel',
492
-              },
493 314
               {
494 315
                 path: '/channel/brokerList',
495 316
                 name: '经纪人',
@@ -604,12 +425,6 @@ export default [
604 425
                 name: '客户留言',
605 426
                 component: './system/messageList',
606 427
               },
607
-              // {
608
-              //   path: '/home/recommend/auditcopy',
609
-              //   name: '回访确认',
610
-              //   hideInMenu: true,
611
-              //   component: './home/Recommend/auditCopy',
612
-              // },
613 428
             ],
614 429
           },
615 430
           {
@@ -658,17 +473,6 @@ export default [
658 473
                 hideInMenu: true,
659 474
                 component: './carouselFigure/editAdvertising',
660 475
               },
661
-              // {
662
-              //   path: '/carouselFigure/propagandaList',
663
-              //   name: '宣传位',
664
-              //   component: './carouselFigure/propagandaList',
665
-              // },
666
-              // {
667
-              //   path: '/carouselFigure/propaganda',
668
-              //   name: '宣传位编辑',
669
-              //   hideInMenu: true,
670
-              //   component: './carouselFigure/propaganda',
671
-              // },
672 476
               {
673 477
                 path: '/carouselFigure/customImg/list',
674 478
                 name: '其他',
@@ -683,65 +487,42 @@ export default [
683 487
             ],
684 488
           },
685 489
           {
686
-            path: '/system',
490
+            path: '/',
687 491
             name: '系统管理',
688 492
             component: '../layouts/BlankLayout',
689 493
             routes: [
690
-              // {
691
-              //   path: '/system/messageList',
692
-              //   name: '客户留言',
693
-              //   component: './system/messageList',
694
-              // },
695
-              // {
696
-              //   path: '/system/report',
697
-              //   name: '报表数据',
698
-              //   component: './system/report',
699
-              // },
700 494
               {
701 495
                 path: '/system/intention',
702 496
                 name: '意向值',
703 497
                 component: './system/intention',
704 498
               },
705
-
706
-              // {
707
-              //   path: '/system/housingPolicy/list',
708
-              //   name: '购房百科',
709
-              //   component: './system/housingPolicy/List',
710
-              // },
711
-              // {
712
-              //   path: '/system/housingPolicy/edit',
713
-              //   name: '购房百科编辑',
714
-              //   hideInMenu: true,
715
-              //   component: './system/housingPolicy/Edit',
716
-              // },
717
-              // {
718
-              //   path: '/system/editPolicy',
719
-              //   name: '购房政策编辑',
720
-              //   hideInMenu: true,
721
-              //   component: './system/editPolicy',
722
-              // },
723
-              // {
724
-              //   path: '/system/document/list',
725
-              //   name: '客户资料',
726
-              //   component: './system/document/list',
727
-              // },
728
-              // {
729
-              //   path: '/system/document/audit',
730
-              //   name: '客户资料审核',
731
-              //   hideInMenu: true,
732
-              //   component: './system/document/audit',
733
-              // },
734
-              // {
735
-              //   path: '/system/MiniappTheme',
736
-              //   name: '小程序主题',
737
-              //   component: './system/MiniappTheme',
738
-              // },
739
-              // {
740
-              //   path: '/system/MiniappTheme/Detail',
741
-              //   name: '小程序主题编辑',
742
-              //   component: './system/MiniappTheme/Detail',
743
-              //   hideInMenu: true,
744
-              // },
499
+              {
500
+                path: '/staff/Staff/List',
501
+                name: '员工列表',
502
+                component: './staff/Staff/List',
503
+              },
504
+              {
505
+                path: '/staff/Staff/Edit',
506
+                name: '编辑员工',
507
+                hideInMenu: true,
508
+                component: './staff/Staff/Edit',
509
+              },
510
+              {
511
+                path: '/staff/Role/List',
512
+                name: '角色管理',
513
+                component: './staff/Role/List',
514
+              },
515
+              {
516
+                path: '/staff/Role/Edit',
517
+                name: '编辑角色',
518
+                hideInMenu: true,
519
+                component: './staff/Role/Edit',
520
+              },
521
+              {
522
+                path: '/staff/Organization/List',
523
+                name: '组织架构',
524
+                component: './staff/Organization',
525
+              },
745 526
             ],
746 527
           },
747 528
           {
@@ -762,158 +543,6 @@ export default [
762 543
               },
763 544
             ],
764 545
           },
765
-          // {
766
-          //   path: '/statistical',
767
-          //   name: '数据统计',
768
-          //   component: '../layouts/BlankLayout',
769
-          //   routes: [
770
-          //     {
771
-          //       path: '/statistical',
772
-          //       redirect: '/statistical/monitor',
773
-          //     },
774
-          //     {
775
-          //       path: '/statistical/monitor',
776
-          //       name: '数据报表',
777
-          //       component: './statistical/Monitor',
778
-          //     },
779
-          //     {
780
-          //       path: '/statistical/activity',
781
-          //       name: '活动统计',
782
-          //       component: './statistical/activity',
783
-          //     },
784
-          //     {
785
-          //       path: '/statistical/activity/detail',
786
-          //       name: '查看详情',
787
-          //       hideInMenu: true,
788
-          //       component: './statistical/activity/detail',
789
-          //     },
790
-          //     {
791
-          //       path: '/statistical/activity/sharePersonNum',
792
-          //       name: '分享统计',
793
-          //       hideInMenu: true,
794
-          //       component: './statistical/activity/sharePersonNum',
795
-          //     },
796
-          //     {
797
-          //       path: '/statistical/activity/shareNum',
798
-          //       name: '分享统计',
799
-          //       hideInMenu: true,
800
-          //       component: './statistical/activity/shareNum',
801
-          //     },
802
-          //     {
803
-          //       path: '/statistical/activity/addRegistNum',
804
-          //       name: '分享统计',
805
-          //       hideInMenu: true,
806
-          //       component: './statistical/activity/addRegistNum',
807
-          //     },
808
-          //     {
809
-          //       path: '/statistical/activity/visitNum',
810
-          //       name: '访问统计',
811
-          //       hideInMenu: true,
812
-          //       component: './statistical/activity/visitNum',
813
-          //     },
814
-          //     {
815
-          //       path: '/statistical/activity/visitPersonNum',
816
-          //       name: '访问统计',
817
-          //       hideInMenu: true,
818
-          //       component: './statistical/activity/visitPersonNum',
819
-          //     },
820
-          //     {
821
-          //       path: '/statistical/building',
822
-          //       name: '项目统计',
823
-          //       component: './statistical/building',
824
-          //     },
825
-          //     {
826
-          //       path: '/statistical/consultant',
827
-          //       name: '置业顾问KPI',
828
-          //       component: './statistical/consultant',
829
-          //     },
830
-
831
-          //     {
832
-          //       path: '/statistical/userSource',
833
-          //       name: '用户来源',
834
-          //       component: './indexEcharts/userSource',
835
-          //       hideInMenu: true,
836
-          //     },
837
-          //     {
838
-          //       path: '/statistical/newUsers',
839
-          //       name: '新增用户',
840
-          //       component: './indexEcharts/newUsers',
841
-          //       hideInMenu: true,
842
-          //     },
843
-          //     {
844
-          //       path: '/statistical/userBehavior',
845
-          //       name: '用户行为',
846
-          //       component: './indexEcharts/userBehavior',
847
-          //       hideInMenu: true,
848
-          //     },
849
-          //     {
850
-          //       path: '/statistical/building/detail',
851
-          //       name: '项目统计详情',
852
-          //       component: './statistical/building/detail',
853
-          //       hideInMenu: true,
854
-          //     },
855
-          //     {
856
-          //       path: '/statistical/consultant/table',
857
-          //       name: '客户总计',
858
-          //       hideInMenu: true,
859
-          //       component: './statistical/consultant/table',
860
-          //     },
861
-          //     {
862
-          //       path: '/statistical/consultant/newPersons',
863
-          //       name: '新增客户',
864
-          //       hideInMenu: true,
865
-          //       component: './statistical/consultant/table',
866
-          //     },
867
-          //     {
868
-          //       path: '/statistical/consultant/sharetable',
869
-          //       name: '分享次数',
870
-          //       hideInMenu: true,
871
-          //       component: './statistical/consultant/sharetable',
872
-          //     },
873
-          //     {
874
-          //       path: '/statistical/consultant/visitPersons',
875
-          //       name: '分享访问人数',
876
-          //       hideInMenu: true,
877
-          //       component: './statistical/consultant/visitPersons',
878
-          //     },
879
-          //     {
880
-          //       path: '/statistical/consultant/visitNum',
881
-          //       name: '分享访问次数',
882
-          //       hideInMenu: true,
883
-          //       component: './statistical/consultant/visitNum',
884
-          //     },
885
-          //     {
886
-          //       path: '/statistical/consultant/sharePersons',
887
-          //       name: '分享拓客',
888
-          //       hideInMenu: true,
889
-          //       component: './statistical/consultant/table',
890
-          //     },
891
-          //     {
892
-          //       path: '/statistical/consultant/homePagePersons',
893
-          //       name: '主页访问人数',
894
-          //       hideInMenu: true,
895
-          //       component: './statistical/consultant/homePagePersons',
896
-          //     },
897
-          //     {
898
-          //       path: '/statistical/consultant/homepageNum',
899
-          //       name: '主页访问次数',
900
-          //       hideInMenu: true,
901
-          //       component: './statistical/consultant/table',
902
-          //     },
903
-          //     {
904
-          //       path: '/statistical/consultant/chatPersons',
905
-          //       name: '咨询数',
906
-          //       hideInMenu: true,
907
-          //       component: './statistical/consultant/table',
908
-          //     },
909
-          //     {
910
-          //       path: '/statistical/consultant/favorNum',
911
-          //       name: '点赞数',
912
-          //       hideInMenu: true,
913
-          //       component: './statistical/consultant/table',
914
-          //     },
915
-          //   ],
916
-          // },
917 546
           {
918 547
             component: './404',
919 548
           },

+ 2
- 2
src/utils/request.js ファイルの表示

@@ -46,8 +46,8 @@ request.interceptors.request.use((url, options) => {
46 46
 
47 47
   return (
48 48
     {
49
-      // url: 'https://xlk.njyz.tech' + apiURL,
50
-      url: apiURL,
49
+      url: 'https://xlk.njyz.tech' + apiURL,
50
+      // url: apiURL,
51 51
       options: {
52 52
         ...opts,
53 53
         headers: {