Browse Source

排行榜菜单

pull/97/head
pengda 1 month ago
parent
commit
5928813be0
  1. 2
      src/router/index.js
  2. 80
      src/store/index.js

2
src/router/index.js

@ -591,7 +591,7 @@ router.beforeEach((to, from, next) => {
}) })
} }
if (to.path.includes('/super/ranking/')) { //匹配包含此路径的 侧边栏数据 if (to.path.includes('/super/ranking/')) { //匹配包含此路径的 侧边栏数据
store.commit('SET_CUSTOMIZE', false); store.commit('SET_CUSTOMIZE', true);
store.commit('SET_SLIDER_MENU', 'rankMenuData'); store.commit('SET_SLIDER_MENU', 'rankMenuData');
} }
} }

80
src/store/index.js

@ -20,83 +20,77 @@ export default new Vuex.Store({
componentsName:'', componentsName:'',
currentMenuItem:null, currentMenuItem:null,
slidermenu:[], slidermenu:[],
rankMenuData: [{ rankMenuData: [
index: '1', {
title: '总利润', name: '总利润',
icon: 'Totalprofit', img:'site/sitebase.svg',
children: [{ imgActive: require('@/assets/site/sitebase_active.svg'),
index: '1-1', list: [
title: '年排行', {
name: '年排行',
path: '/super/ranking/yearProfit' path: '/super/ranking/yearProfit'
}, },
{ {
index: '1-2', name: '月排行',
title: '月排行',
path: '/super/ranking/monthProfit' path: '/super/ranking/monthProfit'
} },
] ]
}, },
{ {
index: '2', name: '产品',
title: '产品', img:'site/sitebase.svg',
icon: 'Totalprofit1', imgActive: require('@/assets/site/sitebase_active.svg'),
children: [{ list: [
index: '2-1', {
title: '毛利润排行', name: '毛利润排行',
path: '/super/ranking/checkProfit' path: '/super/ranking/checkProfit'
}, },
{ {
index: '2-2', name: '订单数排行',
title: '订单数排行',
path: '/super/ranking/checkOrdernum' path: '/super/ranking/checkOrdernum'
}, },
{ {
index: '2-3', name: '退单数排行',
title: '退单数排行',
path: '/super/ranking/checkRefund' path: '/super/ranking/checkRefund'
}, },
{ {
index: '2-4', name: '负毛利排行',
title: '负毛利排行',
path: '/super/ranking/loss' path: '/super/ranking/loss'
} },
] ]
}, },
{ {
index: '3', name: '代理商',
title: '代理商', img:'site/sitebase.svg',
icon: 'Totalprofit2', imgActive: require('@/assets/site/sitebase_active.svg'),
children: [{ list: [
index: '3-1', {
title: '毛利润排行', name: '毛利润排行',
path: '/super/ranking/agentProfit' path: '/super/ranking/agentProfit'
}, },
{ {
index: '3-2', name: '充值排行',
title: '充值排行',
path: '/super/ranking/agentRecharge' path: '/super/ranking/agentRecharge'
}, },
{ {
index: '3-3', name: '新加盟',
title: '新加盟',
path: '/super/ranking/agentNew' path: '/super/ranking/agentNew'
} },
] ]
}, },
{ {
index: '4', name: '设置',
title: '设置', img:'site/sitebase.svg',
icon: 'Totalprofit3', imgActive: require('@/assets/site/sitebase_active.svg'),
children: [{ list: [
index: '4-1', {
title: '采购价', name: '采购价',
path: '/super/ranking/purchase' path: '/super/ranking/purchase'
}, },
{ {
index: '4-2', name: '阶段采购',
title: '阶段采购',
path: '/super/ranking/stagePurchase' path: '/super/ranking/stagePurchase'
} },
] ]
}, },
], ],

Loading…
Cancel
Save