梁展鹏 vor 3 Jahren
Ursprung
Commit
7828296aee
1 geänderte Dateien mit 122 neuen und 181 gelöschten Zeilen
  1. 122 181
      src/router/index.js

+ 122 - 181
src/router/index.js

@@ -101,91 +101,21 @@ export const constantRoutes = [
   },
 
   {
-    path: '/financialManagement',
-    component: Layout,
-    redirect: '/financialManagement/OrderManagement',
-    name: '财务管理',
-    meta: {
-      title: '财务管理',
-      icon: 'el-icon-s-help'
-    },
-    children: [
-      {
-        path: 'OrderManagement',
-        name: '订单列表',
-        component: () =>
-          import('@/views/financialManagement/orderManagement/index'),
-        meta: {
-          title: '订单列表'
-          // icon: 'table'
-        }
-      },
-      // {
-      //   path: 'FundDetail',
-      //   name: '资金明细',
-      //   component: () => import('@/views/financialManagement/fundDetail/index'),
-      //   meta: {
-      //     title: '资金明细'
-      //     // icon: 'tree'
-      //   }
-      // },
-      {
-        path: 'CashDetail',
-        name: '用户资金明细',
-        component: () => import('@/views/financialManagement/cashDetail/index'),
-        meta: {
-          title: '用户资金明细'
-          // icon: 'tree'
-        }
-      }
-    ]
-  },
-
-  {
-    path: '/baseManagement',
+    path: '/photographerManagement',
     component: Layout,
-    redirect: '/baseManagement/BannerManagement',
-    name: '基础管理',
+    redirect: '/photographerManagement/PhotographerVerify',
+    name: '摄影师',
     meta: {
-      title: '基础管理',
+      title: '摄影师',
       icon: 'el-icon-s-help'
     },
     children: [
       {
-        path: 'TrendManagement',
-        name: '热搜词管理',
-        component: () => import('@/views/baseManagement/trending/index'),
-        meta: {
-          title: '热搜词管理'
-          // icon: 'tree'
-        }
-      },
-      {
-        path: 'BannerManagement',
-        name: 'Banner管理',
-        component: () =>
-          import('@/views/baseManagement/bannerManagement/index'),
-        meta: {
-          title: 'Banner管理'
-          // icon: 'table'
-        }
-      },
-      {
-        path: 'InfoManagement',
-        name: '资讯管理',
-        component: () => import('@/views/baseManagement/infoManagement/index'),
-        meta: {
-          title: '资讯管理'
-          // icon: 'tree'
-        }
-      },
-      {
-        path: 'ProblemFeedbackManagement',
-        name: '问题反馈管理',
-        component: () =>
-          import('@/views/baseManagement/problemFeedbackManagement/index'),
+        path: 'PhotoVerify',
+        name: '照片管理',
+        component: () => import('@/views/photographerManagement/photoVerify/index'),
         meta: {
-          title: '问题反馈管理'
+          title: '照片管理'
           // icon: 'tree'
         }
       }
@@ -203,16 +133,6 @@ export const constantRoutes = [
     },
     children: [
       {
-        path: 'ImageGoodsManagement',
-        name: '照片商品管理',
-        component: () =>
-          import('@/views/photoManagement/imageGoodsManagement/index'),
-        meta: {
-          title: '照片商品管理'
-          // icon: 'table'
-        }
-      },
-      {
         path: 'EventsList',
         name: '活动列表',
         component: () => import('@/views/photoManagement/eventsList/index'),
@@ -222,10 +142,18 @@ export const constantRoutes = [
         }
       },
       {
+        path: 'ImageGoodsManagement',
+        name: '照片商品管理',
+        component: () => import('@/views/photoManagement/imageGoodsManagement/index'),
+        meta: {
+          title: '照片商品管理'
+          // icon: 'table'
+        }
+      },
+      {
         path: 'PhotoVerifyManagement',
         name: '上传照片管理',
-        component: () =>
-          import('@/views/photoManagement/photoVerifyManagement/index'),
+        component: () => import('@/views/photoManagement/photoVerifyManagement/index'),
         meta: {
           title: '上传照片管理'
           // icon: 'tree'
@@ -235,48 +163,33 @@ export const constantRoutes = [
   },
 
   {
-    path: '/photographerManagement',
+    path: '/certification-management',
     component: Layout,
-    redirect: '/photographerManagement/PhotographerVerify',
-    name: '摄影师管理',
+    redirect: '/certification-management/PhotographerVerify',
+    name: '认证管理',
     meta: {
-      title: '摄影师管理',
+      title: '认证管理',
       icon: 'el-icon-s-help'
     },
     children: [
       {
         path: 'PhotographerVerify',
         name: '摄影师审核',
-        component: () =>
-          import('@/views/photographerManagement/photographerVerify/index'),
+        component: () => import('@/views/photographerManagement/photographerVerify/index'),
         meta: {
           title: '摄影师审核'
           // icon: 'table'
         }
       },
       {
-        path: 'PhotoVerify',
-        name: '照片管理',
-        component: () =>
-          import('@/views/photographerManagement/photoVerify/index'),
+        path: 'SceneVerify',
+        name: '场景审核',
+        component: () => import('@/views/sceneManagement/sceneVerify/index'),
         meta: {
-          title: '照片管理'
+          title: '场景审核'
           // icon: 'tree'
         }
-      }
-    ]
-  },
-
-  {
-    path: '/sceneManagement',
-    component: Layout,
-    redirect: '/sceneManagement/SceneList',
-    name: '场景管理',
-    meta: {
-      title: '场景管理',
-      icon: 'el-icon-s-help'
-    },
-    children: [
+      },
       {
         path: 'SceneList',
         name: '场景列表',
@@ -285,15 +198,6 @@ export const constantRoutes = [
           title: '场景列表'
           // icon: 'table'
         }
-      },
-      {
-        path: 'SceneVerify',
-        name: '场景审核',
-        component: () => import('@/views/sceneManagement/sceneVerify/index'),
-        meta: {
-          title: '场景审核'
-          // icon: 'tree'
-        }
       }
     ]
   },
@@ -330,6 +234,37 @@ export const constantRoutes = [
   },
 
   {
+    path: '/financialManagement',
+    component: Layout,
+    redirect: '/financialManagement/OrderManagement',
+    name: '财务管理',
+    meta: {
+      title: '财务管理',
+      icon: 'el-icon-s-help'
+    },
+    children: [
+      {
+        path: 'OrderManagement',
+        name: '订单列表',
+        component: () => import('@/views/financialManagement/orderManagement/index'),
+        meta: {
+          title: '订单列表'
+          // icon: 'table'
+        }
+      },
+      {
+        path: 'CashDetail',
+        name: '用户资金明细',
+        component: () => import('@/views/financialManagement/cashDetail/index'),
+        meta: {
+          title: '用户资金明细'
+          // icon: 'tree'
+        }
+      }
+    ]
+  },
+
+  {
     path: '/pointsManagement',
     component: Layout,
     redirect: '/pointsManagement/PointsDetail',
@@ -361,30 +296,48 @@ export const constantRoutes = [
   },
 
   {
-    path: '/helpInfo',
+    path: '/baseManagement',
     component: Layout,
-    redirect: '/helpInfo/IssueType',
-    name: '帮助信息',
+    redirect: '/baseManagement/BannerManagement',
+    name: '基础管理',
     meta: {
-      title: '帮助信息',
+      title: '基础管理',
       icon: 'el-icon-s-help'
     },
     children: [
       {
-        path: 'IssueType',
-        name: '问题分类',
-        component: () => import('@/views/helpInfo/issueType/index'),
+        path: 'TrendManagement',
+        name: '热搜词管理',
+        component: () => import('@/views/baseManagement/trending/index'),
         meta: {
-          title: '问题分类'
+          title: '热搜词管理'
+          // icon: 'tree'
+        }
+      },
+      {
+        path: 'BannerManagement',
+        name: 'Banner管理',
+        component: () => import('@/views/baseManagement/bannerManagement/index'),
+        meta: {
+          title: 'Banner管理'
           // icon: 'table'
         }
       },
       {
-        path: 'Information',
-        name: '信息内容',
-        component: () => import('@/views/helpInfo/information/index'),
+        path: 'InfoManagement',
+        name: '资讯管理',
+        component: () => import('@/views/baseManagement/infoManagement/index'),
         meta: {
-          title: '信息内容'
+          title: '资讯管理'
+          // icon: 'tree'
+        }
+      },
+      {
+        path: 'ProblemFeedbackManagement',
+        name: '问题管理',
+        component: () => import('@/views/baseManagement/problemFeedbackManagement/index'),
+        meta: {
+          title: '问题管理'
           // icon: 'tree'
         }
       }
@@ -404,8 +357,7 @@ export const constantRoutes = [
       {
         path: 'AccountManagement',
         name: '账号列表',
-        component: () =>
-          import('@/views/systemManagement/accountManagement/index'),
+        component: () => import('@/views/systemManagement/accountManagement/index'),
         meta: {
           title: '账号列表'
           // icon: 'table'
@@ -414,8 +366,7 @@ export const constantRoutes = [
       {
         path: 'RoleManagement',
         name: '角色列表',
-        component: () =>
-          import('@/views/systemManagement/roleManagement/index'),
+        component: () => import('@/views/systemManagement/roleManagement/index'),
         meta: {
           title: '角色列表'
           // icon: 'tree'
@@ -424,6 +375,37 @@ export const constantRoutes = [
     ]
   },
 
+  {
+    path: '/helpInfo',
+    component: Layout,
+    redirect: '/helpInfo/IssueType',
+    name: '帮助信息',
+    meta: {
+      title: '帮助信息',
+      icon: 'el-icon-s-help'
+    },
+    children: [
+      {
+        path: 'IssueType',
+        name: '问题分类',
+        component: () => import('@/views/helpInfo/issueType/index'),
+        meta: {
+          title: '问题分类'
+          // icon: 'table'
+        }
+      },
+      {
+        path: 'Information',
+        name: '信息内容',
+        component: () => import('@/views/helpInfo/information/index'),
+        meta: {
+          title: '信息内容'
+          // icon: 'tree'
+        }
+      }
+    ]
+  },
+
   // 404 page must be placed at the end !!!
   {
     path: '*',
@@ -437,47 +419,6 @@ export const constantRoutes = [
  * the routes that need to be dynamically loaded based on user roles
  */
 export const asyncRoutes = [
-  // {
-  //   path: '/example',
-  //   component: Layout,
-  //   redirect: '/example/table',
-  //   name: '基础管理',
-  //   meta: {
-  //     title: '基础管理',
-  //     icon: 'el-icon-s-help'
-  //   },
-  //   children: [
-  //     {
-  //       path: 'BannerManagement',
-  //       name: 'Banner管理',
-  //       component: () =>
-  //         import('@/views/baseManagement/bannerManagement/index'),
-  //       meta: {
-  //         title: 'Banner管理'
-  //         // icon: 'table'
-  //       }
-  //     },
-  //     {
-  //       path: 'InfoManagement',
-  //       name: '资讯管理',
-  //       component: () => import('@/views/baseManagement/infoManagement/index'),
-  //       meta: {
-  //         title: '资讯管理'
-  //         // icon: 'tree'
-  //       }
-  //     },
-  //     {
-  //       path: 'ProblemFeedbackManagement',
-  //       name: '问题反馈管理',
-  //       component: () =>
-  //         import('@/views/baseManagement/problemFeedbackManagement/index'),
-  //       meta: {
-  //         title: '问题反馈管理'
-  //         // icon: 'tree'
-  //       }
-  //     }
-  //   ]
-  // }
 ];
 
 const createRouter = () =>