|
|
@ -26,263 +26,275 @@ import Layout from '../views/layout/Layout'
|
|
|
|
* AuthKey: 'roleManage:find' 该页面进入的权限码
|
|
|
|
* AuthKey: 'roleManage:find' 该页面进入的权限码
|
|
|
|
**/
|
|
|
|
**/
|
|
|
|
export const constantRouterMap = [
|
|
|
|
export const constantRouterMap = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/login',
|
|
|
|
path: '/login',
|
|
|
|
component: () => import('@/views/login'), hidden: true
|
|
|
|
component: () => import('@/views/login'), hidden: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/aj/**',
|
|
|
|
path: '/aj/**',
|
|
|
|
component: () => import('@/views/bigScreenReport/aj'),
|
|
|
|
component: () => import('@/views/bigScreenReport/aj'),
|
|
|
|
hidden: true
|
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/index',
|
|
|
|
path: '/index',
|
|
|
|
component: Layout,
|
|
|
|
component: Layout,
|
|
|
|
name: 'index',
|
|
|
|
name: 'index',
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '首页',
|
|
|
|
title: '首页',
|
|
|
|
icon: 'iconhome2'
|
|
|
|
icon: 'iconhome2'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '',
|
|
|
|
path: '',
|
|
|
|
component: () => import('@/views/home/index'),
|
|
|
|
component: () => import('@/views/home/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '首页',
|
|
|
|
title: '首页',
|
|
|
|
icon: 'iconhome2',
|
|
|
|
icon: 'iconhome2',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true
|
|
|
|
requireAuth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/access',
|
|
|
|
path: '/access',
|
|
|
|
name: 'access',
|
|
|
|
name: 'access',
|
|
|
|
component: Layout,
|
|
|
|
component: Layout,
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '用户权限',
|
|
|
|
title: '用户权限',
|
|
|
|
icon: 'icondfzq-',
|
|
|
|
icon: 'icondfzq-',
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'authorityManage|roleManage|userManage'
|
|
|
|
permission: 'authorityManage|roleManage|userManage'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'authority',
|
|
|
|
path: 'authority',
|
|
|
|
name: 'authority',
|
|
|
|
name: 'authority',
|
|
|
|
component: () => import('@/views/accessAuthority/index'),
|
|
|
|
component: () => import('@/views/accessAuthority/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '权限管理',
|
|
|
|
title: '权限管理',
|
|
|
|
icon: 'iconquanxian',
|
|
|
|
icon: 'iconquanxian',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'authorityManage'
|
|
|
|
permission: 'authorityManage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'role',
|
|
|
|
path: 'role',
|
|
|
|
name: 'role',
|
|
|
|
name: 'role',
|
|
|
|
component: () => import('@/views/accessRole/index'),
|
|
|
|
component: () => import('@/views/accessRole/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '角色管理',
|
|
|
|
title: '角色管理',
|
|
|
|
icon: 'iconjiaose1',
|
|
|
|
icon: 'iconjiaose1',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'roleManage'
|
|
|
|
permission: 'roleManage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'user',
|
|
|
|
path: 'user',
|
|
|
|
name: 'user',
|
|
|
|
name: 'user',
|
|
|
|
component: () => import('@/views/accessUser/index'),
|
|
|
|
component: () => import('@/views/accessUser/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '用户管理',
|
|
|
|
title: '用户管理',
|
|
|
|
icon: 'iconyonghu',
|
|
|
|
icon: 'iconyonghu',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'userManage'
|
|
|
|
permission: 'userManage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/report',
|
|
|
|
path: '/report',
|
|
|
|
name: 'report',
|
|
|
|
name: 'report',
|
|
|
|
component: Layout,
|
|
|
|
component: Layout,
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '报表设计',
|
|
|
|
title: '报表设计',
|
|
|
|
icon: 'iconnavicon-ywcs',
|
|
|
|
icon: 'iconnavicon-ywcs',
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'datasourceManage|resultsetManage|reportManage|bigScreenManage'
|
|
|
|
permission: 'datasourceManage|resultsetManage|reportManage|bigScreenManage'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'datasource',
|
|
|
|
path: 'datasource',
|
|
|
|
name: 'datasource',
|
|
|
|
name: 'datasource',
|
|
|
|
component: () => import('@/views/datasource/index'),
|
|
|
|
component: () => import('@/views/datasource/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '数据源',
|
|
|
|
title: '数据源',
|
|
|
|
icon: 'icondatabase',
|
|
|
|
icon: 'icondatabase',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'datasourceManage'
|
|
|
|
permission: 'datasourceManage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'resultset',
|
|
|
|
path: 'resultset',
|
|
|
|
name: 'resultset',
|
|
|
|
name: 'resultset',
|
|
|
|
component: () => import('@/views/resultset/index'),
|
|
|
|
component: () => import('@/views/resultset/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '数据集',
|
|
|
|
title: '数据集',
|
|
|
|
icon: 'iconAPIwangguan',
|
|
|
|
icon: 'iconAPIwangguan',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'resultsetManage'
|
|
|
|
permission: 'resultsetManage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'report',
|
|
|
|
path: 'report',
|
|
|
|
name: 'reportIndex',
|
|
|
|
name: 'reportIndex',
|
|
|
|
component: () => import('@/views/reportManage/index'),
|
|
|
|
component: () => import('@/views/reportManage/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '报表管理',
|
|
|
|
title: '报表管理',
|
|
|
|
icon: 'iconnavicon-ywcs',
|
|
|
|
icon: 'iconnavicon-ywcs',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'reportManage'
|
|
|
|
permission: 'reportManage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'bigscreen',
|
|
|
|
path: 'bigscreen',
|
|
|
|
name: 'bigscreen',
|
|
|
|
name: 'bigscreen',
|
|
|
|
component: () => import('@/views/bigScreenReport/index'),
|
|
|
|
component: () => import('@/views/bigScreenReport/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '大屏报表',
|
|
|
|
title: '大屏报表',
|
|
|
|
icon: 'iconchufaqipeizhi-hui',
|
|
|
|
icon: 'iconchufaqipeizhi-hui',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'bigScreenManage'
|
|
|
|
permission: 'bigScreenManage'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'excelreport',
|
|
|
|
path: 'excelreport',
|
|
|
|
name: 'excelreport',
|
|
|
|
name: 'excelreport',
|
|
|
|
component: () => import('@/views/excelreport/index'),
|
|
|
|
component: () => import('@/views/excelreport/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '表格报表',
|
|
|
|
title: '表格报表',
|
|
|
|
icon: 'iconliebiao',
|
|
|
|
icon: 'iconliebiao',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'excelManage'
|
|
|
|
permission: 'excelManage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
path: 'reportshare',
|
|
|
|
|
|
|
|
name: 'reportshare',
|
|
|
|
|
|
|
|
component: () => import('@/views/reportShare/index'),
|
|
|
|
|
|
|
|
meta: {
|
|
|
|
|
|
|
|
title: '报表分享',
|
|
|
|
|
|
|
|
icon: 'iconliebiao',
|
|
|
|
|
|
|
|
keepAlive: true,
|
|
|
|
|
|
|
|
requireAuth: true,
|
|
|
|
|
|
|
|
permission: 'reportShareManage'
|
|
|
|
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/system',
|
|
|
|
path: '/system',
|
|
|
|
name: 'system',
|
|
|
|
name: 'system',
|
|
|
|
component: Layout,
|
|
|
|
component: Layout,
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '系统设置',
|
|
|
|
title: '系统设置',
|
|
|
|
icon: 'iconshezhi',
|
|
|
|
icon: 'iconshezhi',
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'fileManage|dictManage|dictItemManage'
|
|
|
|
permission: 'fileManage|dictManage|dictItemManage'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
children: [
|
|
|
|
children: [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'file',
|
|
|
|
path: 'file',
|
|
|
|
name: 'file',
|
|
|
|
name: 'file',
|
|
|
|
component: () => import('@/views/fileManagement/index'),
|
|
|
|
component: () => import('@/views/fileManagement/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '文件管理',
|
|
|
|
title: '文件管理',
|
|
|
|
icon: 'iconfill_folder',
|
|
|
|
icon: 'iconfill_folder',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'fileManage'
|
|
|
|
permission: 'fileManage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'dict',
|
|
|
|
path: 'dict',
|
|
|
|
name: 'dict',
|
|
|
|
name: 'dict',
|
|
|
|
component: () => import('@/views/dict/index'),
|
|
|
|
component: () => import('@/views/dict/index'),
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '数据字典',
|
|
|
|
title: '数据字典',
|
|
|
|
icon: 'iconzidian',
|
|
|
|
icon: 'iconzidian',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'dictManage'
|
|
|
|
permission: 'dictManage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: 'dictItem',
|
|
|
|
path: 'dictItem',
|
|
|
|
name: 'dictItem',
|
|
|
|
name: 'dictItem',
|
|
|
|
component: () => import('@/views/dict/dict-item'),
|
|
|
|
component: () => import('@/views/dict/dict-item'),
|
|
|
|
hidden: true,
|
|
|
|
hidden: true,
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
title: '字典项',
|
|
|
|
title: '字典项',
|
|
|
|
icon: 'iconzidianxiang',
|
|
|
|
icon: 'iconzidianxiang',
|
|
|
|
keepAlive: true,
|
|
|
|
keepAlive: true,
|
|
|
|
requireAuth: true,
|
|
|
|
requireAuth: true,
|
|
|
|
permission: 'dictItemManage'
|
|
|
|
permission: 'dictItemManage'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/bigscreen/viewer',
|
|
|
|
path: '/bigscreen/viewer',
|
|
|
|
component: () => import('@/views/bigscreenDesigner/viewer'),
|
|
|
|
component: () => import('@/views/bigscreenDesigner/viewer'),
|
|
|
|
hidden: true,
|
|
|
|
hidden: true,
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
requireAuth: true
|
|
|
|
requireAuth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/bigscreen/designer',
|
|
|
|
path: '/bigscreen/designer',
|
|
|
|
component: () => import('@/views/bigscreenDesigner/designer'),
|
|
|
|
component: () => import('@/views/bigscreenDesigner/designer'),
|
|
|
|
hidden: true,
|
|
|
|
hidden: true,
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
requireAuth: true
|
|
|
|
requireAuth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/excelreport/viewer',
|
|
|
|
path: '/excelreport/viewer',
|
|
|
|
component: () => import('@/views/excelreport/viewer'),
|
|
|
|
component: () => import('@/views/excelreport/viewer'),
|
|
|
|
hidden: true,
|
|
|
|
hidden: true,
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
requireAuth: true
|
|
|
|
requireAuth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/excelreport/designer',
|
|
|
|
path: '/excelreport/designer',
|
|
|
|
component: () => import('@/views/excelreport/designer'),
|
|
|
|
component: () => import('@/views/excelreport/designer'),
|
|
|
|
hidden: true,
|
|
|
|
hidden: true,
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
requireAuth: true
|
|
|
|
requireAuth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 重写大屏
|
|
|
|
// 重写大屏
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/screenDesigner',
|
|
|
|
path: '/screenDesigner',
|
|
|
|
component: () => import('@/views/screenDesigner/index'),
|
|
|
|
component: () => import('@/views/screenDesigner/index'),
|
|
|
|
name: 'screenDesigner',
|
|
|
|
name: 'screenDesigner',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/screen/preview',
|
|
|
|
path: '/screen/preview',
|
|
|
|
component: () => import('@/views/screenDesigner/preview'),
|
|
|
|
component: () => import('@/views/screenDesigner/preview'),
|
|
|
|
hidden: true,
|
|
|
|
hidden: true,
|
|
|
|
meta: {
|
|
|
|
meta: {
|
|
|
|
requireAuth: true
|
|
|
|
requireAuth: true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '/404',
|
|
|
|
path: '/404',
|
|
|
|
component: () => import('@/views/404'),
|
|
|
|
component: () => import('@/views/404'),
|
|
|
|
hidden: true
|
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
path: '*',
|
|
|
|
path: '*',
|
|
|
|
redirect: '/login',
|
|
|
|
redirect: '/login',
|
|
|
|
hidden: true
|
|
|
|
hidden: true
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|