|
|
|
@ -64,11 +64,11 @@ export const constantRoutes = [
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
component: Layout,
|
|
|
|
|
redirect: 'index',
|
|
|
|
|
redirect: 'baseresource',
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: '/',
|
|
|
|
|
component: () => import('@/views/system/user/index'),
|
|
|
|
|
path: '/baseresource',
|
|
|
|
|
component: () => import('@/views/system/baseresource/index'),
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
@ -87,295 +87,295 @@ export const constantRoutes = [
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/resource',//资源管理
|
|
|
|
|
component: () => import('@/views/system/resource/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
// {
|
|
|
|
|
// path: '/resource',//资源管理
|
|
|
|
|
// component: () => import('@/views/system/resource/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/patent',//资源管理:专利
|
|
|
|
|
component: () => import('@/views/system/patent/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/patent',//资源管理:专利
|
|
|
|
|
// component: () => import('@/views/system/patent/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/model',//资源管理:典型
|
|
|
|
|
component: () => import('@/views/system/model1/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/model',//资源管理:典型
|
|
|
|
|
// component: () => import('@/views/system/model1/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/lifecycle',//资源管理:生命周期
|
|
|
|
|
component: () => import('@/views/system/lifecycle/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/lifecycle',//资源管理:生命周期
|
|
|
|
|
// component: () => import('@/views/system/lifecycle/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/bigques',//资源管理:大事件
|
|
|
|
|
component: () => import('@/views/system/bigques/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/bigques',//资源管理:大事件
|
|
|
|
|
// component: () => import('@/views/system/bigques/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/issue',//资源管理:发布量
|
|
|
|
|
component: () => import('@/views/system/issue/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/issue',//资源管理:发布量
|
|
|
|
|
// component: () => import('@/views/system/issue/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/batch',//资源管理:批号
|
|
|
|
|
component: () => import('@/views/system/batch/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/batch',//资源管理:批号
|
|
|
|
|
// component: () => import('@/views/system/batch/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/demon',//资源管理:示范
|
|
|
|
|
component: () => import('@/views/system/demon/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/demon',//资源管理:示范
|
|
|
|
|
// component: () => import('@/views/system/demon/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
/////////////////////////////
|
|
|
|
|
{
|
|
|
|
|
path: '/production',//生产管理
|
|
|
|
|
component: () => import('@/views/system/production/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/consumables',//生产管理:消耗品投入
|
|
|
|
|
component: () => import('@/views/system/consumables/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/area',//生产管理:农业基地面积
|
|
|
|
|
component: () => import('@/views/system/area/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/output',//生产管理:产品产量
|
|
|
|
|
component: () => import('@/views/system/output/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/distribution',//生产管理:资源分布
|
|
|
|
|
component: () => import('@/views/system/distribution/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/internet',//生产管理:物联网设备
|
|
|
|
|
component: () => import('@/views/system/internet/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/weather',//生产管理:气象预警
|
|
|
|
|
component: () => import('@/views/system/weather/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/suggest',//生产管理:农事建议
|
|
|
|
|
component: () => import('@/views/system/suggest/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
////////////////////////////////////////
|
|
|
|
|
{
|
|
|
|
|
path: '/industry',//产业规划
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/baseresource',//产业规划:基本资源
|
|
|
|
|
component: () => import('@/views/system/baseresource/index.vue'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/selenium',//产业规划:富硒产业
|
|
|
|
|
component: () => import('@/views/system/selenium/index.vue'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/demonstrate',//产业规划:示范项目
|
|
|
|
|
component: () => import('@/views/system/demonstrate/index.vue'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/cultivation',//产业规划:富硒市场主体
|
|
|
|
|
component: () => import('@/views/system/cultivation/index.vue'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/productionval',//产业规划:富硒市场产值
|
|
|
|
|
component: () => import('@/views/system/productionval/index.vue'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/curve',//产业规划:产值曲线
|
|
|
|
|
component: () => import('@/views/system/curve/index.vue'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/policy',//产业规划:政策支持
|
|
|
|
|
component: () => import('@/views/system/policy/index.vue'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
//////////////////////////////
|
|
|
|
|
{
|
|
|
|
|
path: '/standard',//标准体系
|
|
|
|
|
component: () => import('@/views/system/standard/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/tixistatistics',//标准体系:体系统计
|
|
|
|
|
component: () => import('@/views/system/tixistatistics/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/bzstatistics',//标准体系:标准统计
|
|
|
|
|
component: () => import('@/views/system/bzstatistics/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
// ///////////////////////////
|
|
|
|
|
{
|
|
|
|
|
path: '/recommend',//产品推荐
|
|
|
|
|
component: () => import('@/views/system/recommend/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/commerce',//产品推荐:电商销售额
|
|
|
|
|
component: () => import('@/views/system/commerce/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/journalism',//产品推荐:新闻报道
|
|
|
|
|
component: () => import('@/views/system/journalism/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/enterprisesales',//产品推荐:企业销售数据
|
|
|
|
|
component: () => import('@/views/system/enterprisesales/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/tongji',//产品推荐:统计
|
|
|
|
|
component: () => import('@/views/system/tongji/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/regionalbrand',//产品推荐:统计
|
|
|
|
|
component: () => import('@/views/system/regionalbrand/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/specialist',//产品推荐:专家
|
|
|
|
|
component: () => import('@/views/system/specialist/index'),
|
|
|
|
|
hidden: true,
|
|
|
|
|
redirect: 'noredirect',
|
|
|
|
|
},
|
|
|
|
|
// },
|
|
|
|
|
// /////////////////////////////
|
|
|
|
|
// {
|
|
|
|
|
// path: '/production',//生产管理
|
|
|
|
|
// component: () => import('@/views/system/production/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/consumables',//生产管理:消耗品投入
|
|
|
|
|
// component: () => import('@/views/system/consumables/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/area',//生产管理:农业基地面积
|
|
|
|
|
// component: () => import('@/views/system/area/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/output',//生产管理:产品产量
|
|
|
|
|
// component: () => import('@/views/system/output/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/distribution',//生产管理:资源分布
|
|
|
|
|
// component: () => import('@/views/system/distribution/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/internet',//生产管理:物联网设备
|
|
|
|
|
// component: () => import('@/views/system/internet/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/weather',//生产管理:气象预警
|
|
|
|
|
// component: () => import('@/views/system/weather/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/suggest',//生产管理:农事建议
|
|
|
|
|
// component: () => import('@/views/system/suggest/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// //产业规划
|
|
|
|
|
// {
|
|
|
|
|
// path: '/industry',//产业规划
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/baseresource',//产业规划:基本资源
|
|
|
|
|
// component: () => import('@/views/system/baseresource/index.vue'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/selenium',//产业规划:富硒产业
|
|
|
|
|
// component: () => import('@/views/system/selenium/index.vue'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/demonstrate',//产业规划:示范项目
|
|
|
|
|
// component: () => import('@/views/system/demonstrate/index.vue'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/cultivation',//产业规划:富硒市场主体
|
|
|
|
|
// component: () => import('@/views/system/cultivation/index.vue'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/productionval',//产业规划:富硒市场产值
|
|
|
|
|
// component: () => import('@/views/system/productionval/index.vue'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/curve',//产业规划:产值曲线
|
|
|
|
|
// component: () => import('@/views/system/curve/index.vue'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/policy',//产业规划:政策支持
|
|
|
|
|
// component: () => import('@/views/system/policy/index.vue'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// //////////////////////////////
|
|
|
|
|
// {
|
|
|
|
|
// path: '/standard',//标准体系
|
|
|
|
|
// component: () => import('@/views/system/standard/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/tixistatistics',//标准体系:体系统计
|
|
|
|
|
// component: () => import('@/views/system/tixistatistics/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/bzstatistics',//标准体系:标准统计
|
|
|
|
|
// component: () => import('@/views/system/bzstatistics/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// // ///////////////////////////
|
|
|
|
|
// {
|
|
|
|
|
// path: '/recommend',//产品推荐
|
|
|
|
|
// component: () => import('@/views/system/recommend/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/commerce',//产品推荐:电商销售额
|
|
|
|
|
// component: () => import('@/views/system/commerce/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/journalism',//产品推荐:新闻报道
|
|
|
|
|
// component: () => import('@/views/system/journalism/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/enterprisesales',//产品推荐:企业销售数据
|
|
|
|
|
// component: () => import('@/views/system/enterprisesales/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/tongji',//产品推荐:统计
|
|
|
|
|
// component: () => import('@/views/system/tongji/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/regionalbrand',//产品推荐:统计
|
|
|
|
|
// component: () => import('@/views/system/regionalbrand/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/specialist',//产品推荐:专家
|
|
|
|
|
// component: () => import('@/views/system/specialist/index'),
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// redirect: 'noredirect',
|
|
|
|
|
// },
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
// 动态路由,基于用户权限动态去加载
|
|
|
|
|
export const dynamicRoutes = [
|
|
|
|
|
{
|
|
|
|
|
path: '/system/user-auth',
|
|
|
|
|
component: Layout,
|
|
|
|
|
hidden: true,
|
|
|
|
|
permissions: ['system:user:edit'],
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'role/:userId(\\d+)',
|
|
|
|
|
component: () => import('@/views/system/user/authRole'),
|
|
|
|
|
name: 'AuthRole',
|
|
|
|
|
meta: { title: '分配角色', activeMenu: '/system/user' }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/system/role-auth',
|
|
|
|
|
component: Layout,
|
|
|
|
|
hidden: true,
|
|
|
|
|
permissions: ['system:role:edit'],
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'user/:roleId(\\d+)',
|
|
|
|
|
component: () => import('@/views/system/role/authUser'),
|
|
|
|
|
name: 'AuthUser',
|
|
|
|
|
meta: { title: '分配用户', activeMenu: '/system/role' }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/system/dict-data',
|
|
|
|
|
component: Layout,
|
|
|
|
|
hidden: true,
|
|
|
|
|
permissions: ['system:dict:list'],
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index/:dictId(\\d+)',
|
|
|
|
|
component: () => import('@/views/system/dict/data'),
|
|
|
|
|
name: 'Data',
|
|
|
|
|
meta: { title: '字典数据', activeMenu: '/system/dict' }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/monitor/job-log',
|
|
|
|
|
component: Layout,
|
|
|
|
|
hidden: true,
|
|
|
|
|
permissions: ['monitor:job:list'],
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index/:jobId(\\d+)',
|
|
|
|
|
component: () => import('@/views/monitor/job/log'),
|
|
|
|
|
name: 'JobLog',
|
|
|
|
|
meta: { title: '调度日志', activeMenu: '/monitor/job' }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
path: '/tool/gen-edit',
|
|
|
|
|
component: Layout,
|
|
|
|
|
hidden: true,
|
|
|
|
|
permissions: ['tool:gen:edit'],
|
|
|
|
|
children: [
|
|
|
|
|
{
|
|
|
|
|
path: 'index/:tableId(\\d+)',
|
|
|
|
|
component: () => import('@/views/tool/gen/editTable'),
|
|
|
|
|
name: 'GenEdit',
|
|
|
|
|
meta: { title: '修改生成配置', activeMenu: '/tool/gen' }
|
|
|
|
|
}
|
|
|
|
|
]
|
|
|
|
|
}
|
|
|
|
|
// {
|
|
|
|
|
// path: '/system/user-auth',
|
|
|
|
|
// component: Layout,
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// permissions: ['system:user:edit'],
|
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path: 'role/:userId(\\d+)',
|
|
|
|
|
// component: () => import('@/views/system/user/authRole'),
|
|
|
|
|
// name: 'AuthRole',
|
|
|
|
|
// meta: { title: '分配角色', activeMenu: '/system/user' }
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/system/role-auth',
|
|
|
|
|
// component: Layout,
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// permissions: ['system:role:edit'],
|
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path: 'user/:roleId(\\d+)',
|
|
|
|
|
// component: () => import('@/views/system/role/authUser'),
|
|
|
|
|
// name: 'AuthUser',
|
|
|
|
|
// meta: { title: '分配用户', activeMenu: '/system/role' }
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/system/dict-data',
|
|
|
|
|
// component: Layout,
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// permissions: ['system:dict:list'],
|
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path: 'index/:dictId(\\d+)',
|
|
|
|
|
// component: () => import('@/views/system/dict/data'),
|
|
|
|
|
// name: 'Data',
|
|
|
|
|
// meta: { title: '字典数据', activeMenu: '/system/dict' }
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/monitor/job-log',
|
|
|
|
|
// component: Layout,
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// permissions: ['monitor:job:list'],
|
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path: 'index/:jobId(\\d+)',
|
|
|
|
|
// component: () => import('@/views/monitor/job/log'),
|
|
|
|
|
// name: 'JobLog',
|
|
|
|
|
// meta: { title: '调度日志', activeMenu: '/monitor/job' }
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// },
|
|
|
|
|
// {
|
|
|
|
|
// path: '/tool/gen-edit',
|
|
|
|
|
// component: Layout,
|
|
|
|
|
// hidden: true,
|
|
|
|
|
// permissions: ['tool:gen:edit'],
|
|
|
|
|
// children: [
|
|
|
|
|
// {
|
|
|
|
|
// path: 'index/:tableId(\\d+)',
|
|
|
|
|
// component: () => import('@/views/tool/gen/editTable'),
|
|
|
|
|
// name: 'GenEdit',
|
|
|
|
|
// meta: { title: '修改生成配置', activeMenu: '/tool/gen' }
|
|
|
|
|
// }
|
|
|
|
|
// ]
|
|
|
|
|
// }
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
// 防止连续点击多次路由报错
|
|
|
|
@ -391,7 +391,7 @@ Router.prototype.replace = function push(location) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export default new Router({
|
|
|
|
|
mode: 'history', // 去掉url中的#
|
|
|
|
|
mode: 'hash', // 去掉url中的#
|
|
|
|
|
scrollBehavior: () => ({ y: 0 }),
|
|
|
|
|
routes: constantRoutes
|
|
|
|
|
})
|
|
|
|
|