Ver Fonte

菜单顺序调整

梁展鹏 há 3 anos atrás
pai
commit
8aac3ac0de
1 ficheiros alterados com 153 adições e 151 exclusões
  1. 153 151
      src/router/index.js

+ 153 - 151
src/router/index.js

@@ -59,6 +59,79 @@ export const constantRoutes = [
       }
     ]
   },
+
+  {
+      path: 'statistics',
+      component: Layout,
+      redirect: '/statistics/DownloadImage',
+      name: '数据统计',
+      meta: {
+        title: '数据统计',
+        icon: 'el-icon-s-help'
+      },
+      children: [
+        {
+          path: 'DownloadImage',
+          name: '下载照片',
+          component: () => import('@/views/statistics/downloadImage/index'),
+          meta: {
+            title: '下载照片'
+            // icon: 'table'
+          }
+        },
+        {
+          path: 'UploadImage',
+          name: '上传照片',
+          component: () => import('@/views/statistics/uploadImage/index'),
+          meta: {
+            title: '上传照片'
+            // icon: 'tree'
+          }
+        },
+        {
+          path: 'WithdrawalRecord',
+          name: '提现记录',
+          component: () => import('@/views/statistics/withdrawalRecord/index'),
+          meta: {
+            title: '提现记录'
+            // icon: 'tree'
+          }
+        }
+      ]
+    },
+
+  {
+    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: '/baseManagement',
     component: Layout,
@@ -70,10 +143,19 @@ export const constantRoutes = [
     },
     children: [
       {
+        path: 'TrendManagement',
+        name: '热搜词管理',
+        component: () => import('@/views/baseManagement/trending/index'),
+        meta: {
+          title: '热搜词管理'
+          // icon: 'tree'
+        }
+      },
+      {
         path: 'BannerManagement',
         name: 'Banner管理',
         component: () =>
-          import('@/views/baseManagement/bannerManagement/index'),
+        import('@/views/baseManagement/bannerManagement/index'),
         meta: {
           title: 'Banner管理'
           // icon: 'table'
@@ -92,50 +174,51 @@ export const constantRoutes = [
         path: 'ProblemFeedbackManagement',
         name: '问题反馈管理',
         component: () =>
-          import('@/views/baseManagement/problemFeedbackManagement/index'),
+        import('@/views/baseManagement/problemFeedbackManagement/index'),
         meta: {
           title: '问题反馈管理'
           // icon: 'tree'
         }
-      },
-      {
-        path: 'TrendManagement',
-        name: '热搜词管理',
-        component: () => import('@/views/baseManagement/trending/index'),
-        meta: {
-          title: '热搜词管理'
-          // icon: 'tree'
-        }
       }
     ]
   },
+
   {
-    path: '/photographerManagement',
+    path: '/photoManagement',
     component: Layout,
-    redirect: '/photographerManagement/PhotographerVerify',
-    name: '摄影师管理',
+    redirect: '/photoManagement/ImageGoodsManagement',
+    name: '图片库管理',
     meta: {
-      title: '摄影师管理',
+      title: '图片库管理',
       icon: 'el-icon-s-help'
     },
     children: [
       {
-        path: 'PhotographerVerify',
-        name: '摄影师审核',
+        path: 'ImageGoodsManagement',
+        name: '照片商品管理',
         component: () =>
-          import('@/views/photographerManagement/photographerVerify/index'),
+        import('@/views/photoManagement/imageGoodsManagement/index'),
         meta: {
-          title: '摄影师审核'
+          title: '照片商品管理'
           // icon: 'table'
         }
       },
       {
-        path: 'PhotoVerify',
-        name: '照片管理',
+        path: 'EventsList',
+        name: '活动列表',
+        component: () => import('@/views/photoManagement/eventsList/index'),
+        meta: {
+          title: '活动列表'
+          // icon: 'tree'
+        }
+      },
+      {
+        path: 'UploadManagement',
+        name: '上传照片管理',
         component: () =>
-          import('@/views/photographerManagement/photoVerify/index'),
+        import('@/views/photoManagement/uploadManagement/index'),
         meta: {
-          title: '照片管理'
+          title: '上传照片管理'
           // icon: 'tree'
         }
       }
@@ -143,30 +226,32 @@ export const constantRoutes = [
   },
 
   {
-    path: '/pointsManagement',
+    path: '/photographerManagement',
     component: Layout,
-    redirect: '/pointsManagement/PointsDetail',
-    name: '积分管理',
+    redirect: '/photographerManagement/PhotographerVerify',
+    name: '摄影师管理',
     meta: {
-      title: '积分管理',
+      title: '摄影师管理',
       icon: 'el-icon-s-help'
     },
     children: [
       {
-        path: 'PointsDetail',
-        name: '积分明细',
-        component: () => import('@/views/pointsManagement/pointsDetail/index'),
+        path: 'PhotographerVerify',
+        name: '摄影师审核',
+        component: () =>
+        import('@/views/photographerManagement/photographerVerify/index'),
         meta: {
-          title: '积分明细'
+          title: '摄影师审核'
           // icon: 'table'
         }
       },
       {
-        path: 'PointsSetting',
-        name: '积分设置',
-        component: () => import('@/views/pointsManagement/pointsSetting/index'),
+        path: 'PhotoVerify',
+        name: '照片管理',
+        component: () =>
+        import('@/views/photographerManagement/photoVerify/index'),
         meta: {
-          title: '积分设置'
+          title: '照片管理'
           // icon: 'tree'
         }
       }
@@ -236,6 +321,37 @@ export const constantRoutes = [
   },
 
   {
+    path: '/pointsManagement',
+    component: Layout,
+    redirect: '/pointsManagement/PointsDetail',
+    name: '积分管理',
+    meta: {
+      title: '积分管理',
+      icon: 'el-icon-s-help'
+    },
+    children: [
+      {
+        path: 'PointsDetail',
+        name: '积分明细',
+        component: () => import('@/views/pointsManagement/pointsDetail/index'),
+        meta: {
+          title: '积分明细'
+          // icon: 'table'
+        }
+      },
+      {
+        path: 'PointsSetting',
+        name: '积分设置',
+        component: () => import('@/views/pointsManagement/pointsSetting/index'),
+        meta: {
+          title: '积分设置'
+          // icon: 'tree'
+        }
+      }
+    ]
+  },
+
+  {
     path: '/helpInfo',
     component: Layout,
     redirect: '/helpInfo/IssueType',
@@ -280,7 +396,7 @@ export const constantRoutes = [
         path: 'AccountManagement',
         name: '账号列表',
         component: () =>
-          import('@/views/systemManagement/accountManagement/index'),
+        import('@/views/systemManagement/accountManagement/index'),
         meta: {
           title: '账号列表'
           // icon: 'table'
@@ -290,7 +406,7 @@ export const constantRoutes = [
         path: 'RoleManagement',
         name: '角色列表',
         component: () =>
-          import('@/views/systemManagement/roleManagement/index'),
+        import('@/views/systemManagement/roleManagement/index'),
         meta: {
           title: '角色列表'
           // icon: 'tree'
@@ -299,120 +415,6 @@ export const constantRoutes = [
     ]
   },
 
-  {
-    path: '/photoManagement',
-    component: Layout,
-    redirect: '/photoManagement/ImageGoodsManagement',
-    name: '图片库管理',
-    meta: {
-      title: '图片库管理',
-      icon: 'el-icon-s-help'
-    },
-    children: [
-      {
-        path: 'ImageGoodsManagement',
-        name: '照片商品管理',
-        component: () =>
-          import('@/views/photoManagement/imageGoodsManagement/index'),
-        meta: {
-          title: '照片商品管理'
-          // icon: 'table'
-        }
-      },
-      {
-        path: 'EventsList',
-        name: '活动列表',
-        component: () => import('@/views/photoManagement/eventsList/index'),
-        meta: {
-          title: '活动列表'
-          // icon: 'tree'
-        }
-      },
-      {
-        path: 'UploadManagement',
-        name: '上传照片管理',
-        component: () =>
-          import('@/views/photoManagement/uploadManagement/index'),
-        meta: {
-          title: '上传照片管理'
-          // icon: 'tree'
-        }
-      }
-    ]
-  },
-
-  {
-    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: 'statistics',
-    component: Layout,
-    redirect: '/statistics/DownloadImage',
-    name: '数据统计',
-    meta: {
-      title: '数据统计',
-      icon: 'el-icon-s-help'
-    },
-    children: [
-      {
-        path: 'DownloadImage',
-        name: '下载照片',
-        component: () => import('@/views/statistics/downloadImage/index'),
-        meta: {
-          title: '下载照片'
-          // icon: 'table'
-        }
-      },
-      {
-        path: 'UploadImage',
-        name: '上传照片',
-        component: () => import('@/views/statistics/uploadImage/index'),
-        meta: {
-          title: '上传照片'
-          // icon: 'tree'
-        }
-      },
-      {
-        path: 'WithdrawalRecord',
-        name: '提现记录',
-        component: () => import('@/views/statistics/withdrawalRecord/index'),
-        meta: {
-          title: '提现记录'
-          // icon: 'tree'
-        }
-      }
-    ]
-  },
-
   // 404 page must be placed at the end !!!
   {
     path: '*',