|
@@ -69,33 +69,32 @@ export const asyncRoutes = [
|
|
|
name: 'media',
|
|
name: 'media',
|
|
|
path: 'media',
|
|
path: 'media',
|
|
|
component: () => import('@/views/media/index'),
|
|
component: () => import('@/views/media/index'),
|
|
|
- access: Access.VIEW_ASSETS,
|
|
|
|
|
|
|
+ access: Access.MANAGE_ASSETS,
|
|
|
meta: { title: '媒资管理' }
|
|
meta: { title: '媒资管理' }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: 'program',
|
|
name: 'program',
|
|
|
path: 'program',
|
|
path: 'program',
|
|
|
component: () => import('@/views/bigscreen/index'),
|
|
component: () => import('@/views/bigscreen/index'),
|
|
|
- access: Access.VIEW_CALENDAR,
|
|
|
|
|
|
|
+ access: Access.MANAGE_CALENDAR,
|
|
|
meta: { title: '节目编排' }
|
|
meta: { title: '节目编排' }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
path: 'schedule',
|
|
path: 'schedule',
|
|
|
component: Solo,
|
|
component: Solo,
|
|
|
|
|
+ access: Access.MANAGE_CALENDAR,
|
|
|
meta: { title: '节目排期' },
|
|
meta: { title: '节目排期' },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
|
name: 'schedule-list',
|
|
name: 'schedule-list',
|
|
|
path: '',
|
|
path: '',
|
|
|
component: () => import('@/views/schedule/index'),
|
|
component: () => import('@/views/schedule/index'),
|
|
|
- access: Access.VIEW_CALENDAR,
|
|
|
|
|
meta: { cache: 'ScheduleList' }
|
|
meta: { cache: 'ScheduleList' }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: 'schedule-design',
|
|
name: 'schedule-design',
|
|
|
path: ':id',
|
|
path: ':id',
|
|
|
component: () => import('@/views/schedule/designer/index'),
|
|
component: () => import('@/views/schedule/designer/index'),
|
|
|
- access: Access.MANAGE_CALENDAR,
|
|
|
|
|
meta: { title: '排期编辑', activeMenu: '/cm/schedule', cache: 'ScheduleList' },
|
|
meta: { title: '排期编辑', activeMenu: '/cm/schedule', cache: 'ScheduleList' },
|
|
|
hidden: true
|
|
hidden: true
|
|
|
}
|
|
}
|
|
@@ -119,7 +118,7 @@ export const asyncRoutes = [
|
|
|
name: 'schedule-deploy-history',
|
|
name: 'schedule-deploy-history',
|
|
|
path: 'history',
|
|
path: 'history',
|
|
|
component: () => import('@/views/schedule/history/index'),
|
|
component: () => import('@/views/schedule/history/index'),
|
|
|
- access: Access.VIEW_CALENDAR,
|
|
|
|
|
|
|
+ access: [Access.PUBLISH_CALENDAR, Access.REVIEW],
|
|
|
meta: { title: '发布历史' }
|
|
meta: { title: '发布历史' }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
@@ -127,7 +126,6 @@ export const asyncRoutes = [
|
|
|
{
|
|
{
|
|
|
path: '/dm',
|
|
path: '/dm',
|
|
|
component: Layout,
|
|
component: Layout,
|
|
|
- access: Access.VIEW_DEVICE,
|
|
|
|
|
meta: { title: '大屏设备', icon: 'el-icon-monitor' },
|
|
meta: { title: '大屏设备', icon: 'el-icon-monitor' },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|
|
@@ -146,6 +144,7 @@ export const asyncRoutes = [
|
|
|
{
|
|
{
|
|
|
name: 'camera',
|
|
name: 'camera',
|
|
|
path: 'camera',
|
|
path: 'camera',
|
|
|
|
|
+ access: Access.VIEW_CAMERAS,
|
|
|
component: () => import('@/views/device/camera/index'),
|
|
component: () => import('@/views/device/camera/index'),
|
|
|
meta: { title: '视频监控' }
|
|
meta: { title: '视频监控' }
|
|
|
}
|
|
}
|
|
@@ -160,14 +159,14 @@ export const asyncRoutes = [
|
|
|
name: 'category',
|
|
name: 'category',
|
|
|
path: 'category',
|
|
path: 'category',
|
|
|
component: () => import('@/views/device/category/index'),
|
|
component: () => import('@/views/device/category/index'),
|
|
|
- access: Access.VIEW_PRODUCTS,
|
|
|
|
|
|
|
+ access: Access.MANAGE_PRODUCTS,
|
|
|
meta: { title: '产品分类' }
|
|
meta: { title: '产品分类' }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: 'product',
|
|
name: 'product',
|
|
|
path: 'product',
|
|
path: 'product',
|
|
|
component: () => import('@/views/device/product/index'),
|
|
component: () => import('@/views/device/product/index'),
|
|
|
- access: Access.VIEW_PRODUCTS,
|
|
|
|
|
|
|
+ access: Access.MANAGE_PRODUCTS,
|
|
|
meta: { title: '产品管理' }
|
|
meta: { title: '产品管理' }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -179,14 +178,13 @@ export const asyncRoutes = [
|
|
|
name: 'device-list',
|
|
name: 'device-list',
|
|
|
path: '',
|
|
path: '',
|
|
|
component: () => import('@/views/device/index'),
|
|
component: () => import('@/views/device/index'),
|
|
|
- access: Access.VIEW_DEVICES,
|
|
|
|
|
|
|
+ access: [Access.MANAGE_DEVICES, Access.MANAGE_DEVICE],
|
|
|
meta: { cache: 'DeviceList' }
|
|
meta: { cache: 'DeviceList' }
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
name: 'device-detail',
|
|
name: 'device-detail',
|
|
|
path: ':id',
|
|
path: ':id',
|
|
|
component: () => import('@/views/device/detail/index'),
|
|
component: () => import('@/views/device/detail/index'),
|
|
|
- access: Access.VIEW_DEVICE,
|
|
|
|
|
meta: { title: '设备详情', activeMenu: '/m/device', cache: 'DeviceList' },
|
|
meta: { title: '设备详情', activeMenu: '/m/device', cache: 'DeviceList' },
|
|
|
hidden: true
|
|
hidden: true
|
|
|
}
|
|
}
|
|
@@ -196,7 +194,7 @@ export const asyncRoutes = [
|
|
|
name: 'group',
|
|
name: 'group',
|
|
|
path: 'group',
|
|
path: 'group',
|
|
|
component: () => import('@/views/device/group/index'),
|
|
component: () => import('@/views/device/group/index'),
|
|
|
- access: Access.VIEW_GROUPS,
|
|
|
|
|
|
|
+ access: Access.MANAGE_GROUPS,
|
|
|
meta: { title: '分组管理' }
|
|
meta: { title: '分组管理' }
|
|
|
}
|
|
}
|
|
|
]
|
|
]
|
|
@@ -232,7 +230,7 @@ export const asyncRoutes = [
|
|
|
{
|
|
{
|
|
|
path: '/u',
|
|
path: '/u',
|
|
|
component: Layout,
|
|
component: Layout,
|
|
|
- access: Access.VIEW_UPGRADE,
|
|
|
|
|
|
|
+ access: Access.MANAGE_UPGRADE,
|
|
|
meta: { title: '升级管理', icon: 'el-icon-upload' },
|
|
meta: { title: '升级管理', icon: 'el-icon-upload' },
|
|
|
children: [
|
|
children: [
|
|
|
{
|
|
{
|