diff --git a/src/lang/index.js b/src/lang/index.js index febb479..70aab2f 100644 --- a/src/lang/index.js +++ b/src/lang/index.js @@ -8,13 +8,13 @@ import zhLocale from './zh' import zhSysLocale from './zh_sys' import zhWorkflowLocale from './zh_workflow' -import zhFormLocale from './zh_form' +import zhLcodeLocale from './zh_lcode' Vue.use(VueI18n) let allZhLocale= Object.assign({},zhLocale,zhSysLocale); -allZhLocale.route=Object.assign(allZhLocale.route,zhWorkflowLocale.route,zhFormLocale.route) +allZhLocale.route=Object.assign(allZhLocale.route,zhWorkflowLocale.route,zhLcodeLocale.route) const messages = { en: { diff --git a/src/lang/zh_form.js b/src/lang/zh_lcode.js similarity index 100% rename from src/lang/zh_form.js rename to src/lang/zh_lcode.js diff --git a/src/router/index.js b/src/router/index.js index 956512e..978e891 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -10,6 +10,11 @@ Vue.use(Router) import Layout from '../views/layout/Layout' import routesMyWork from './routes_my_work' import routesLcode from './routes_lcode' + +import routesSys from './routes_sys' +import routesOrder from './routes_order' +import routesWorkflow from './routes_workflow' + export {Layout} /** note: submenu only apppear when children.length>=1 @@ -68,4 +73,9 @@ let allRoutes=[] allRoutes=allRoutes.concat(routesMyWork.routes); allRoutes=allRoutes.concat(routesLcode.routes); + +allRoutes=allRoutes.concat(routesSys.routes); +allRoutes=allRoutes.concat(routesOrder.routes); +allRoutes=allRoutes.concat(routesWorkflow.routes); + export const asyncRouterMap = allRoutes diff --git a/src/router/routes_order.js b/src/router/routes_order.js new file mode 100644 index 0000000..bb43a5d --- /dev/null +++ b/src/router/routes_order.js @@ -0,0 +1,92 @@ +/* Layout */ +import Layout from '../views/layout/Layout' +const _import = require('./_import_' + process.env.NODE_ENV) + +export default { + routes: [ + { + path: '/my/order', + component: Layout, + name: '订单', + meta: { + title: '订单管理', + icon: 'business' + }, + children: [ + { path: 'branch/list', component: _import('mdp/menu/menuModuleBranch/Index'), name: 'MenuModuleBranchMng', meta: { title: '已购模块(平台)',icon: 'component',menu:true }}, + + { + path: 'platfrom/list', + component: _import('mdp/mo/moOrder/Index'), + name: '订单列表(平台)', + meta: { + title: '订单列表(平台)', + icon: 'component', + menu:true + } + }, + { + path: 'my/list', + component: _import('mdp/mo/moOrder/MyMoOrderMng'), + name: '我的订单', + meta: { + title: '我的订单', + icon: 'component', + menu:false + } + }, + { + path: 'index', + component: _import('order/index'), + name: '购买产品', + meta: { + title: '购买产品', + icon: 'component', + menu:false + } + }, + { + path: 'create', + component: _import('order/createOrder'), + name: '创建订单', + meta: { + title: '创建订单', + icon: 'component', + menu:false + }, + hidden:true, + }, + { + path: 'addUsers', + component: _import('order/addUsersIndex'), + name: '增购人数', + meta: { + title: '增购人数', + icon: 'component', + } + }, + { + path: 'renew', + component: _import('order/renewIndex'), + name: '续费', + meta: { + title: '续费', + icon: 'component', + }, + }, + { + path: 'paySuccess', + component: _import('order/paySuccess'), + name: '支付成功', + meta: { + title: '支付成功', + icon: 'component' + }, + hidden:true, + } + ] + }, + + + ] +} diff --git a/src/router/routes_sys.js b/src/router/routes_sys.js new file mode 100644 index 0000000..62a1cc9 --- /dev/null +++ b/src/router/routes_sys.js @@ -0,0 +1,117 @@ +/* Layout */ +import Layout from '../views/layout/Layout' +const _import = require('./_import_' + process.env.NODE_ENV) + +export default { + routes:[ + { + path: '/mdp', + component: Layout, + meta: { + title: 'RoleQxMng', + icon: 'people' + }, + name: '角色权限', + iconCls: 'fa fa-tasks', + leaf: true,//只有一个节点 + children: [ + { path: 'sys/role/index', component: _import('mdp/sys/role/Index'), name: 'RoleMng', meta: { title: 'RoleMng',menu:false }}, + { path: 'sys/qx/index', component: _import('mdp/sys/qx/Index'), name: 'QxMng', meta: { title: 'QxMng' ,menu:true}}, + { path: 'menu/index', component: _import('mdp/menu/menuDef/Index'), name: 'MenuDefMng', meta: { title: 'MenuDefMng' ,menu:true}}, + { path: 'menu/module/index', component: _import('mdp/menu/menuModule/Index'), name: 'MenuModuleMng', meta: { title: '模块管理' ,menu:true }}, + { path: 'menu/module/branch', component: _import('mdp/menu/menuModuleBranch/Index'), name: 'MenuModuleBranchMng', meta: { title: '已开通模块',menu:false }}, + ] + }, + { + path: '/mdp/sys', + component: Layout, + meta: { + title: 'OrgMng', + icon: 'peoples' + }, + name: '机构管理', + iconCls: 'fa fa-tasks', + leaf: true,//只有一个节点 + children: [ + { path: 'branch/set', component: _import('mdp/sys/branch/BranchSet'), name: 'BranchSet', meta: { title: '机构设置' ,menu:false}}, + { path: 'user/index', component: _import('mdp/sys/user/Index'), name: 'userIndex', meta: { title: 'UserMng',menu:false }}, + + { path: 'dept/index', component: _import('mdp/sys/dept/Index'), name: 'DeptMng', meta: { title: 'DeptMng' ,menu:false}}, + { path: 'branch/index', component: _import('mdp/sys/branch/Index'), name: 'BranchMng', meta: { title: 'BranchMng' ,menu:false}}, + { path: 'post/index', component: _import('mdp/sys/post/Index'), name: 'PostMng', meta: { title: 'PostMng' ,menu:false}}, + { path: 'user/adm', component: _import('mdp/sys/user/BranchAdm'), name: 'BranchAdm', meta: { title: '机构管理员',menu:false }}, + { path: 'user/unregister', component: _import('mdp/sys/user/UserUnregister'), name: 'UserUnregister', meta: { title: '注销审核',menu:false }}, + ] + }, + { + path: '/mdp/plat', + component: Layout, + meta: { + title: 'plat', + icon: 'international' + }, + name: '平台管理', + iconCls: 'fa fa-tasks', + leaf: true,//只有一个节点 + children: [ + { path: 'platform/PlatformMng', component: _import('mdp/plat/platform/PlatformMng'), name: 'PlatformMng', meta: { title: 'PlatformMng' ,menu:true}}, + { path: 'userValidInfo', component: _import('mdp/sys/userValidInfo/UserValidInfoMngForPerson'), name: 'UserValidInfoMngForPerson', meta: { title: '个人认证审核' ,menu:true}}, + { path: 'branchValidInfo', component: _import('mdp/sys/userValidInfo/UserValidInfoMngForBranch'), name: 'UserValidInfoMngForBranch', meta: { title: '企业认证审核' ,menu:true}}, + ] + }, + { + path: '/mdp/meta', + component: Layout, + meta: { + title: 'MetaData', + icon: 'model' + }, + name: '元数据管理', + iconCls: 'fa el-icon-menu', + //leaf: true,//只有一个节点 + //参数路径------------------------------------------------------- + children: [ + { path: 'item/index', component: _import('mdp/meta/item/Index'), name: 'ItemMng', meta: { title: 'ItemMng' ,menu:false}}, + { path: 'item/option/index', component: _import('mdp/meta/itemOption/Index'), name: 'ItemList', meta: { title: 'ItemList' ,menu:false}}, + { path: 'item/option/index/:itemCode', component: _import('mdp/meta/itemOption/Index'), name: 'ItemList', meta: { title: 'ItemList' },hidden:true}, + + { path: 'item/set/:itemCode', component: _import('mdp/meta/item/Set'),hidden:true}, //如 http://wxxx.com/sys/m1/mdp/meta/item/set/xxxx?categoryId=all ,其中 categoryId 取值all、sysParams + + { path: 'params/index', component: _import('mdp/meta/sysParam/Index'), name: 'SysParamMng', meta: { title: 'SysParamMng' ,menu:false}}, + + ] + }, + { + path: '/mdp/tpa', + component: Layout, + meta: { + title: 'tpaMng', + icon: 'star' + }, + name: '第三方应用', + iconCls: 'fa el-icon-menu', + //leaf: true,//只有一个节点 + children: [ + { path: 'invite/index', component: _import('mdp/sys/userTpaInvite/Index'), name: '我的邀请', meta: { title: 'userTpaInviteIndex' ,menu:false}}, + + { path: 'user/index/:inviteId', component: _import('mdp/sys/userTpa/Index'), name: '我邀请的用户', meta: { title: 'myInviteUserTpa' ,menu:false}}, + { path: 'user/index', component: _import('mdp/sys/userTpa/Index'), name: '第三方用户查询', meta: { title: 'userTpaIndex' ,menu:false}}, + + ] + }, + { + path: '/mdp/openAccount', + component: Layout, + meta: { + title: 'AppMdpMng', + icon: 'example' + }, + name: '开户', + iconCls: 'fa el-icon-menu', + //leaf: true,//只有一个节点 + children: [ + { path: 'openAccount/openAccountMng', component: _import('mdp/openAccount/openAccount/openAccountMng'), name: 'openAccountMng', meta: { title: 'OpenAccount' ,icon:'supervise-and-handle',menu:true}} + ] + } + ] +} diff --git a/src/router/routes_workflow.js b/src/router/routes_workflow.js new file mode 100644 index 0000000..1f62201 --- /dev/null +++ b/src/router/routes_workflow.js @@ -0,0 +1,90 @@ +/* Layout */ +import Layout from '../views/layout/Layout' +const _import = require('./_import_' + process.env.NODE_ENV) +export default { + routes: [ + { + path: '/mdp/workflow', + component: Layout, + name: '审批中心', + meta: { + title: 'TaskCenter', + icon: 'task' + }, + iconCls: 'fa el-icon-menu', + //leaf: true,//只有一个节点 + children: [ + { path: 'ru/task/me', component: _import("mdp/workflow/ru/task/TaskListAssigneeToMe"), name: 'TaskListAssigneeToMe', meta: { title: 'TaskListAssigneeToMe',xxxRoles:['user'] } }, + { path: 'ru/task/me/calendar', component: _import("mdp/workflow/ru/task/TaskListAssigneeToMeCalendar"), name: 'TaskListAssigneeToMeCalendar', meta: { title: 'TaskListAssigneeToMeCalendar',xxxRoles:['user'] } }, + { path: 'ru/task/claim/me', component: _import("mdp/workflow/ru/task/TaskListAssigneeToMeClaim"), name: 'TaskListAssigneeToMeClaim', meta: { title: 'TaskListAssigneeToMeClaim',xxxRoles:['user'] } }, + { path: 'ru/procinst/parames/exec/set', component: _import("mdp/workflow/ru/procinstParames/ProcinstParamesExecutionSetRoute"), name: 'ProcinstParamesExecutionSetRoute', hidden: true, meta: { title: 'ProcinstParamesExecutionSetRoute', noCache: true } }, + { path: 'ru/procinst/parames/start/set', component: _import("mdp/workflow/ru/procinstParames/ProcinstParamesStartSetRoute"), name: 'ProcinstParamesStartSetRoute', hidden: true, meta: { title: 'ProcinstParamesStartSetRoute', noCache: true } }, + { path: 'ru/task/list', component: _import("mdp/workflow/ru/task/Index"), name: 'TaskMng', meta: { title: 'TaskMng', roles: ['flowAdmin', 'branchAdmin', 'platformAdmin'] } }, + { path: 're/procdef/list/biz/start', component: _import("mdp/workflow/re/procdef/ProcdefListForBizStart"), name: 'ProcdefListForBizStart', meta: { title: 'ProcdefListForBizStart',xxxRoles:['user'] },hidden: true,}, + { path: 're/procdef/list/start', component: _import("mdp/workflow/re/procdef/ProcdefListForSimpleStart"), name: 'ProcdefListForStart', meta: { title: 'ProcdefListForStart',xxxRoles:['user'] }}, + + ], + }, + { + path: '/mdp/workflow', + component: Layout, + name: '审批管理', + iconCls: 'fa el-icon-menu', + meta: { + title: 'flowCenter', + icon: 'flow' + }, + //leaf: true,//只有一个节点 + children: [ + { path: 'ru/execution/list/monitors/me', component: _import("mdp/workflow/ru/execution/ExecutionListMyMonitors"), name: 'ExecutionListMyMonitors', meta: { title: 'ExecutionListMyMonitors',xxxRoles:['user'] } }, + { path: 'ru/execution/list/start/me', component: _import("mdp/workflow/ru/execution/ExecutionListMyStart"), name: 'ExecutionListMyStart', meta: { title: 'ExecutionListMyStart',xxxRoles:['user'] } }, + { path: 'ru/execution/list/partake/me', component: _import("mdp/workflow/ru/execution/ExecutionListMyPartake"), name: 'ExecutionListMyPartake', meta: { title: 'ExecutionListMyPartake',xxxRoles:['user'] } }, + { path: 'ru/execution/list/sponsors/me', component: _import("mdp/workflow/ru/execution/ExecutionListMySponsors"), name: 'ExecutionListMySponsors', meta: { title: 'ExecutionListMySponsors',xxxRoles:['user'] } }, + { path: 'ru/execution/list/sponsors/me/calendar', component: _import("mdp/workflow/ru/execution/ExecutionListMySponsorsCalendar"), name: 'ExecutionListMySponsorsCalendar', meta: { title: 'ExecutionListMySponsorsCalendar',xxxRoles:['user'] } }, + { path: 'ru/execution/list', component: _import("mdp/workflow/ru/execution/ExecutionListAll"), name: 'ExecutionListAll', meta: { title: 'ExecutionListAll', roles: ['branchAdmin', 'superAdmin', 'platformAdmin'] } }, + + + { path: 'hi/procinst/list/archive', 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/list', component: _import("mdp/workflow/hi/procinst/ProcinstListAll"), name: 'ProcinstListAll', meta: { title: 'ProcinstListAll', roles: ['branchAdmin', 'superAdmin', 'platformAdmin'] } }, + { path: 'procinst/list/start/me', component: _import("mdp/workflow/hi/procinst/ProcinstListMyStart"), name: 'ProcinstListMyStart', meta: { title: 'ProcinstListMyStart',xxxRoles:['user'] } }, + { path: 'procinst/list/partake/me', component: _import("mdp/workflow/hi/procinst/ProcinstListMyPartake"), name: 'ProcinstListMyPartake', meta: { title: 'ProcinstListMyPartake',xxxRoles:['user'] } }, + { path: 'procinst/list/monitors/me', component: _import("mdp/workflow/hi/procinst/ProcinstListMyMonitors"), name: 'ProcinstListMyMonitors', meta: { title: 'ProcinstListMyMonitors',xxxRoles:['user'] } }, + { path: 'procinst/list/sponsors/me', component: _import("mdp/workflow/hi/procinst/ProcinstListMySponsors"), name: 'ProcinstListMySponsors', meta: { title: 'ProcinstListMySponsors',xxxRoles:['user'] } }, + + ] + }, + { + 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/',xxxRoles:['user'] } }, + { path: 'de/model/index', component: _import("mdp/workflow/de/model/Index"), name: 'ModelMng', meta: { title: 'ModelMng',xxxRoles:['user'] } }, + { path: 're/deploy/index', component: _import("mdp/workflow/re/deployment/Index"), name: 'DeploymentMng', meta: { title: 'DeploymentMng',xxxRoles:['user'] } }, + { path: 're/procdef/index', component: _import("mdp/workflow/re/procdef/Index"), name: 'ProcdefSuspend', meta: { title: 'ProcdefSuspend',xxxRoles:['user'] } }, + { path: 're/procdef/list/parames', component: _import("mdp/workflow/re/procdef/Index"), name: 'ProcdefListForParames', meta: { title: 'ProcdefListForParames',xxxRoles:['user'] } }, + { path: 'biz/model/index', component: _import("mdp/workflow/biz/bizModel/Index"), name: 'BizModelMng', meta: { title: 'BizModelMng',xxxRoles:['user'] } }, + ] + }, + + ] +}