增加营销相关菜单

This commit is contained in:
zhl 2021-04-16 15:07:45 +08:00
parent 1970ebf81f
commit fee11cca69
7 changed files with 61 additions and 2 deletions

View File

@ -65,7 +65,11 @@ export default {
i18n: 'I18n', i18n: 'I18n',
externalLink: 'External Link', externalLink: 'External Link',
profile: 'Profile', profile: 'Profile',
article: 'Article' article: 'Article',
marketing: 'Marketing',
marketing_coupon: 'Coupon',
marketing_promo: 'Promo Code',
marketing_points: 'Points Setting',
}, },
navbar: { navbar: {
logOut: 'Log Out', logOut: 'Log Out',
@ -182,5 +186,8 @@ export default {
}, },
article: { article: {
add: 'New Article' add: 'New Article'
},
marketing: {
} }
} }

View File

@ -65,7 +65,11 @@ export default {
i18n: '国际化', i18n: '国际化',
externalLink: '外链', externalLink: '外链',
profile: '个人中心', profile: '个人中心',
article: '资讯管理' article: '资讯管理',
marketing: '营销管理',
marketing_coupon: '优惠券设置',
marketing_promo: '优惠码设置',
marketing_points: '积分设置',
}, },
navbar: { navbar: {
logOut: '退出登录', logOut: '退出登录',

View File

@ -8,6 +8,7 @@ import Layout from '@/layout/index.vue'
import tableRouter from './modules/table' import tableRouter from './modules/table'
import systemRoutes from '@/router/modules/system' import systemRoutes from '@/router/modules/system'
import articleRouters from '@/router/modules/article' import articleRouters from '@/router/modules/article'
import marketingRoutes from '@/router/modules/marketing'
Vue.use(VueRouter) Vue.use(VueRouter)
@ -116,6 +117,7 @@ export const constantRoutes: RouteConfig[] = [
export const asyncRoutes: RouteConfig[] = [ export const asyncRoutes: RouteConfig[] = [
systemRoutes, systemRoutes,
articleRouters, articleRouters,
marketingRoutes,
{ {
path: '/error-log', path: '/error-log',
component: Layout, component: Layout,

View File

@ -0,0 +1,46 @@
import { RouteConfig } from 'vue-router'
import Layout from '@/layout/index.vue'
const marketingRoutes: RouteConfig = {
path: '/marketing',
component: Layout,
meta: {
title: 'marketing',
icon: 'component',
alwaysShow: true
},
children: [
{
path: 'coupon',
component: () => import('@/views/marketing/coupon.vue'),
name: 'CouponSetting',
meta: {
title: 'marketing_coupon',
permissions: ['coupon:read'],
elicon: 'el-icon-arrow-right'
}
},
{
path: 'promo',
component: () => import('@/views/marketing/promo.vue'),
name: 'PromoSetting',
meta: {
title: 'marketing_promo',
permissions: ['promo:read'],
elicon: 'el-icon-arrow-right'
}
},
{
path: 'points',
component: () => import('@/views/marketing/points.vue'),
name: 'PointsSetting',
meta: {
title: 'marketing_points',
permissions: ['points:read'],
elicon: 'el-icon-arrow-right'
}
}
]
}
export default marketingRoutes

View File

View File

View File