diff --git a/src/layout/index.vue b/src/layout/index.vue index 9eb7f32..d5135f9 100644 --- a/src/layout/index.vue +++ b/src/layout/index.vue @@ -62,7 +62,7 @@ export default { { path: '/jd-instruction/index', label: '中控', icon: 'el-icon-s-operation', permissions: ['jdorder:instruction:list'] }, { path: '/mobile/fadan', label: '发单', icon: 'el-icon-edit-outline' }, { path: '/mobile/xianyu-publish', label: '发品', icon: 'el-icon-goods' }, - { path: '/mobile/zhongcao', label: '种草', icon: 'el-icon-chat-dot-round' } + { path: '/mobile/profit', label: '报表', icon: 'el-icon-data-analysis' } ] return items.filter(it => !it.permissions || auth.hasPermiOr(it.permissions)) }, diff --git a/src/router/index.js b/src/router/index.js index 4e1d905..c1a0590 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -136,11 +136,15 @@ export const constantRoutes = [ name: 'MobileXianyuPublish', meta: { title: '发品' } }, + { + path: 'profit', + component: () => import('@/views/system/jdorder/profit-analysis'), + name: 'MobileProfit', + meta: { title: '报表' } + }, { path: 'zhongcao', - component: () => import('@/views/mobile/zhongcao/index'), - name: 'MobileZhongcao', - meta: { title: '种草' } + redirect: '/mobile/profit' } ] } diff --git a/src/views/mobile/zhongcao/index.vue b/src/views/mobile/zhongcao/index.vue deleted file mode 100644 index 700f1cf..0000000 --- a/src/views/mobile/zhongcao/index.vue +++ /dev/null @@ -1,267 +0,0 @@ - - - - - diff --git a/src/views/system/jdorder/profit-analysis.vue b/src/views/system/jdorder/profit-analysis.vue index b484a7d..c652fb5 100644 --- a/src/views/system/jdorder/profit-analysis.vue +++ b/src/views/system/jdorder/profit-analysis.vue @@ -1,19 +1,20 @@