|
@@ -47,45 +47,38 @@ export const constantRoutes = [
|
|
|
path: '/',
|
|
|
component: Layout,
|
|
|
redirect: '/dashboard',
|
|
|
- children: [{
|
|
|
- path: 'dashboard',
|
|
|
- name: 'Dashboard',
|
|
|
- component: () => import('@/views/dashboard/index'),
|
|
|
- meta: { title: '首页', icon: 'dashboard' }
|
|
|
- }]
|
|
|
- },
|
|
|
- {
|
|
|
- path: '/live',
|
|
|
- component: Layout,
|
|
|
meta: {
|
|
|
- roles: ['admin', 'editor']
|
|
|
+ title: '用户管理',
|
|
|
+ roles: ['admin'],
|
|
|
+ icon: 'el-icon-user'
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'list',
|
|
|
- name: 'live',
|
|
|
- component: () => import('@/views/live/list'),
|
|
|
- meta: { title: '日志列表', icon: 'el-icon-s-help' }
|
|
|
+ path: 'dashboard',
|
|
|
+ name: 'Dashboard',
|
|
|
+ component: () => import('@/views/dashboard/list'),
|
|
|
+ meta: { title: '用户列表' }
|
|
|
},
|
|
|
{
|
|
|
path: 'edit/:id(\\d+)',
|
|
|
- component: () => import('@/views/live/edit'),
|
|
|
- name: 'EditBanner',
|
|
|
- meta: { title: '查看日志参数', noCache: true, activeMenu: '/live/list' },
|
|
|
+ component: () => import('@/views/dashboard/edit'),
|
|
|
+ name: 'EditerUser',
|
|
|
+ meta: { title: '修改用户', noCache: true, activeMenu: '/dashboard/list' },
|
|
|
hidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'create',
|
|
|
+ name: 'CreateUser',
|
|
|
+ component: () => import('@/views/dashboard/create'),
|
|
|
+ meta: { title: '创建用户', roles: ['admin'] }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
- // 404 page must be placed at the end !!!
|
|
|
- { path: '*', redirect: '/404', hidden: true }
|
|
|
-]
|
|
|
-
|
|
|
-export const asyncRoutes = [
|
|
|
{
|
|
|
path: '/home',
|
|
|
component: Layout,
|
|
|
meta: {
|
|
|
- title: '图片列表',
|
|
|
+ title: '帖子管理',
|
|
|
icon: 'el-icon-setting',
|
|
|
roles: ['admin']
|
|
|
},
|
|
@@ -94,88 +87,130 @@ export const asyncRoutes = [
|
|
|
path: 'list',
|
|
|
name: 'home',
|
|
|
component: () => import('@/views/home/list'),
|
|
|
- meta: { title: '图片列表', icon: 'el-icon-s-help', roles: ['admin'] }
|
|
|
+ meta: { title: '帖子列表', icon: 'el-icon-s-help', roles: ['admin'] }
|
|
|
},
|
|
|
{
|
|
|
path: 'edit/:id(\\d+)',
|
|
|
name: 'edithome',
|
|
|
component: () => import('@/views/home/edit'),
|
|
|
- meta: { title: '查看图片', icon: 'el-icon-s-help', roles: ['admin'] },
|
|
|
+ meta: { title: '查看帖子', icon: 'el-icon-s-help', roles: ['admin'] },
|
|
|
hidden: true
|
|
|
},
|
|
|
{
|
|
|
path: 'create',
|
|
|
name: 'createHome',
|
|
|
component: () => import('@/views/home/create'),
|
|
|
- meta: { title: '创建图片', icon: 'el-icon-s-help', roles: ['admin'] }
|
|
|
+ meta: { title: '创建帖子', icon: 'el-icon-s-help', roles: ['admin'] },
|
|
|
+ hidden: true
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/setting',
|
|
|
+ path: '/video',
|
|
|
component: Layout,
|
|
|
- name: 'setting',
|
|
|
+ redirect: '/video/list',
|
|
|
+ name: 'video',
|
|
|
meta: {
|
|
|
- title: '基本设置',
|
|
|
- icon: 'el-icon-setting',
|
|
|
+ title: '猫头鹰剧场',
|
|
|
+ icon: 'el-icon-s-help',
|
|
|
roles: ['admin']
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'edit',
|
|
|
- component: () => import('@/views/setting/edit'),
|
|
|
- name: 'CreateBanner',
|
|
|
- meta: { title: '参数设置', icon: 'el-icon-edit' }
|
|
|
+ path: 'create',
|
|
|
+ component: () => import('@/views/video/create'),
|
|
|
+ name: 'CreateVideo',
|
|
|
+ meta: { title: '创建剧场' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'edit/:id(\\d+)',
|
|
|
+ component: () => import('@/views/video/edit'),
|
|
|
+ name: 'EditVideo',
|
|
|
+ meta: { title: '修改剧场', noCache: true, activeMenu: '/video/list' },
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'list',
|
|
|
+ component: () => import('@/views/video/list'),
|
|
|
+ name: 'VideoList',
|
|
|
+ meta: { title: '剧场列表' }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/brand',
|
|
|
+ path: '/activity',
|
|
|
component: Layout,
|
|
|
- name: 'brand',
|
|
|
+ redirect: '/activity/list',
|
|
|
+ name: 'activity',
|
|
|
+ meta: {
|
|
|
+ title: '猫头鹰活动 ',
|
|
|
+ icon: 'el-icon-s-help',
|
|
|
+ roles: ['admin']
|
|
|
+ },
|
|
|
+ children: [
|
|
|
+ {
|
|
|
+ path: 'create',
|
|
|
+ component: () => import('@/views/activity/create'),
|
|
|
+ name: 'CreateActivity',
|
|
|
+ meta: { title: '创建活动' }
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'edit/:id(\\d+)',
|
|
|
+ component: () => import('@/views/activity/edit'),
|
|
|
+ name: 'EditActivity',
|
|
|
+ meta: { title: '修改活动 ', noCache: true, activeMenu: '/activity/list' },
|
|
|
+ hidden: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: 'list',
|
|
|
+ component: () => import('@/views/activity/list'),
|
|
|
+ name: 'ActivityList',
|
|
|
+ meta: { title: '活动列表' }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ // 404 page must be placed at the end !!!
|
|
|
+ { path: '*', redirect: '/404', hidden: true }
|
|
|
+]
|
|
|
+
|
|
|
+export const asyncRoutes = [
|
|
|
+ {
|
|
|
+ path: '/setting',
|
|
|
+ component: Layout,
|
|
|
+ name: 'setting',
|
|
|
meta: {
|
|
|
title: '基本设置',
|
|
|
icon: 'el-icon-setting',
|
|
|
roles: ['admin']
|
|
|
},
|
|
|
+ hidden: true,
|
|
|
children: [
|
|
|
{
|
|
|
path: 'edit',
|
|
|
- component: () => import('@/views/brand/edit'),
|
|
|
+ component: () => import('@/views/setting/edit'),
|
|
|
name: 'CreateBanner',
|
|
|
- meta: { title: '品牌介绍', icon: 'el-icon-edit' }
|
|
|
+ meta: { title: '参数设置', icon: 'el-icon-edit' },
|
|
|
+ hidden: true
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- path: '/banner',
|
|
|
+ path: '/brand',
|
|
|
component: Layout,
|
|
|
- redirect: '/banner/list',
|
|
|
- name: 'banner',
|
|
|
+ name: 'brand',
|
|
|
meta: {
|
|
|
- title: '轮播设置',
|
|
|
- icon: 'el-icon-s-help',
|
|
|
+ title: '基本设置',
|
|
|
+ icon: 'el-icon-setting',
|
|
|
roles: ['admin']
|
|
|
},
|
|
|
+ hidden: true,
|
|
|
children: [
|
|
|
{
|
|
|
- path: 'create',
|
|
|
- component: () => import('@/views/banner/create'),
|
|
|
+ path: 'edit',
|
|
|
+ component: () => import('@/views/brand/edit'),
|
|
|
name: 'CreateBanner',
|
|
|
- meta: { title: '创建轮播图', icon: 'el-icon-edit' }
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'edit/:id(\\d+)',
|
|
|
- component: () => import('@/views/banner/edit'),
|
|
|
- name: 'EditBanner',
|
|
|
- meta: { title: '修改轮播图', noCache: true, activeMenu: '/banner/list' },
|
|
|
+ meta: { title: '品牌介绍', icon: 'el-icon-edit' },
|
|
|
hidden: true
|
|
|
- },
|
|
|
- {
|
|
|
- path: 'list',
|
|
|
- component: () => import('@/views/banner/list'),
|
|
|
- name: 'BannerList',
|
|
|
- meta: { title: '轮播图列表', icon: 'el-icon-s-order' }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -185,12 +220,14 @@ export const asyncRoutes = [
|
|
|
meta: {
|
|
|
roles: ['admin']
|
|
|
},
|
|
|
+ hidden: true,
|
|
|
children: [
|
|
|
{
|
|
|
path: 'list',
|
|
|
name: 'city',
|
|
|
component: () => import('@/views/city/list'),
|
|
|
- meta: { title: '开放区域列表', icon: 'el-icon-s-help' }
|
|
|
+ meta: { title: '开放区域列表', icon: 'el-icon-s-help' },
|
|
|
+ hidden: true
|
|
|
}
|
|
|
]
|
|
|
},
|
|
@@ -200,12 +237,14 @@ export const asyncRoutes = [
|
|
|
meta: {
|
|
|
roles: ['admin']
|
|
|
},
|
|
|
+ hidden: true,
|
|
|
children: [
|
|
|
{
|
|
|
path: 'list',
|
|
|
name: 'join',
|
|
|
component: () => import('@/views/join/list'),
|
|
|
- meta: { title: '管理员列表', icon: 'el-icon-s-help' }
|
|
|
+ meta: { title: '管理员列表', icon: 'el-icon-s-help' },
|
|
|
+ hidden: true
|
|
|
}
|
|
|
]
|
|
|
}
|