|
|
@@ -13,7 +13,7 @@ Vue.use(Router)
|
|
|
* sub-menu only appear when route children.length >= 1
|
|
|
* dev: true, if set true, item will not show in production
|
|
|
* hidden: true, if set true, item will not show in the sidebar(default is false)
|
|
|
- * name:'router-name' , if it is not a wrapping layer(Layout or Solo), it must be set!!!
|
|
|
+ * name:'router-name' , if it is a manual jump, it must be set!!!
|
|
|
* include: ['admin'], control the page roles (you can set multiple roles)
|
|
|
* access: 'manage-profile', control the page access
|
|
|
* meta : {
|
|
|
@@ -67,14 +67,12 @@ export const asyncRoutes = [
|
|
|
meta: { title: '内容管理', icon: 'am' },
|
|
|
children: [
|
|
|
{
|
|
|
- name: 'media-list',
|
|
|
path: 'media',
|
|
|
component: () => import('@/views/screen/material/media/index'),
|
|
|
access: [Access.MANAGE_CALENDAR, Access.MANAGE_GROUP],
|
|
|
meta: { title: '资源' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'program-list',
|
|
|
path: 'program',
|
|
|
component: () => import('@/views/screen/material/program/index'),
|
|
|
access: [Access.MANAGE_CALENDAR, Access.MANAGE_GROUP],
|
|
|
@@ -129,14 +127,12 @@ export const asyncRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- name: 'tag',
|
|
|
path: 'tag',
|
|
|
component: () => import('@/views/screen/material/tag/index'),
|
|
|
access: [Access.MANAGE_CALENDAR, Access.MANAGE_GROUP],
|
|
|
meta: { title: '资源标签' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'material-review',
|
|
|
path: 'review',
|
|
|
component: () => import('@/views/screen/review/single/index'),
|
|
|
access: Access.MANAGE_GROUP,
|
|
|
@@ -150,14 +146,12 @@ export const asyncRoutes = [
|
|
|
meta: { title: '智能信发', icon: 'cm' },
|
|
|
children: [
|
|
|
{
|
|
|
- name: 'deploy-device',
|
|
|
path: 'deploy/device',
|
|
|
component: () => import('@/views/screen/deploy/device/index'),
|
|
|
access: Access.MANAGE_CALENDAR,
|
|
|
meta: { title: '按设备发布' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'deploy-ratio',
|
|
|
path: 'deploy/ratio',
|
|
|
component: () => import('@/views/screen/deploy/ratio/index'),
|
|
|
access: Access.MANAGE_CALENDAR,
|
|
|
@@ -191,7 +185,6 @@ export const asyncRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- name: 'deploy-history',
|
|
|
path: 'history',
|
|
|
component: () => import('@/views/screen/review/history/index'),
|
|
|
access: [Access.MANAGE_CALENDAR, Access.MANAGE_GROUP],
|
|
|
@@ -206,25 +199,21 @@ export const asyncRoutes = [
|
|
|
access: [Access.MANAGE_CALENDAR, Access.MANAGE_GROUP],
|
|
|
children: [
|
|
|
{
|
|
|
- name: 'contract',
|
|
|
path: 'contract',
|
|
|
component: () => import('@/views/ad/contract/index'),
|
|
|
meta: { title: '合同' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'task',
|
|
|
path: 'list',
|
|
|
component: () => import('@/views/ad/task/index'),
|
|
|
meta: { title: '屏体上播管理' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'scheduling',
|
|
|
path: 'scheduling',
|
|
|
component: () => import('@/views/ad/scheduling/index'),
|
|
|
meta: { title: '节目单' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'dataset',
|
|
|
path: 'dataset',
|
|
|
component: () => import('@/views/ad/dataset/index'),
|
|
|
meta: { title: '填充素材包' }
|
|
|
@@ -257,19 +246,16 @@ export const asyncRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- name: 'device-timeline',
|
|
|
path: 'timeline',
|
|
|
component: () => import('@/views/device/timeline/index'),
|
|
|
meta: { title: '排期预览' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'record',
|
|
|
path: 'record',
|
|
|
component: () => import('@/views/device/record/index'),
|
|
|
meta: { title: '视频回采' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'group',
|
|
|
path: 'group',
|
|
|
component: () => import('@/views/device/group/index'),
|
|
|
meta: { title: '分组管理' }
|
|
|
@@ -283,19 +269,16 @@ export const asyncRoutes = [
|
|
|
meta: { title: '平台管理', icon: 'pm' },
|
|
|
children: [
|
|
|
{
|
|
|
- name: 'settings',
|
|
|
path: 'settings',
|
|
|
component: () => import('@/views/realm/settings/index'),
|
|
|
meta: { title: '功能管理' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'org',
|
|
|
path: 'org',
|
|
|
component: () => import('@/views/realm/org/index'),
|
|
|
meta: { title: '组织管理' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'account',
|
|
|
path: 'account',
|
|
|
component: () => import('@/views/realm/user/index'),
|
|
|
meta: { title: '账号管理' }
|
|
|
@@ -328,19 +311,16 @@ export const asyncRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- name: 'device-assign',
|
|
|
path: 'device/assign',
|
|
|
component: () => import('@/views/realm/assign/index'),
|
|
|
meta: { title: '设备分配' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'ai-audit',
|
|
|
path: 'ai/audit',
|
|
|
component: () => import('@/views/realm/ai/ai-audit/index'),
|
|
|
meta: { title: 'AI审核' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'ai-timing',
|
|
|
path: 'ai/timing',
|
|
|
component: () => import('@/views/realm/ai/ai-timing/index'),
|
|
|
meta: { title: 'AI抽帧检测' }
|
|
|
@@ -354,13 +334,11 @@ export const asyncRoutes = [
|
|
|
meta: { title: '应急广播', icon: 'bm' },
|
|
|
children: [
|
|
|
{
|
|
|
- name: 'broadcast-deploy',
|
|
|
path: 'deploy',
|
|
|
component: () => import('@/views/broadcast/deploy/index'),
|
|
|
meta: { title: '发布' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'broadcast-deploy-history',
|
|
|
path: 'history',
|
|
|
component: () => import('@/views/broadcast/history/index'),
|
|
|
meta: { title: '发布历史' }
|
|
|
@@ -374,28 +352,22 @@ export const asyncRoutes = [
|
|
|
meta: { icon: 'logger', title: '数据统计' },
|
|
|
children: [
|
|
|
{
|
|
|
- name: 'statistic-asset',
|
|
|
path: 'asset',
|
|
|
component: () => import('@/views/dashboard/statistic/index'),
|
|
|
meta: { title: '素材播放' }
|
|
|
},
|
|
|
{
|
|
|
path: 'logger',
|
|
|
- name: 'logger',
|
|
|
component: () => import('@/views/realm/logger/index'),
|
|
|
meta: { title: '操作日志' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'dashboard-v0',
|
|
|
- path: 'v0',
|
|
|
- component: () => import('@/views/dashboard/v0/index'),
|
|
|
- meta: { title: '大数据V0' }
|
|
|
+ path: 'internal:dashboard/v0',
|
|
|
+ meta: { title: '大数据V0', internal: true }
|
|
|
},
|
|
|
{
|
|
|
- name: 'dashboard-v1',
|
|
|
- path: 'v1',
|
|
|
- component: () => import('@/views/dashboard/v1/index'),
|
|
|
- meta: { title: '大数据V1' }
|
|
|
+ path: 'internal:dashboard/v1',
|
|
|
+ meta: { title: '大数据V1', internal: true }
|
|
|
}
|
|
|
]
|
|
|
},
|
|
|
@@ -407,7 +379,6 @@ export const asyncRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: 'tenant',
|
|
|
- name: 'tenant',
|
|
|
component: () => import('@/views/platform/tenant/index'),
|
|
|
meta: { title: '租户管理' }
|
|
|
},
|
|
|
@@ -432,31 +403,26 @@ export const asyncRoutes = [
|
|
|
]
|
|
|
},
|
|
|
{
|
|
|
- name: 'broadcast-template',
|
|
|
path: 'template',
|
|
|
component: () => import('@/views/broadcast/template/index'),
|
|
|
meta: { title: '应急广播模板管理' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'ai-stock',
|
|
|
path: 'ai/stock',
|
|
|
component: () => import('@/views/platform/ai-stock/index'),
|
|
|
meta: { title: 'AI审核库存' }
|
|
|
},
|
|
|
{
|
|
|
path: 'mqtt',
|
|
|
- name: 'mqtt',
|
|
|
component: () => import('@/views/platform/debug/index'),
|
|
|
meta: { title: 'MQTT' }
|
|
|
},
|
|
|
{
|
|
|
path: 'simulator',
|
|
|
- name: 'simulator',
|
|
|
component: () => import('@/views/platform/simulator/index'),
|
|
|
meta: { title: '模拟器' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'cooperation',
|
|
|
path: 'cooperation',
|
|
|
component: () => import('@/views/platform/cooperation/index'),
|
|
|
meta: { title: '合作意向' }
|
|
|
@@ -471,20 +437,17 @@ export const asyncRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: 'transmitter',
|
|
|
- name: 'transmitter',
|
|
|
component: () => import('@/views/external/transmitter/index'),
|
|
|
meta: { title: '发送控制设备' }
|
|
|
},
|
|
|
{
|
|
|
dev: !__GATEWAY__,
|
|
|
path: 'gateway',
|
|
|
- name: 'gateway',
|
|
|
component: () => import('@/views/external/gateway/index'),
|
|
|
meta: { title: '网关' }
|
|
|
},
|
|
|
{
|
|
|
path: 'camera',
|
|
|
- name: 'camera',
|
|
|
component: () => import('@/views/external/camera/index'),
|
|
|
meta: { title: '摄像头' }
|
|
|
}
|
|
|
@@ -497,19 +460,16 @@ export const asyncRoutes = [
|
|
|
access: Access.MANAGE_TENANTS,
|
|
|
children: [
|
|
|
{
|
|
|
- name: 'ad-asset-review',
|
|
|
path: 'asset/review',
|
|
|
component: () => import('@/views/ad/review-asset/index'),
|
|
|
meta: { title: '素材审核' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'ad-order-review',
|
|
|
path: 'order/review',
|
|
|
component: () => import('@/views/ad/review-order/index'),
|
|
|
meta: { title: '订单审核' }
|
|
|
},
|
|
|
{
|
|
|
- name: 'ad-order-history',
|
|
|
path: 'order/history',
|
|
|
component: () => import('@/views/ad/history/index'),
|
|
|
meta: { title: '订单历史' }
|
|
|
@@ -524,13 +484,11 @@ export const asyncRoutes = [
|
|
|
children: [
|
|
|
{
|
|
|
path: 'apk',
|
|
|
- name: 'upgrade-apk',
|
|
|
component: () => import('@/views/platform/upgrade/index'),
|
|
|
meta: { title: '版本管理' }
|
|
|
},
|
|
|
{
|
|
|
path: 'deploy',
|
|
|
- name: 'upgrade-deploy',
|
|
|
component: () => import('@/views/platform/upgrade/deploy/index'),
|
|
|
meta: { title: '发布升级' }
|
|
|
}
|
|
|
@@ -543,6 +501,16 @@ export const asyncRoutes = [
|
|
|
component: () => import('@/views/screen/material/program/ast/index'),
|
|
|
props: true
|
|
|
},
|
|
|
+ {
|
|
|
+ hidden: true,
|
|
|
+ path: '/d/dashboard/v0',
|
|
|
+ component: () => import('@/views/dashboard/v0/index')
|
|
|
+ },
|
|
|
+ {
|
|
|
+ hidden: true,
|
|
|
+ path: '/d/dashboard/v1',
|
|
|
+ component: () => import('@/views/dashboard/v1/index')
|
|
|
+ },
|
|
|
{
|
|
|
dev: !__DEVICE_DASHBARD__,
|
|
|
hidden: true,
|