From 97f9118ffd35ac1c2e55c807cd6819e073cfe0b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E8=A3=95=E8=B4=A2?= Date: Thu, 2 Jun 2022 07:40:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 8 ++-- src/router/routes_arc.js | 19 +------- src/router/routes_datav_xm.js | 5 ++- src/router/routes_form.js | 5 ++- src/router/routes_im.js | 5 ++- src/router/routes_workflow.js | 77 +++----------------------------- src/router/routes_xm.js | 82 +++++++++++++---------------------- src/router/routes_zp.js | 3 +- 8 files changed, 51 insertions(+), 153 deletions(-) diff --git a/src/router/index.js b/src/router/index.js index 4d8b4077..e7e50e72 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -15,7 +15,7 @@ import routesDatavXm from './routes_datav_xm' import routesArc from './routes_arc' import routesIm from './routes_im' import routesMyWork from './routes_my_work' -import routesOrder from './routes_order' +//import routesOrder from './routes_order' export { Layout } @@ -80,8 +80,8 @@ allRoutes=allRoutes.concat(routesMyWork.routes); allRoutes=allRoutes.concat(routesXm.routes); allRoutes=allRoutes.concat(routesDatavXm.routes); allRoutes=allRoutes.concat(routesWorkflow.routes).concat(routesForm.routes) -allRoutes=allRoutes.concat(routesArc.routes); -allRoutes=allRoutes.concat(routesIm.routes); -allRoutes=allRoutes.concat(routesOrder.routes); +//allRoutes=allRoutes.concat(routesArc.routes); +//allRoutes=allRoutes.concat(routesIm.routes); +//allRoutes=allRoutes.concat(routesOrder.routes); export const asyncRouterMap = allRoutes diff --git a/src/router/routes_arc.js b/src/router/routes_arc.js index 4beb5990..30a25423 100644 --- a/src/router/routes_arc.js +++ b/src/router/routes_arc.js @@ -4,24 +4,7 @@ import Layout from '../views/layout/Layout' const _import = require('./_import_' + process.env.NODE_ENV) export default { - routes:[ - { - path: '/mdp/arc/aq', - component: Layout, - name: '咨询中心', - meta: { - title: '咨询中心', - icon: 'example' - }, - iconCls: 'fa el-icon-menu', - //leaf: true,//只有一个节点 - children: [ - { path: 'aqQuestion/AqQuestionMng', name: 'AqQuestionMng', meta: { title: '咨询信息管理' ,openTab:true,outUrl:'${curlDomain}/arc/'+process.env.VERSION+'/#/mdp/arc/aq/aqQuestion/AqQuestionMng',menu:false} }, - { path: 'aqQuestion/AqQuestionAdd', name: 'AqQuestionAdd', meta: { title: '发起咨询' ,openTab:true,outUrl:'${curlDomain}/arc/'+process.env.VERSION+'/#/mdp/arc/aq/aqQuestion/AqQuestionAdd',menu:false} }, - { path: 'aqFaq/AqFaqMng', name: 'AqFaqMng', meta: { title: '常见缺陷管理' ,openTab:true,outUrl:'${curlDomain}/arc/'+process.env.VERSION+'/#/mdp/arc/aq/aqFaq/AqFaqMng',menu:false}}, - - ] - }, + routes:[ { path: '/mdp/arc/mate', component: Layout, diff --git a/src/router/routes_datav_xm.js b/src/router/routes_datav_xm.js index 540d0095..86c5995a 100644 --- a/src/router/routes_datav_xm.js +++ b/src/router/routes_datav_xm.js @@ -15,12 +15,13 @@ export default { title: '项目大屏', icon: 'project' }, + hidden:true, // leaf: true,//只有一个节点 children: [ // { path: 'project/projectDatavFullScreen', component: _import('datav/xm/project/index'), name: 'projectDatavFullScreen', meta: { title: '项目大屏' }}, - { path: 'project/projectDatavFullScreen', component: _import('datav/xm/project1/index'), name: 'projectDatavFullScreen', meta: { title: '项目大屏' }}, + { path: 'project/projectDatavFullScreen', component: _import('datav/xm/project1/index'), name: 'projectDatavFullScreen', meta: { title: '项目大屏' },hidden:true,}, // { path: 'branch/branchDatavFullScreen', component: _import('datav/xm/branch/index'), name: 'branchDatavFullScreen', meta: { title: '机构大屏' }}, - { path: 'branch/branchDatavFullScreen', component: _import('datav/xm/branch1/index'), name: 'branchDatavFullScreen', meta: { title: '机构大屏' }}, + { path: 'branch/branchDatavFullScreen', component: _import('datav/xm/branch1/index'), name: 'branchDatavFullScreen', meta: { title: '机构大屏' },hidden:true,}, ] } ] diff --git a/src/router/routes_form.js b/src/router/routes_form.js index f157b1a9..249e8859 100644 --- a/src/router/routes_form.js +++ b/src/router/routes_form.js @@ -14,10 +14,11 @@ export default { title: 'IntelligentForm', icon: 'capacity-form' }, + hidden: true, //leaf: true,//只有一个节点 children: [ - { path: 'formDef/FormDefAdd', component: _import("mdp/form/formDef/FormDefAdd"), name: 'FormDefAdd',meta:{title:'FormDefAdd'} }, - { path: 'formDef/FormDefMng', component: _import("mdp/form/formDef/FormDefMng"), name: 'FormDefMng' ,meta:{title:'FormDefMng'}}, + { path: 'formDef/FormDefAdd', component: _import("mdp/form/formDef/FormDefAdd"), name: 'FormDefAdd',meta:{title:'FormDefAdd'} , hidden: true}, + { path: 'formDef/FormDefMng', component: _import("mdp/form/formDef/FormDefMng"), name: 'FormDefMng' ,meta:{title:'FormDefMng'} , hidden: true}, { path: 'formData/FormDataMng', component: _import("mdp/form/formData/FormDataMng"), name: 'FormDataMng', meta:{title:'FormDataMng'} , hidden: true} ] } diff --git a/src/router/routes_im.js b/src/router/routes_im.js index acb1b632..9f22606f 100644 --- a/src/router/routes_im.js +++ b/src/router/routes_im.js @@ -14,10 +14,11 @@ export default { icon: 'example' }, iconCls: 'fa el-icon-menu', + hidden: true, //leaf: true,//只有一个节点 children: [ - { path: 'messages/messageChat', name: 'messageChat', meta: { title: '即聊' ,openTab:true,outUrl:'${curlDomain}/im/'+process.env.VERSION+'/#/mdp/im/messages/messageChat',menu:false} }, - { path: 'messages/crmChat', name: 'crmChat', meta: { title: '客服' ,openTab:true,outUrl:'${curlDomain}/im/'+process.env.VERSION+'/#/mdp/im/messages/messageChat',menu:false} } + { path: 'messages/messageChat', name: 'messageChat', meta: { title: '即聊' ,openTab:true,outUrl:'${curlDomain}/im/'+process.env.VERSION+'/#/mdp/im/messages/messageChat',menu:false}, hidden: true, }, + { path: 'messages/crmChat', name: 'crmChat', meta: { title: '客服' ,openTab:true,outUrl:'${curlDomain}/im/'+process.env.VERSION+'/#/mdp/im/messages/messageChat',menu:false}, hidden: true, } ] }, ] diff --git a/src/router/routes_workflow.js b/src/router/routes_workflow.js index c2cf243f..a730d81a 100644 --- a/src/router/routes_workflow.js +++ b/src/router/routes_workflow.js @@ -14,78 +14,13 @@ export default { iconCls: 'fa el-icon-menu', //leaf: true,//只有一个节点 children: [ - { path: 'task/TaskListAssigneeToMe', component: _import("mdp/workflow/ru/task/TaskListAssigneeToMe"), name: 'TaskListAssigneeToMe', meta: { title: 'TaskListAssigneeToMe' } }, - { path: 'task/TaskListAssigneeToMeCalendar', component: _import("mdp/workflow/ru/task/TaskListAssigneeToMeCalendar"), name: 'TaskListAssigneeToMeCalendar', meta: { title: 'TaskListAssigneeToMeCalendar' } }, - { path: 'task/TaskListAssigneeToMeClaim', component: _import("mdp/workflow/ru/task/TaskListAssigneeToMeClaim"), name: 'TaskListAssigneeToMeClaim', meta: { title: 'TaskListAssigneeToMeClaim' } }, - { path: 'procinstParames/ProcinstParamesExecutionSetRoute', component: _import("mdp/workflow/ru/procinstParames/ProcinstParamesExecutionSetRoute"), name: 'ProcinstParamesExecutionSetRoute', hidden: true, meta: { title: 'ProcinstParamesExecutionSetRoute', noCache: true } }, - { path: 'procinstParames/ProcinstParamesStartSetRoute', component: _import("mdp/workflow/ru/procinstParames/ProcinstParamesStartSetRoute"), name: 'ProcinstParamesStartSetRoute', hidden: true, meta: { title: 'ProcinstParamesStartSetRoute', noCache: true } }, - { path: 'task/TaskMng', component: _import("mdp/workflow/ru/task/TaskMng"), name: 'TaskMng', meta: { title: 'TaskMng', roles: ['flowAdmin', 'branchAdmin', 'platformAdmin'] } } - ] - }, - { - path: '/mdp/workflow', - component: Layout, - name: '审批管理', - iconCls: 'fa el-icon-menu', - meta: { - title: 'flowCenter', - icon: 'flow' - }, - //leaf: true,//只有一个节点 - children: [ - { path: 'ru/execution/ExecutionListMyMonitors', component: _import("mdp/workflow/ru/execution/ExecutionListMyMonitors"), name: 'ExecutionListMyMonitors', meta: { title: 'ExecutionListMyMonitors' } }, - { path: 'ru/execution/ExecutionListMyStart', component: _import("mdp/workflow/ru/execution/ExecutionListMyStart"), name: 'ExecutionListMyStart', meta: { title: 'ExecutionListMyStart' } }, - { path: 'ru/execution/ExecutionMngForFormData', component: _import("mdp/workflow/ru/execution/ExecutionMngForFormData"), name: 'ExecutionMngForFormData', hidden: true, meta: { title: 'ExecutionMngForFormData' } }, - { path: 'ru/execution/ExecutionListMyPartake', component: _import("mdp/workflow/ru/execution/ExecutionListMyPartake"), name: 'ExecutionListMyPartake', meta: { title: 'ExecutionListMyPartake' } }, - { path: 'ru/execution/ExecutionListMySponsors', component: _import("mdp/workflow/ru/execution/ExecutionListMySponsors"), name: 'ExecutionListMySponsors', meta: { title: 'ExecutionListMySponsors' } }, - { path: 'ru/execution/ExecutionListMySponsorsCalendar', component: _import("mdp/workflow/ru/execution/ExecutionListMySponsorsCalendar"), name: 'ExecutionListMySponsorsCalendar', meta: { title: 'ExecutionListMySponsorsCalendar' } }, - { path: 'ru/execution/ExecutionListAll', component: _import("mdp/workflow/ru/execution/ExecutionListAll"), name: 'ExecutionListAll', meta: { title: 'ExecutionListAll', roles: ['branchAdmin', 'superAdmin', 'platformAdmin'] } }, - { path: 're/procdef/ProcdefListForStart', component: _import("mdp/workflow/re/procdef/ProcdefListForStart"), name: 'ProcdefListForStart', meta: { title: 'ProcdefListForStart' } }, - { path: 're/procdef/ProcdefListForBizStart', component: _import("mdp/workflow/re/procdef/ProcdefListForBizStart"), name: 'ProcdefListForBizStart', meta: { title: 'ProcdefListForBizStart' } }, - - { path: 're/procdef/ProcdefListForFormDataStart', component: _import("mdp/workflow/re/procdef/ProcdefListForFormDataStart"), name: 'ProcdefListForFormDataStart', hidden: true, meta: { title: 'ProcdefListForFormDataStart' } }, - - { path: 'hi/procinst/ExecutionListArchive', component: _import("mdp/workflow/ru/execution/ExecutionListArchive"), name: 'ExecutionListArchive', meta: { title: 'ExecutionListArchive' } } - ] - }, - { - path: '/mdp/workflow/hi', - component: Layout, - name: '历史审批', - iconCls: 'fa el-icon-menu', - meta: { - title: 'procinstFlowCenter', - icon: 'history' - }, - //leaf: true,//只有一个节点 - children: [ - { path: 'procinst/ProcinstListAll', component: _import("mdp/workflow/hi/procinst/ProcinstListAll"), name: 'ProcinstListAll', meta: { title: 'ProcinstListAll', roles: ['branchAdmin', 'superAdmin', 'platformAdmin'] } }, - { path: 'procinst/ProcinstListMyStart', component: _import("mdp/workflow/hi/procinst/ProcinstListMyStart"), name: 'ProcinstListMyStart', meta: { title: 'ProcinstListMyStart' } }, - { path: 'procinst/ProcinstListMyPartake', component: _import("mdp/workflow/hi/procinst/ProcinstListMyPartake"), name: 'ProcinstListMyPartake', meta: { title: 'ProcinstListMyPartake' } }, - { path: 'procinst/ProcinstListMyMonitors', component: _import("mdp/workflow/hi/procinst/ProcinstListMyMonitors"), name: 'ProcinstListMyMonitors', meta: { title: 'ProcinstListMyMonitors' } }, - { path: 'procinst/ProcinstListMySponsors', component: _import("mdp/workflow/hi/procinst/ProcinstListMySponsors"), name: 'ProcinstListMySponsors', meta: { title: 'ProcinstListMySponsors' } }, - - ] - }, - { - path: '/mdp/workflow', - component: Layout, - name: '审批模型', - iconCls: 'fa el-icon-menu', - //leaf: true,//只有一个节点 - meta: { - title: 'modelCenter', - icon: 'model' - }, - children: [ - { path: 'editor/Index', component: _import("mdp/workflow/editor/Index"), name: '在线模型编辑器', meta: { title: 'workflowEditorIndex', openTab: true, outUrl: '${curlDomain}/workflow/'+process.env.VERSION+'/modeler-ui/' } }, - { path: 'de/ModelMng', component: _import("mdp/workflow/de/model/ModelMng"), name: 'ModelMng', meta: { title: 'ModelMng' } }, - { path: 're/DeploymentMng', component: _import("mdp/workflow/re/deployment/DeploymentMng"), name: 'DeploymentMng', meta: { title: 'DeploymentMng' } }, - { path: 're/procdef/ProcdefSuspend', component: _import("mdp/workflow/re/procdef/ProcdefSuspend"), name: 'ProcdefSuspend', meta: { title: 'ProcdefSuspend' } }, - { path: 're/procdef/ProcdefListForParames', component: _import("mdp/workflow/re/procdef/ProcdefListForParames"), name: 'ProcdefListForParames', meta: { title: 'ProcdefListForParames' } }, - { path: 'biz/bizModel/BizModelMng', component: _import("mdp/workflow/biz/bizModel/BizModelMng"), name: 'BizModelMng', meta: { title: 'BizModelMng' } }, + { path: 'task/TaskListAssigneeToMe', component: _import("mdp/workflow/ru/task/TaskListAssigneeToMe"), name: 'TaskListAssigneeToMe', meta: { title: 'TaskListAssigneeToMe',openTab:true,outUrl:'${curlDomain}/workflow/'+process.env.VERSION+'/#/${router.path}' } }, + { path: 'task/TaskListAssigneeToMeCalendar', component: _import("mdp/workflow/ru/task/TaskListAssigneeToMeCalendar"), name: 'TaskListAssigneeToMeCalendar', meta: { title: 'TaskListAssigneeToMeCalendar' ,openTab:true,outUrl:'${curlDomain}/workflow/'+process.env.VERSION+'/#/${router.path}'} }, + { path: 'task/TaskListAssigneeToMeClaim', component: _import("mdp/workflow/ru/task/TaskListAssigneeToMeClaim"), name: 'TaskListAssigneeToMeClaim', meta: { title: 'TaskListAssigneeToMeClaim' ,openTab:true,outUrl:'${curlDomain}/workflow/'+process.env.VERSION+'/#/${router.path}'} ,hidden:true}, + { path: 'procinstParames/ProcinstParamesExecutionSetRoute', component: _import("mdp/workflow/ru/procinstParames/ProcinstParamesExecutionSetRoute"), name: 'ProcinstParamesExecutionSetRoute', hidden: true, meta: { title: 'ProcinstParamesExecutionSetRoute', openTab:true,outUrl:'${curlDomain}/workflow/'+process.env.VERSION+'/#/${router.path}',noCache: true } }, + { path: 'procinstParames/ProcinstParamesStartSetRoute', component: _import("mdp/workflow/ru/procinstParames/ProcinstParamesStartSetRoute"), name: 'ProcinstParamesStartSetRoute', hidden: true, meta: { title: 'ProcinstParamesStartSetRoute', openTab:true,outUrl:'${curlDomain}/workflow/'+process.env.VERSION+'/#/${router.path}',noCache: true } }, + { path: 'task/TaskMng', component: _import("mdp/workflow/ru/task/TaskMng"), name: 'TaskMng', meta: { title: 'TaskMng', openTab:true,outUrl:'${curlDomain}/workflow/'+process.env.VERSION+'/#/${router.path}', roles: ['flowAdmin', 'branchAdmin', 'platformAdmin'] } } ] }, - ] } diff --git a/src/router/routes_xm.js b/src/router/routes_xm.js index 89bca134..b18ba01a 100644 --- a/src/router/routes_xm.js +++ b/src/router/routes_xm.js @@ -21,7 +21,9 @@ export default { { path: 'xmRecord/XmRecord', component: _import('xm/core/xmRecord/XmRecord'), name: 'XmRecord', meta: { title: '项目动态' }}, { path: 'xmProject/XmProjectTplMng', component: _import('xm/core/xmProject/XmProjectTplMng'), name: 'XmProjectTplMng', meta: { title: '项目模板' }}, { path: 'xmEnvList/XmEnvListMng', component: _import('xm/core/xmEnvList/XmEnvListMng'), name: 'XmEnvListMng', meta: { title: '环境清单' }}, - + { path: 'xmTask/XmTaskCenter', component: _import('xm/core/xmTask/XmTaskCenter'), name: 'xmTaskCenter', meta: { title: '任务大厅' }}, + { path: 'xmTask/XmMyTaskCenter', component: _import('xm/core/xmTask/XmMyTaskCenter'), name: 'xmMyTaskCenter', meta: { title: '任务(我的)' }}, + ] }, { @@ -30,10 +32,10 @@ export default { name: 'XmProjectInfoRoute', iconCls: 'fa el-icon-menu', meta: { - title: '项目管理', + title: '项目管理-路由跳转', icon: 'project', - hidden:true - }, + }, + hidden:true }, { path: '/xm/core', @@ -54,30 +56,14 @@ export default { { path: 'xmTestCaseExec/XmTestCaseExecMng', component: _import('xm/core/xmTestCaseExec/XmTestCaseExecMng'), name: 'XmTestCaseExecMng', meta: { title: '测试执行' }}, ] - }, - { - path: '/xm/core', - component: Layout, - name: '项目任务', - iconCls: 'fa el-icon-menu', - meta: { - title: '项目任务', - icon: 'task' - }, - // leaf: true,//只有一个节点 - children: [ - - { path: 'xmTask/XmTaskCenter', component: _import('xm/core/xmTask/XmTaskCenter'), name: 'xmTaskCenter', meta: { title: '任务大厅' }}, - { path: 'xmTask/XmMyTaskCenter', component: _import('xm/core/xmTask/XmMyTaskCenter'), name: 'xmMyTaskCenter', meta: { title: '任务(我的)' }}, - ] - }, + }, { path: '/xm/core', component: Layout, - name: '众包任务', + name: 'crowd', iconCls: 'fa el-icon-menu', meta: { - title: '众包任务', + title: '众包管理', icon: 'task' }, // leaf: true,//只有一个节点 @@ -88,17 +74,6 @@ export default { ] }, - { - path: '/xm/core/xmProduct/XmProductInfoRoute', - component: _import('xm/core/xmProduct/XmProductInfoRoute'), - name: 'XmProductInfoRoute', - iconCls: 'fa el-icon-menu', - meta: { - title: '产品管理', - icon: 'product', - hidden:true - }, - }, { path: '/xm/rpt', @@ -107,12 +82,14 @@ export default { iconCls: 'fa el-icon-menu', meta: { title: '效能分析', - icon: 'report', - hidden:true + icon: 'chart' }, children: [ - { path: 'reportIndex', component: _import('xm/rpt/reportIndex'), name: 'reportIndex', meta: { title: '效能分析', icon: 'chart' }}, + { path: 'reportIndex', component: _import('xm/rpt/reportIndex'), name: 'reportIndex', meta: { title: '指标分析' }}, + + { path: 'project/projectDatavFullScreen', name: 'projectDatavFullScreen', meta: { title: '项目效能',openTab:true,outUrl:"/#/datav/xm/project/projectDatavFullScreen" }}, + { path: 'branch/branchDatavFullScreen', name: 'branchDatavFullScreen', meta: { title: '机构效能',openTab:true,outUrl:"/#/datav/xm/branch/branchDatavFullScreen" }}, ] }, { @@ -135,32 +112,31 @@ export default { { path: 'xmMenu/XmMenuMng', component: _import('xm/core/xmMenu/XmMenuMng'), name: 'XmMenuMng', meta: { title: '需求管理' }}, { path: 'xmMenuExchange/XmMenuExchangeMng', component: _import('xm/core/xmMenuExchange/XmMenuExchangeMng'), name: 'XmMenuExchangeMng', meta: { title: '互动评论' }}, + ] - }, + }, + { - path: '/xm/core/xmIteration/XmIterationInfoRoute', - component: _import('xm/core/xmIteration/XmIterationInfoRoute'), - name: 'XmIterationInfoRoute', + path: '/xm/core/xmProduct/XmProductInfoRoute', + component: _import('xm/core/xmProduct/XmProductInfoRoute'), + name: 'XmProductInfoRoute', iconCls: 'fa el-icon-menu', meta: { - title: '迭代管理', - icon: 'flow', - hidden:true + title: '产品管理-如有跳转', + icon: 'product', }, + hidden:true }, { - path: '/xm/core', - component: Layout, - name: '迭代管理', + path: '/xm/core/xmIteration/XmIterationInfoRoute', + component: _import('xm/core/xmIteration/XmIterationInfoRoute'), + name: 'XmIterationInfoRoute', iconCls: 'fa el-icon-menu', meta: { - title: '迭代管理', - icon: 'flow' + title: '迭代管理-路由跳转', + icon: 'flow', }, - // leaf: true,//只有一个节点 - children: [ - { path: 'xmIteration/XmIterationMng', component: _import('xm/core/xmIteration/XmIterationMng'), name: 'XmIterationMng', meta: { title: '迭代管理',icon: 'flow' }}, - ] + hidden:true }, { path: '/xm/core', diff --git a/src/router/routes_zp.js b/src/router/routes_zp.js index 7ea0ac73..423f0455 100644 --- a/src/router/routes_zp.js +++ b/src/router/routes_zp.js @@ -14,9 +14,10 @@ export default { title: '招聘管理', icon: 'record' }, + hidden: true, // leaf: true,//只有一个节点 children: [ - { path: 'ZpDemandApply', component: _import('oa/zp/ZpDemandApply'), name: 'ZpDemandApply', meta: { title: '招聘需求申请' } }, + { path: 'ZpDemandApply', component: _import('oa/zp/ZpDemandApply'), name: 'ZpDemandApply', meta: { title: '招聘需求申请' }, hidden: true, }, ] }, ]