1410 lines
38 KiB
JavaScript
1410 lines
38 KiB
JavaScript
import Vue from 'vue'
|
|
import Router from 'vue-router'
|
|
import store from '../store'
|
|
import { Message } from 'element-ui'
|
|
Vue.use(Router)
|
|
const routes = [
|
|
{
|
|
path: '*',
|
|
redirect: '/login'
|
|
},
|
|
// 登录页
|
|
{
|
|
path: '/login',
|
|
name: 'Login',
|
|
component: () =>
|
|
import('@/pages/login')
|
|
},
|
|
// 跳转刷新页面
|
|
{
|
|
path: '/redirect',
|
|
name: 'Redirect',
|
|
component: () =>
|
|
import('@/pages/redirect')
|
|
},
|
|
// 首页
|
|
{
|
|
path: '/home',
|
|
name: 'Home',
|
|
component: () =>
|
|
import('@/pages/home/homeContainer'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '首页',
|
|
menuId: 'G72J4WNFM8'
|
|
}
|
|
},
|
|
// 工程师信息首页
|
|
{
|
|
path: '/informationHome',
|
|
name: 'InformationHome',
|
|
component: () =>
|
|
import('@/pages/home/information'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '工程师首页',
|
|
menuId: '',
|
|
isBoolean: true
|
|
}
|
|
},
|
|
{
|
|
path: '/home1',
|
|
name: 'Home',
|
|
component: () =>
|
|
import('@/pages/home1'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '福田首页',
|
|
menuId: '',
|
|
isBoolean: true
|
|
}
|
|
},
|
|
// 个人中心
|
|
{
|
|
path: '/personal',
|
|
name: 'Personal',
|
|
redirect: () => {
|
|
if (hasRouterPermission('ZY9RFA4M35') && hasRouterPermission('JCEV4AEV32')) {
|
|
return '/dynamics'
|
|
} else {
|
|
return getRedirectPath('ZY9RFA4M35') || '/info'
|
|
}
|
|
},
|
|
component: resolve => require(['@/pages/personal'], resolve),
|
|
meta: {
|
|
title: '个人',
|
|
menuId: 'ZY9RFA4M35'
|
|
},
|
|
children: [
|
|
// {
|
|
// path: '/info',
|
|
// name: 'PersonalInfo',
|
|
// component: resolve => require(['@/pages/personal/pages/personal-info'], resolve),
|
|
// meta: {
|
|
// requireAuth: true,
|
|
// title: '个人信息',
|
|
// menuId: '8K7FDHG89G'
|
|
// }
|
|
// },
|
|
{
|
|
path: '/dynamics',
|
|
name: 'MyDynamics',
|
|
component: resolve => require(['@/pages/personal/pages/my-dynamics'], resolve),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '我的消息',
|
|
menuId: 'JCEV4AEV32'
|
|
}
|
|
},
|
|
{
|
|
path: '/collection',
|
|
name: 'MyCollection',
|
|
component: resolve => require(['@/pages/personal/pages/my-collection'], resolve),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '我的收藏',
|
|
menuId: 'JY5LKL2HPD'
|
|
}
|
|
},
|
|
{
|
|
path: '/jump/:id',
|
|
name: 'DetailsJump',
|
|
component: resolve => require(['@/pages/personal/pages/detailsJump'], resolve),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '动态跳转',
|
|
menuId: '5GQE5EABTY'
|
|
}
|
|
},
|
|
{
|
|
path: '/browsing',
|
|
name: 'MyBrowsing',
|
|
component: resolve => require(['@/pages/personal/pages/my-browsing'], resolve),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '我的浏览',
|
|
menuId: 'HAEY2A4LMX'
|
|
}
|
|
},
|
|
{
|
|
path: '/MyEnterpriseStandard',
|
|
name: 'MyEnterpriseStandard',
|
|
component: resolve => require(['@/pages/personal/pages/my-enterpriseStandard'], resolve),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '我的企标',
|
|
menuId: 'LKU3W23UMEHDM9VLDHGK'
|
|
}
|
|
},
|
|
{
|
|
path: '/push',
|
|
name: 'MyPush',
|
|
component: resolve => require(['@/pages/personal/pages/my-push'], resolve),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '已收分享',
|
|
menuId: '9F8T7DPYHE'
|
|
}
|
|
},
|
|
{
|
|
path: '/forward',
|
|
name: 'MyForward',
|
|
component: resolve => require(['@/pages/personal/pages/my-forward'], resolve),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '已发分享',
|
|
menuId: 'K45Y9TGKZV2K4XP4CETD'
|
|
}
|
|
},
|
|
{
|
|
path: '/plate',
|
|
name: 'IndividualPlate',
|
|
component: resolve => require(['@/pages/personal/pages/individual-plate'], resolve),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '我的板块',
|
|
menuId: 'TUYHX8JBWV'
|
|
}
|
|
},
|
|
{
|
|
path: '/questionsAndAnswers',
|
|
name: 'QuestionsAndAnswers',
|
|
component: resolve => require(['@/pages/personal/pages/questionsAndAnswers'], resolve),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '我的问答',
|
|
menuId: '8VKLZATQQG4NQHXV9UDS'
|
|
}
|
|
}
|
|
]
|
|
},
|
|
// ************************** 流程中心 *******************************
|
|
{
|
|
path: '/processCenter',
|
|
name: 'ProcessCenter',
|
|
redirect: () => {
|
|
return 'processCenter'
|
|
},
|
|
component: () =>
|
|
import('@/pages/processCenter'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '流程中心',
|
|
menuId: '6GDJ5JDHUS'
|
|
},
|
|
children: [
|
|
{
|
|
path: '/processCenter',
|
|
name: 'processCenter',
|
|
component: () =>
|
|
import('@/pages/processCenter/pages/processList'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '流程中心'
|
|
}
|
|
},
|
|
// 新建流程
|
|
{
|
|
path: '/createProcessNew',
|
|
name: 'CreateProcessNew',
|
|
component: () => import('@/pages/processCenter/pages/newProcess'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '新建流程'
|
|
}
|
|
},
|
|
{
|
|
path: '/bzfyStep1',
|
|
name: 'bzfyStep1',
|
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzfy/step1.vue'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准需求(翻译)申请流程'
|
|
}
|
|
},
|
|
{
|
|
path: '/processDetail',
|
|
name: 'ProcessDetail',
|
|
component: () => import('@/pages/processCenter/pages/processDetail/index.vue'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '流程详情'
|
|
}
|
|
},
|
|
{
|
|
path: '/bzffStep1',
|
|
name: 'bzffStep1',
|
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzff/step1.vue'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准发放申请流程'
|
|
}
|
|
},
|
|
{
|
|
path: '/bzrkStep1',
|
|
name: 'bzrkStep1',
|
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzrk/step1.vue'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准入库流程'
|
|
}
|
|
},
|
|
{
|
|
path: '/bzrkStep3',
|
|
name: 'bzrkStep3',
|
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzrk/step3.vue'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准入库流程'
|
|
}
|
|
},
|
|
{
|
|
path: '/bzrkStep4',
|
|
name: 'bzrkStep4',
|
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzrk/step4.vue'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准入库流程'
|
|
}
|
|
},
|
|
{
|
|
path: '/bzrkStep5',
|
|
name: 'bzrkStep5',
|
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzrk/step5.vue'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准入库流程'
|
|
}
|
|
},
|
|
{
|
|
path: '/bzrkStep2',
|
|
name: 'bzrkStep2',
|
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzrk/step2.vue'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准入库流程'
|
|
}
|
|
},
|
|
{
|
|
path: '/bzdyStep1',
|
|
name: 'bzdyStep1',
|
|
component: () => import('@/pages/processCenter/pages/creatProcess/bzdy/step1.vue'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准调研流程'
|
|
}
|
|
},
|
|
{
|
|
path: '/zqyjStep1',
|
|
name: 'zqyjStep1',
|
|
component: () => import('@/pages/processCenter/pages/creatProcess/zqyj/step1.vue'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准征求意见流程'
|
|
}
|
|
},
|
|
]
|
|
},
|
|
// 本地工具
|
|
{
|
|
path: '/localTool',
|
|
name: 'LocalTool',
|
|
redirect: () => {
|
|
return 'standardRecognition'
|
|
},
|
|
component: () =>
|
|
import('@/pages/localTool'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '本地工具',
|
|
menuId: 'F3RJJEMLK8'
|
|
},
|
|
children: [
|
|
{
|
|
path: '/warningManage',
|
|
name: 'warningManage',
|
|
component: () =>
|
|
import('@/pages/localTool/warningManage'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '预警管理'
|
|
}
|
|
},
|
|
{
|
|
path: '/standardRecognition',
|
|
name: 'StandardRecognition',
|
|
component: () =>
|
|
import('@/pages/localTool/standardRecognition'),
|
|
meta: {
|
|
requireAuth: false,
|
|
title: '标准内容自动识别',
|
|
menuId: '27RCLPSNL22JAMJ2MBTZ'
|
|
}
|
|
},
|
|
{
|
|
path: '/standAutoSplit',
|
|
name: 'StandAutoSplit',
|
|
component: () =>
|
|
import('@/pages/localTool/standAutoSplit'),
|
|
meta: {
|
|
requireAuth: false,
|
|
title: '标准拆分',
|
|
menuId: 'B8UYM3WFCMGXR2BPF9JA'
|
|
}
|
|
},
|
|
{
|
|
path: '/itemSplitInfo',
|
|
name: 'ItemSplitInfo',
|
|
component: () =>
|
|
import('@/pages/localTool/standAutoSplit/pages/itemSplitInfo'),
|
|
meta: {
|
|
requireAuth: false,
|
|
// parentPath: '/standAutoSplit',
|
|
title: '标准分解单'
|
|
}
|
|
},
|
|
// 标准编号申领
|
|
{
|
|
path: '/applicationStandardNumber',
|
|
name: 'applicationStandardNumber',
|
|
component: () =>
|
|
import('@/pages/localTool/applicationStandardNumber'),
|
|
meta: {
|
|
requireAuth: false,
|
|
title: '标准编号申领'
|
|
}
|
|
},
|
|
/// ///////////标准比对
|
|
{
|
|
path: '/standContrast',
|
|
name: 'StandContrast',
|
|
component: () =>
|
|
import('@/pages/localTool/standContrast'),
|
|
meta: {
|
|
requireAuth: false,
|
|
title: '标准比对',
|
|
menuId: '3RYN5FLTTDYP7D2PJ44H'
|
|
}
|
|
},
|
|
{
|
|
path: '/contrastDetails',
|
|
name: 'ContrastDetails',
|
|
component: () =>
|
|
import('@/pages/localTool/standContrast/pages/contrastDetails'),
|
|
meta: {
|
|
requireAuth: false,
|
|
parentPath: '/standContrast',
|
|
title: '对比详情'
|
|
}
|
|
},
|
|
{
|
|
path: '/textComparison',
|
|
name: 'TextComparison',
|
|
component: () =>
|
|
import('@/pages/localTool/standContrast/pages/textComparison'),
|
|
meta: {
|
|
requireAuth: false,
|
|
parentPath: '/standContrast',
|
|
title: '全文对比'
|
|
}
|
|
},
|
|
{
|
|
path: '/seeDatalis',
|
|
name: 'SeeDatalis',
|
|
component: () =>
|
|
import('@/pages/localTool/standContrast/pages/seeDatalis'),
|
|
meta: {
|
|
requireAuth: false,
|
|
parentPath: '/standContrast',
|
|
title: '对比查看'
|
|
}
|
|
},
|
|
{
|
|
path: '/comparisonClauses',
|
|
name: 'ComparisonClauses',
|
|
component: () =>
|
|
import('@/pages/localTool/standContrast/pages/comparisonClauses'),
|
|
meta: {
|
|
requireAuth: false,
|
|
parentPath: '/standContrast',
|
|
title: '对比查看'
|
|
}
|
|
},
|
|
{
|
|
path: '/standardComparisonLibrary',
|
|
name: 'StandardComparisonLibrary',
|
|
component: () =>
|
|
import('@/pages/standardComparisonLibrary'),
|
|
meta: {
|
|
requireAuth: false,
|
|
title: '标准比对库',
|
|
menuId: 'AH56UDHHBVF5V7WZFWJQ'
|
|
}
|
|
},
|
|
]
|
|
},
|
|
{
|
|
path: '/standardWarning',
|
|
name: 'StandardWarning',
|
|
component: () =>
|
|
import('@/pages/localTool/standardWarning'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准预警',
|
|
menuId: 'ABCLRLJUQN44ENBS93CQ'
|
|
}
|
|
},
|
|
// 技术要求清单
|
|
{
|
|
path: '/skillReq',
|
|
name: 'SkillReq',
|
|
redirect: () => {
|
|
return 'standardWarning'
|
|
},
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '技术要求清单'
|
|
},
|
|
children: [
|
|
{
|
|
path: '/skillReqSee',
|
|
name: 'SkillReqSee',
|
|
component: () =>
|
|
import('@/pages/skillReq/SkillReqSee/SkillReqSee'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '技术要求清单查看'
|
|
}
|
|
},
|
|
{
|
|
path: '/skillReqAdd',
|
|
name: 'SkillReqAdd',
|
|
component: () =>
|
|
import('@/pages/skillReq/SkillReqAdd/SkillReqAdd'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '技术要求清单管理'
|
|
}
|
|
}
|
|
]
|
|
},
|
|
// 标准法规库
|
|
{
|
|
path: '/regulatoryRepository',
|
|
name: 'RegulatoryRepository',
|
|
redirect: () => {
|
|
return 'dynamicInformation'
|
|
},
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准法规库',
|
|
menuId: 'PMYP5AG3M2'
|
|
},
|
|
children: [
|
|
// 动态&资料
|
|
{
|
|
path: '/dynamicInformation',
|
|
name: 'DynamicInformation',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/dynamicInformation/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '动态&资料',
|
|
menuId: 'RAFQ4N4ARF'
|
|
}
|
|
},
|
|
{
|
|
path: '/dynamicInformationMore',
|
|
name: 'DynamicInformationMore',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/dynamicInformation/indexMore'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '资料中心更多详情',
|
|
parentPath: '/dynamicInformation'
|
|
}
|
|
},
|
|
// 国内标准法规
|
|
{
|
|
path: '/domesticStandardsAndRegulations',
|
|
name: 'domesticStandardsAndRegulations',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/domesticStandardsAndRegulations/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '国内标准法规',
|
|
menuId: 'A59EFAQ7AC'
|
|
}
|
|
},
|
|
// 标准征求意见
|
|
{
|
|
path: '/standardForComments',
|
|
name: 'standardForComments',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/standardForComments/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准征求意见',
|
|
menuId: ''
|
|
}
|
|
},
|
|
|
|
// 本地产品/项目库
|
|
{
|
|
path: '/localProductsOrProjectLibrary',
|
|
name: 'localProductsOrProjectLibrary',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/localProductsOrProjectLibrary/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '车型/项目库',
|
|
menuId: 'PCZKM8TQJAH5UP5EAXTJ'
|
|
}
|
|
},
|
|
// 标准涉及项目
|
|
{
|
|
path: '/standInvolveProject',
|
|
name: 'StandInvolveProject',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/standInvolveProject'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准合规评估结果', // 把 标准涉及项目 这几个字 改成 标准合规评估结果
|
|
menuId: 'JURHS3LVP35US88ABULS'
|
|
}
|
|
},
|
|
// 本地产品/项目库详情页
|
|
{
|
|
path: '/localProductDetail',
|
|
name: 'LocalProductDetail',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/localProductsOrProjectLibrary/pages/details'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '车型/项目库',
|
|
parentPath: '/localProductsOrProjectLibrary'
|
|
}
|
|
},
|
|
// 企标制修订计划管理库
|
|
{
|
|
path: '/enterBSysRevPlanManaLib',
|
|
name: 'enterBSysRevPlanManaLib',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/enterBSysRevPlanManaLib'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '企标制修订计划管理库',
|
|
menuId: 'WW7YDHQ9Z679TGMDZMUS'
|
|
}
|
|
},
|
|
// 海外标准法规
|
|
{
|
|
path: '/foreignStandardsAndRegulations',
|
|
name: 'foreignStandardsAndRegulations',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/foreignStandardsAndRegulations/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '海外标准法规',
|
|
menuId: '6K8A2RZYRE'
|
|
}
|
|
},
|
|
// 本地动态搜索
|
|
{
|
|
path: '/queryDynamicInformation/:keywords?/:startTime?/:endTime?',
|
|
name: 'QueryDynamicInformation',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/dynamicInformation/pages/QueryDynamicInformation'),
|
|
meta: {
|
|
requireAuth: true,
|
|
parentPath: '/dynamicInformation',
|
|
title: '本地动态搜索'
|
|
}
|
|
},
|
|
// 本地动态详情
|
|
{
|
|
path: '/dynamicInformationDetails/:id',
|
|
name: 'DynamicInformationDetails',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/dynamicInformation/pages/DynamicInformationDetails'),
|
|
meta: {
|
|
requireAuth: true,
|
|
parentPath: '/dynamicInformation',
|
|
title: '本地动态详情'
|
|
}
|
|
},
|
|
// 国内动态
|
|
{
|
|
path: '/domesticDynamics',
|
|
name: 'DomesticDynamics',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/dynamicInformation/pages/components/DomesticDynamics'),
|
|
meta: {
|
|
requireAuth: true,
|
|
parentPath: '/dynamicInformation',
|
|
title: '国内动态'
|
|
}
|
|
},
|
|
// 国外动态
|
|
{
|
|
path: '/internationalDynamics',
|
|
name: 'InternationalDynamics',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/dynamicInformation/pages/components/InternationalDynamics'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '国外动态',
|
|
parentPath: '/dynamicInformation',
|
|
menuId: 'CHZFKH6J89'
|
|
}
|
|
},
|
|
// 资料中心
|
|
{
|
|
path: '/informationCenter/:id?',
|
|
name: 'InformationCenter',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/dynamicInformation/pages/components/InformationCenter'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '资料中心',
|
|
parentPath: '/dynamicInformation',
|
|
menuId: 'MYVMD8FFJ8'
|
|
}
|
|
},
|
|
// 实施预警
|
|
{
|
|
path: '/implementWarning',
|
|
name: 'ImplementWarning',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/dynamicInformation/pages/components/ImplementWarning'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '实施预警',
|
|
parentPath: '/standardWarning',
|
|
menuId: 'DDKSFGDQL4'
|
|
}
|
|
},
|
|
{
|
|
path: '/foreignRegulationsDatabase',
|
|
name: 'ForeignRegulationsDatabase',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/foreignRegulationsDatabase/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '国内外政策',
|
|
menuId: '4DB4Y2H3NH'
|
|
}
|
|
},
|
|
{
|
|
path: '/enterpriseStandardDatabase/:type?',
|
|
name: 'EnterpriseStandardDatabase',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/enterpriseStandardDatabase/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '企业标准库',
|
|
menuId: '3YVZP8R4TC',
|
|
parentPath: '/enterpriseStandardDatabase'
|
|
}
|
|
},
|
|
// 标准法规库 - 标准法规清单
|
|
{
|
|
path: '/accessStandardsAndRegulations',
|
|
name: 'AccessStandardsAndRegulations',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/accessStandardsAndRegulations'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准法规清单',
|
|
menuId: 'UR3CSDWEQM6Q2GEW339L'
|
|
}
|
|
},
|
|
// 标准法规库 - 标准法规清单
|
|
{
|
|
path: '/details/:id',
|
|
name: 'AccessStandardDetails',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/accessStandardsAndRegulations/pages/details'),
|
|
meta: {
|
|
requireAuth: true,
|
|
parentPath: '/accessStandardsAndRegulations',
|
|
title: '标准法规清单详情'
|
|
// menuId: 'A594R75XEQ'
|
|
}
|
|
},
|
|
// 标准法规库 - 标准法规国家地区清单 - 新增、编辑
|
|
{
|
|
path: '/listOfStandardsAndRegulationsDetails',
|
|
name: 'ListOfStandardsAndRegulationsDetails',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/accessStandardsAndRegulations/pages/addEdit'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准法规清单管理',
|
|
parentPath: '/accessStandardsAndRegulations',
|
|
menuId: 'A594R75XEQ'
|
|
}
|
|
},
|
|
// 标准法规库 - 标准法规项目清单 - 新增、编辑
|
|
{
|
|
path: '/projectAddEit',
|
|
name: 'ProjectAddEit',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/accessStandardsAndRegulations/pages/projectAddEit'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准法规清单管理',
|
|
parentPath: '/accessStandardsAndRegulations',
|
|
menuId: 'A594R75XEQ'
|
|
}
|
|
},
|
|
// 标准法规库 - 标准法规其他清单 - 新增、编辑
|
|
{
|
|
path: '/otherAddEit',
|
|
name: 'OtherAddEit',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/accessStandardsAndRegulations/pages/otherAddEit'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准法规清单管理',
|
|
parentPath: '/accessStandardsAndRegulations',
|
|
menuId: 'A594R75XEQ'
|
|
}
|
|
},
|
|
// 未符合项跟踪
|
|
{
|
|
path: '/nonConfomity',
|
|
name: 'NonConfomity',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/nonConfomity'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '未符合项整改',
|
|
menuId: 'HQSK8WWPDJG7R5F53LTK'
|
|
}
|
|
},
|
|
// 未符合项跟踪 - 历史数据
|
|
{
|
|
path: '/historicalData',
|
|
name: 'HistoricalData',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/nonConfomity/pages/historicalData'),
|
|
meta: {
|
|
requireAuth: true,
|
|
parentPath: '/nonConfomity',
|
|
title: '未符合项跟踪历史数据'
|
|
}
|
|
},
|
|
// 未符合项跟踪 - 事业部历史数据
|
|
{
|
|
path: '/businessDetails',
|
|
name: 'BusinessDetails',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/nonConfomity/pages/businessDetails'),
|
|
meta: {
|
|
requireAuth: true,
|
|
parentPath: '/businessDetails',
|
|
title: '事业部历史数据'
|
|
}
|
|
},
|
|
// 未符合项跟踪 - 产品规划部历史数据
|
|
{
|
|
path: '/productDetails',
|
|
name: 'ProductDetails',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/nonConfomity/pages/productDetails'),
|
|
meta: {
|
|
requireAuth: true,
|
|
parentPath: '/productDetails',
|
|
title: '产品规划部历史数据'
|
|
}
|
|
},
|
|
// 企标备案
|
|
{
|
|
path: '/enterpriseStandardFiling',
|
|
name: 'enterpriseStandardFiling',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/enterpriseStandardFiling'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '备案产品标准库',
|
|
menuId: 'MQBAGJQMSRZDRX3X5AVR'
|
|
}
|
|
},
|
|
// 动态信息
|
|
{
|
|
path: '/information',
|
|
name: 'information',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/information'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '动态信息',
|
|
menuId: 'ULUBXHYQB8M3XQ9HS9QG'
|
|
}
|
|
},
|
|
{
|
|
path: '/informationIndex2',
|
|
name: 'informationIndex2',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/information/index2'),
|
|
meta: {
|
|
requireAuth: true,
|
|
parentPath: '/information',
|
|
title: '动态信息详情'
|
|
}
|
|
},
|
|
// 动态信息-更多
|
|
{
|
|
path: '/informationMore',
|
|
name: 'informationMore',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/information/more'),
|
|
meta: {
|
|
requireAuth: true,
|
|
parentPath: '/information',
|
|
title: '动态信息更多详情'
|
|
}
|
|
}
|
|
]
|
|
},
|
|
// 配置管理
|
|
{
|
|
path: '/config',
|
|
name: 'Config',
|
|
redirect: () => {
|
|
return '/regulationsManage'
|
|
},
|
|
component: () =>
|
|
import('@/pages/config'),
|
|
meta: {
|
|
title: '配置管理',
|
|
menuId: '95KGANGWCV'
|
|
},
|
|
children: [
|
|
{
|
|
path: '/processClassificationManage',
|
|
name: 'ProcessClassificationManage',
|
|
component: () =>
|
|
import('@/pages/config/pages/processManage/processClassification'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '流程分类管理',
|
|
menuId: 'PGPZXNUFEXC85BVPV9AU'
|
|
}
|
|
},
|
|
{
|
|
path: '/processManage',
|
|
name: 'ProcessManage',
|
|
component: () =>
|
|
import('@/pages/config/pages/processManage/process'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '流程管理',
|
|
menuId: 'K5KXSS3X9CF7CS8AMFJ5'
|
|
}
|
|
},
|
|
{
|
|
path: '/standLawsAttrManage',
|
|
name: 'StandLawsAttrManage',
|
|
component: () =>
|
|
import('@/pages/config/pages/standLawsAttrManage/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准法规属性管理',
|
|
menuId: 'C5VHBSYRMA'
|
|
}
|
|
},
|
|
{
|
|
path: '/standLawsAttrDetails/:id?/:dictionaryName?/:dictionType?/:isRelate?/:relateDicId?',
|
|
name: 'StandLawsAttrDetails',
|
|
component: () =>
|
|
import('@/pages/config/pages/standLawsAttrManage/pages/standLawsAttrDetails'),
|
|
meta: {
|
|
requireAuth: true,
|
|
parentPath: '/standLawsAttrManage',
|
|
title: '标准法规属性管理详情页'
|
|
}
|
|
},
|
|
{
|
|
path: '/attributeCustom',
|
|
name: 'AttributeCustom',
|
|
component: () =>
|
|
import('@/pages/config/pages/attributeCustom/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准属性自定义',
|
|
menuId: 'PGPZXNUFEXC85BVPV9AU'
|
|
}
|
|
},
|
|
{
|
|
path: '/mechanismManage',
|
|
name: 'MechanismManage',
|
|
component: () =>
|
|
import('@/pages/config/pages/mechanismManage/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '机构管理',
|
|
menuId: '7MWCQK6NNH'
|
|
}
|
|
},
|
|
{
|
|
path: '/postManage',
|
|
name: 'postManage',
|
|
component: () =>
|
|
import('@/pages/config/pages/postManage/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '岗位管理',
|
|
menuId: '7MWCQK6NNH'
|
|
}
|
|
},
|
|
{
|
|
path: '/roleManage',
|
|
name: 'RoleManage',
|
|
component: () =>
|
|
import('@/pages/config/pages/roleManage/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '角色管理',
|
|
menuId: 'NVU76EMB7N'
|
|
}
|
|
},
|
|
{
|
|
path: '/userManage',
|
|
name: 'UserManage',
|
|
component: () =>
|
|
import('@/pages/config/pages/userManage/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '用户管理',
|
|
menuId: 'YRJUEVJVUJ'
|
|
}
|
|
},
|
|
{
|
|
path: '/warningTimeSetting',
|
|
name: 'WarningTimeSetting',
|
|
component: () =>
|
|
import('@/pages/config/pages/warningTimeSetting/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '系统配置管理',
|
|
menuId: 'H2KC6P3PPM'
|
|
}
|
|
},
|
|
{
|
|
path: '/convertDocView',
|
|
name: 'ConvertDocView',
|
|
component: () =>
|
|
import('@/pages/config/pages/convertDocView/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '文档转换监控',
|
|
menuId: '3F52K25546'
|
|
}
|
|
},
|
|
{
|
|
path: '/permissionMenuManage',
|
|
name: 'PermissionMenuManage',
|
|
component: () =>
|
|
import('@/pages/config/pages/permissionMenuManage/index'),
|
|
meta: {
|
|
requireAuth: false,
|
|
title: '子公司权限管理'
|
|
}
|
|
},
|
|
{
|
|
path: '/DynamicInformations',
|
|
name: 'DynamicInformations',
|
|
component: () =>
|
|
import('@/pages/config/pages/dynamicInformations/index'),
|
|
meta: {
|
|
requireAuth: false,
|
|
title: '动态信息管理',
|
|
menuId: '3C87BSHJUF'
|
|
}
|
|
},
|
|
{
|
|
path: '/menuManage',
|
|
name: 'MenuManage',
|
|
component: () =>
|
|
import('@/pages/config/pages/menuManage/index'),
|
|
meta: {
|
|
requireAuth: false,
|
|
title: '角色菜单管理'
|
|
}
|
|
},
|
|
{
|
|
path: '/dynamicInformationManage',
|
|
name: 'DynamicInformationManage',
|
|
component: () =>
|
|
import('@/pages/config/pages/dynamicInformationManage'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '资料中心管理',
|
|
menuId: '6V2QZ9STRZ'
|
|
}
|
|
},
|
|
{
|
|
path: '/dynamicInformationManage/dynamicInfomationPage/:id?',
|
|
name: 'dynamicInfo',
|
|
component: () =>
|
|
import('@/pages/config/pages/dynamicInformationManage/dynamicInfomationPage'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '资料中心维护',
|
|
parentPath: '/dynamicInformationManage'
|
|
}
|
|
},
|
|
{
|
|
path: '/enterpriseStandardNumberManagement',
|
|
name: 'enterpriseStandardNumberManagement',
|
|
component: () =>
|
|
import('@/pages/config/pages/enterpriseStandardNumberManagement'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '企标编号管理体系',
|
|
menuId: '9YSFG39S3CBFUJCEU3QX'
|
|
}
|
|
},
|
|
{
|
|
path: '/managementTree',
|
|
name: 'managementTree',
|
|
component: () =>
|
|
import('@/pages/config/pages/enterpriseStandardNumberManagement/managementTree'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '企标编号管理体系结构树',
|
|
parentPath: '/enterpriseStandardNumberManagement'
|
|
}
|
|
},
|
|
{
|
|
path: '/dynamicInformationManage/dynamicInfomationDetails/:id/:pageType',
|
|
name: 'DynamicInfomationDetails',
|
|
component: () =>
|
|
import('@/pages/config/pages/dynamicInformationManage/dynamicInfomationDetails'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '资料中心详情',
|
|
parentPath: '/dynamicInformationManage'
|
|
}
|
|
},
|
|
{
|
|
path: '/dynamicInformationManage/dynamicInfomationDetails2',
|
|
name: 'DynamicInfomationDetails2',
|
|
component: () =>
|
|
import('@/pages/config/pages/dynamicInformationManage/dynamicInfomationDetails/index2'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '资料中心详情',
|
|
isBoolean: true
|
|
}
|
|
},
|
|
// svpps
|
|
{
|
|
path: '/svpps',
|
|
name: 'Svpps',
|
|
component: () =>
|
|
import('@/pages/svpps'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: 'svpps列表',
|
|
menuId: 'AR52RX586LQHVZSVV83K',
|
|
isBoolean: false
|
|
}
|
|
}
|
|
]
|
|
},
|
|
// 详情页
|
|
// ************************** 其他详情页 ******************************* //
|
|
{
|
|
path: '/consultationDetails/:id/:pageType',
|
|
name: 'consultationDetails',
|
|
component: () =>
|
|
import('@/pages/regulatoryRepository/standardForComments/pags/consultationDetails'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '征求意见详情',
|
|
// isBoolean: true,
|
|
// menuId: ''
|
|
}
|
|
},
|
|
{
|
|
path: '/details',
|
|
name: 'Details',
|
|
component: () =>
|
|
import('@/pages/details/index'),
|
|
meta: {
|
|
title: '详情页',
|
|
menuId: 'K9BAYUPZBC'
|
|
},
|
|
children: [
|
|
{
|
|
path: '/otherStandardDetails/:id/:pageType',
|
|
name: 'OtherStandardDetails',
|
|
component: () =>
|
|
import('@/pages/details/otherStandardDetails/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准详情',
|
|
isBoolean: true,
|
|
menuId: 'SSA6WR4HV8'
|
|
}
|
|
},
|
|
{
|
|
path: '/standInvolveProjectTwo',
|
|
name: 'standInvolveProjectTwo',
|
|
component: () =>
|
|
import('@/pages/details/otherStandardDetails/pages/standInvolveProjectTwo'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '符合性详情',
|
|
isBoolean: true
|
|
}
|
|
},
|
|
{
|
|
path: '/prc-detail',
|
|
name: 'PrcDetail',
|
|
component: () =>
|
|
import('@/pages/details/process/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '流程基础信息详情',
|
|
isBoolean: true
|
|
}
|
|
},
|
|
{
|
|
path: '/otherLawsDetails/:id/:pageType',
|
|
name: 'OtherLawsDetails',
|
|
component: () =>
|
|
import('@/pages/details/otherLawsDetails'),
|
|
meta: {
|
|
requireAuth: true,
|
|
isBoolean: true,
|
|
title: '国内外政策详情'
|
|
}
|
|
},
|
|
{
|
|
path: '/otherBussStandardDetails/:id/:pageType',
|
|
name: 'OtherBussStandardDetails',
|
|
component: () =>
|
|
import('@/pages/details/otherBussStandardDetails'),
|
|
meta: {
|
|
requireAuth: true,
|
|
isBoolean: true,
|
|
title: '企标详情'
|
|
}
|
|
},
|
|
{
|
|
path: '/itemsDetails',
|
|
name: 'itemsDetails',
|
|
component: () =>
|
|
import('@/pages/details/itemsDetails'),
|
|
meta: {
|
|
requireAuth: true,
|
|
isBoolean: true,
|
|
title: '查看详情'
|
|
}
|
|
},
|
|
{
|
|
path: '/complianceDetails',
|
|
name: 'ComplianceDetails',
|
|
component: () =>
|
|
import('@/pages/details/complianceDetails'),
|
|
meta: {
|
|
requireAuth: true,
|
|
isBoolean: true,
|
|
title: '符合性详情'
|
|
}
|
|
},
|
|
{
|
|
path: '/enterBSysRevPlanManaLibDetail/:id/:pageType',
|
|
name: 'enterBSysRevPlanManaLibDetail',
|
|
component: () =>
|
|
import('@/pages/details/enterBSysRevPlanManaLibDetail/index'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '企标制修订计划详情',
|
|
isBoolean: true
|
|
}
|
|
}
|
|
]
|
|
},
|
|
// ************************** 搜索中心 ******************************* //
|
|
{
|
|
path: '/searchCenter/:selectKey?/:selectValue?',
|
|
name: 'SearchCenter',
|
|
component: () =>
|
|
import('@/pages/searchCenter'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '搜索中心',
|
|
menuId: 'K9BAYUPZBC'
|
|
}
|
|
},
|
|
{
|
|
path: '/standardSearch/:selectKey?/:searchValue?',
|
|
name: 'StandardSearch',
|
|
component: () =>
|
|
import('@/pages/searchCenter/pages/standardSearch'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准检索',
|
|
menuId: 'K9BAYUPZBC'
|
|
}
|
|
},
|
|
{
|
|
path: '/advancedSearch',
|
|
name: 'AdvancedSearch',
|
|
component: () =>
|
|
import('@/pages/searchCenter/pages/advancedSearch'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '高级检索',
|
|
menuId: 'K9BAYUPZBC'
|
|
}
|
|
},
|
|
{
|
|
path: '/customReport',
|
|
name: 'CustomReport',
|
|
component: () =>
|
|
import('@/pages/customReport'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '自定义报表',
|
|
menuId: 'K9BAYUPZBC'
|
|
}
|
|
},
|
|
{
|
|
path: '/workGroup',
|
|
name: 'WorkGroup',
|
|
component: () => import('@/pages/knowledgeGraph'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准法规工作组',
|
|
menuId: 'QYRMD5TUNBP9XXFRNK5S'
|
|
}
|
|
},
|
|
{
|
|
path: '/viewStandardComparisonLibrary/:listId',
|
|
name: 'ViewStandardComparisonLibrary',
|
|
component: () =>
|
|
import('@/pages/standardComparisonLibrary/view'),
|
|
meta: {
|
|
requireAuth: true,
|
|
title: '标准比对库查看'
|
|
}
|
|
},
|
|
{
|
|
path: '/example',
|
|
name: 'Example',
|
|
component: () =>
|
|
import('@/components/ProjectRelatedPersonnel/index.vue'),
|
|
meta: {
|
|
requireAuth: false,
|
|
title: 'lizi'
|
|
}
|
|
}
|
|
]
|
|
|
|
const originalPush = Router.prototype.push
|
|
Router.prototype.push = function push (location) {
|
|
return originalPush.call(this, location).catch(err => err)
|
|
}
|
|
|
|
const router = new Router({
|
|
routes,
|
|
mode: 'hash', // default: hash ,history
|
|
scrollBehavior (to, from, savedPosition) {
|
|
if (savedPosition) {
|
|
return savedPosition
|
|
} else {
|
|
return { x: 0, y: 0 }
|
|
}
|
|
}
|
|
})
|
|
|
|
/**
|
|
* @description: 是否拥有此路由权限
|
|
* @author: chenxiaoxi
|
|
* @date: 2019/04/10 19:48:00
|
|
*/
|
|
function hasRouterPermission (menuId) {
|
|
let menuList = store.getters.getMenuList || []
|
|
let has = false
|
|
menuList.map((menu) => {
|
|
if (menu.id === menuId) {
|
|
has = true
|
|
}
|
|
})
|
|
return has
|
|
}
|
|
|
|
/**
|
|
* @description: 获取重定向路由
|
|
* @author: chenxiaoxi
|
|
* @date: 2019/03/27 14:42:51
|
|
*/
|
|
function getRedirectPath (menuId) {
|
|
// 全部菜单
|
|
let menuList = store.getters.getMenuList || []
|
|
// 用当前菜单的Id去匹配,然后找到全部子路由
|
|
let childMenuList = []
|
|
menuList.map((menu) => {
|
|
if (menu.parentId === menuId) {
|
|
return childMenuList.push(menu)
|
|
}
|
|
})
|
|
// 如果当前菜单有子路由,则跳转到第一个子路由
|
|
if (childMenuList.length) {
|
|
return childMenuList[0].href
|
|
} else {
|
|
// 如果一个子菜单都没有,则返回false,重定向到路由配置的第一个子路由
|
|
return false
|
|
}
|
|
}
|
|
|
|
router.onError((error) => {
|
|
const pattern = /Loading chunk (\d)+ failed/g;
|
|
const isChunkLoadFailed = error.message.match(pattern)
|
|
const targetPath = router.history.pending.fullPath
|
|
if (isChunkLoadFailed) {
|
|
router.replace(targetPath)
|
|
}
|
|
})
|
|
|
|
router.beforeEach((to, from, next) => {
|
|
// let toName = to.name
|
|
// let token = store.state.token
|
|
// // 返回值为登录状态
|
|
// if ((token === null || token === '') && (toName !== 'Login' && to.meta.requireAuth)) {
|
|
// router.push({
|
|
// name: 'Login'
|
|
// })
|
|
// }
|
|
// // 流程页面权限判断
|
|
// const processCenter = to.name === 'ProcessCenter' || (to.meta.parentPath && to.meta.parentPath === '/processCenter')
|
|
// if (processCenter) {
|
|
// if (to.meta.process) {
|
|
// if (store.getters.getHandleInfo.prcType === to.meta.process.prcType &&
|
|
// (store.getters.getHandleInfo.taskInfo === to.meta.process.taskInfo ||
|
|
// (to.meta.process.taskInfo.__proto__.constructor === Array && to.meta.process.taskInfo.includes(store.getters.getHandleInfo.taskInfo)))) {
|
|
// next()
|
|
// } else {
|
|
// Message.error('请正确操作流程')
|
|
// setTimeout(() => {
|
|
// router.push({
|
|
// name: 'ProcessCenter'
|
|
// })
|
|
// }, 100)
|
|
// }
|
|
// }
|
|
// next()
|
|
// }
|
|
next()
|
|
})
|
|
|
|
export default router
|