中航光电热表web
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

271 lines
6.6 KiB

import Layout from '@/page/index/index.vue';
import Store from '@/store/';
export default [
{
path: '/wel',
component: () =>
Store.getters.isMacOs ? import('@/mac/index.vue') : import('@/page/index/index.vue'),
redirect: '/wel/index',
children: [
{
path: 'index',
// name: '首页',
name: '工作台',
meta: {
i18n: 'dashboard',
},
component: () => import(/* webpackChunkName: "views" */ '@/views/wel/index.vue'),
},
{
path: 'search',
// name: '首页',
name: '搜索',
meta: {
i18n: 'dashboard',
},
component: () => import(/* webpackChunkName: "views" */ '@/views/wel/search.vue'),
},
{
path: 'dashboard',
name: '控制台',
meta: {
i18n: 'dashboard',
menu: false,
},
component: () => import(/* webpackChunkName: "views" */ '@/views/wel/dashboard.vue'),
},
{
path: '/wel/taskCope',
component: () => import(/* webpackChunkName: "page" */ '@/views/zhgd-work/taskCope/index.vue'),
name: '工序接收',
meta: {
keepAlive: true,
isTab: false,
isAuth: false,
},
},
// workReport
// {
// path: 'search',
// name: '菜单搜索',
// meta: {
// i18n: 'search',
// menu: false,
// },
// component: () => import(/* webpackChunkName: "views" */ '@/views/wel/search.vue'),
// }
],
},
{
path: '/test',
component: Layout,
redirect: '/test/index',
children: [
{
path: 'index',
name: '测试页',
meta: {
i18n: 'test',
},
component: () => import(/* webpackChunkName: "views" */ '@/views/util/test.vue'),
},
],
},
{
path: '/dict-horizontal',
component: Layout,
redirect: '/dict-horizontal/index',
children: [
{
path: 'index',
name: '字典管理',
meta: {
i18n: 'dict',
},
component: () =>
import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-horizontal.vue'),
},
],
},
{
path: '/dict-vertical',
component: Layout,
redirect: '/dict-vertical/index',
children: [
{
path: 'index',
name: '字典管理',
meta: {
i18n: 'dict',
},
component: () =>
import(/* webpackChunkName: "views" */ '@/views/util/demo/dict-vertical.vue'),
},
],
},
{
path: '/info',
component: Layout,
redirect: '/info/index',
children: [
{
path: 'index',
name: '个人信息',
meta: {
i18n: 'info',
},
component: () => import(/* webpackChunkName: "views" */ '@/views/system/userinfo.vue'),
},
],
},
{
path: '/zhgd-work',
component: Layout,
redirect: '/zhgd-work/taskCope',
children: [
{
path: 'taskCope',
name: '工序接收',
meta: {
i18n: 'info',
},
component: () => import(/* webpackChunkName: "views" */ '@/views/zhgd-work/taskCope/index.vue'),
},
],
},
{
path: '/workReport',
component: Layout,
redirect: '/workReport/index',
children: [
{
path: 'index',
component: () => import(/* webpackChunkName: "page" */ '@/views/zhgd-work/workReport/index.vue'),
name: '工序报工',
meta: {
i18n: 'info',
},
},
],
},
{
path: '/workCheck',
component: Layout,
redirect: '/workCheck/index',
children: [
{
path: 'index',
component: () => import(/* webpackChunkName: "page" */ '@/views/zhgd-work/workCheck/index.vue'),
name: '工序检验',
meta: {
i18n: 'info',
},
},
],
},
{
path: '/retrospectDefend',
component: Layout,
redirect: '/retrospectDefend/index',
children: [
{
path: 'index',
component: () => import(/* webpackChunkName: "page" */ '@/views/zhgd-work/retrospectDefend/index.vue'),
name: '生产追溯维护',
meta: {
i18n: 'info',
},
},
],
},
{
path: '/eleFilesEdit',
component: Layout,
redirect: '/eleFilesEdit/index',
children: [
{
path: 'index',
component: () => import(/* webpackChunkName: "page" */ '@/views/zhgd-work/eleFilesEdit/index.vue'),
name: '电子档案维护',
meta: {
i18n: 'info',
},
},
],
},
{
path: '/work/process/leave',
component: Layout,
redirect: '/work/process/leave/form',
children: [
{
path: 'form/:processDefinitionId',
name: '请假流程',
meta: {
i18n: 'work',
},
component: () =>
import(/* webpackChunkName: "views" */ '@/views/work/process/leave/form.vue'),
},
{
path: 'handle/:taskId/:processInstanceId/:businessId',
name: '处理请假流程',
meta: {
i18n: 'work',
},
component: () =>
import(/* webpackChunkName: "views" */ '@/views/work/process/leave/handle.vue'),
},
{
path: 'detail/:processInstanceId/:businessId',
name: '请假流程详情',
meta: {
i18n: 'work',
},
component: () =>
import(/* webpackChunkName: "views" */ '@/views/work/process/leave/detail.vue'),
},
],
},
{
path: '/workflow',
component: Layout,
children: [
{
path: 'design/process/:id',
name: '模型设计2',
component: () =>
import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/pages/design/index.vue'),
},
{
path: 'design/model/history/:id',
name: '模型历史',
component: () =>
import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/pages/design/model-history.vue'),
},
{
path: 'design/form/history/:id',
name: '表单历史',
component: () =>
import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/pages/design/form-history.vue'),
},
{
path: 'process/start/:params',
name: '新建流程2',
component: () =>
import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/pages/process/form/start.vue'),
},
{
path: 'process/detail/:params',
name: '流程详情',
component: () =>
import( /* webpackChunkName: "views" */ '@/views/plugin/workflow/pages/process/form/detail.vue'),
}
]
},
];