init
This commit is contained in:
1485
src/router/index.js
1485
src/router/index.js
File diff suppressed because it is too large
Load Diff
28
src/router/modules/art-manage.js
Normal file
28
src/router/modules/art-manage.js
Normal file
@@ -0,0 +1,28 @@
|
||||
/** When your routing table is too long, you can split it into small modules**/
|
||||
|
||||
import Layout from '@/layout'
|
||||
|
||||
const artManageRouter = {
|
||||
path: '/art',
|
||||
component: Layout,
|
||||
redirect: '/art/list',
|
||||
name: 'ArtManager',
|
||||
meta: { title: '工艺管理', icon: 'form', affix: true },
|
||||
children: [
|
||||
{
|
||||
path: 'list',
|
||||
component: () => import('@/views/art/list'),
|
||||
name: 'ArtList',
|
||||
meta: { title: '工艺列表', icon: 'form', affix: true }
|
||||
},
|
||||
{
|
||||
path: 'process',
|
||||
component: () => import('@/views/art/process/list'),
|
||||
name: 'Process',
|
||||
meta: { title: '工艺流程', icon: 'form', affix: true },
|
||||
hidden: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default artManageRouter
|
||||
@@ -1,102 +0,0 @@
|
||||
/** When your routing table is too long, you can split it into small modules **/
|
||||
|
||||
import Layout from '@/layout'
|
||||
|
||||
const componentsRouter = {
|
||||
path: '/components',
|
||||
component: Layout,
|
||||
redirect: 'noRedirect',
|
||||
name: 'ComponentDemo',
|
||||
meta: {
|
||||
title: 'Components',
|
||||
icon: 'component'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'tinymce',
|
||||
component: () => import('@/views/components-demo/tinymce'),
|
||||
name: 'TinymceDemo',
|
||||
meta: { title: 'Tinymce' }
|
||||
},
|
||||
{
|
||||
path: 'markdown',
|
||||
component: () => import('@/views/components-demo/markdown'),
|
||||
name: 'MarkdownDemo',
|
||||
meta: { title: 'Markdown' }
|
||||
},
|
||||
{
|
||||
path: 'json-editor',
|
||||
component: () => import('@/views/components-demo/json-editor'),
|
||||
name: 'JsonEditorDemo',
|
||||
meta: { title: 'JSON Editor' }
|
||||
},
|
||||
{
|
||||
path: 'split-pane',
|
||||
component: () => import('@/views/components-demo/split-pane'),
|
||||
name: 'SplitpaneDemo',
|
||||
meta: { title: 'SplitPane' }
|
||||
},
|
||||
{
|
||||
path: 'avatar-upload',
|
||||
component: () => import('@/views/components-demo/avatar-upload'),
|
||||
name: 'AvatarUploadDemo',
|
||||
meta: { title: 'Upload' }
|
||||
},
|
||||
{
|
||||
path: 'dropzone',
|
||||
component: () => import('@/views/components-demo/dropzone'),
|
||||
name: 'DropzoneDemo',
|
||||
meta: { title: 'Dropzone' }
|
||||
},
|
||||
{
|
||||
path: 'sticky',
|
||||
component: () => import('@/views/components-demo/sticky'),
|
||||
name: 'StickyDemo',
|
||||
meta: { title: 'Sticky' }
|
||||
},
|
||||
{
|
||||
path: 'count-to',
|
||||
component: () => import('@/views/components-demo/count-to'),
|
||||
name: 'CountToDemo',
|
||||
meta: { title: 'Count To' }
|
||||
},
|
||||
{
|
||||
path: 'mixin',
|
||||
component: () => import('@/views/components-demo/mixin'),
|
||||
name: 'ComponentMixinDemo',
|
||||
meta: { title: 'Component Mixin' }
|
||||
},
|
||||
{
|
||||
path: 'back-to-top',
|
||||
component: () => import('@/views/components-demo/back-to-top'),
|
||||
name: 'BackToTopDemo',
|
||||
meta: { title: 'Back To Top' }
|
||||
},
|
||||
{
|
||||
path: 'drag-dialog',
|
||||
component: () => import('@/views/components-demo/drag-dialog'),
|
||||
name: 'DragDialogDemo',
|
||||
meta: { title: 'Drag Dialog' }
|
||||
},
|
||||
{
|
||||
path: 'drag-select',
|
||||
component: () => import('@/views/components-demo/drag-select'),
|
||||
name: 'DragSelectDemo',
|
||||
meta: { title: 'Drag Select' }
|
||||
},
|
||||
{
|
||||
path: 'dnd-list',
|
||||
component: () => import('@/views/components-demo/dnd-list'),
|
||||
name: 'DndListDemo',
|
||||
meta: { title: 'Dnd List' }
|
||||
},
|
||||
{
|
||||
path: 'drag-kanban',
|
||||
component: () => import('@/views/components-demo/drag-kanban'),
|
||||
name: 'DragKanbanDemo',
|
||||
meta: { title: 'Drag Kanban' }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default componentsRouter
|
||||
68
src/router/modules/material-manage.js
Normal file
68
src/router/modules/material-manage.js
Normal file
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* @Author: your name
|
||||
* @Date: 2021-04-26 08:42:32
|
||||
* @LastEditTime: 2021-04-26 10:01:24
|
||||
* @LastEditors: your name
|
||||
* @Description: In User Settings Edit
|
||||
* @FilePath: \mt-bus-fe\src\router\modules\material-manage.js
|
||||
*/
|
||||
/** When your routing table is too long, you can split it into small modules**/
|
||||
|
||||
import Layout from '@/layout'
|
||||
|
||||
const materialManageRouter = {
|
||||
path: '/material-manage',
|
||||
component: Layout,
|
||||
redirect: '/material-manage/refueling',
|
||||
name: 'MaterialsManage',
|
||||
meta: { title: '物料管理', icon: 'form', affix: true },
|
||||
children: [
|
||||
{
|
||||
path: 'refueling',
|
||||
component: () => import('@/views/material-manage/refueling/index'),
|
||||
name: 'refueling',
|
||||
meta: { title: '换料记录', icon: 'form', affix: true }
|
||||
},
|
||||
{
|
||||
path: 'refueling/add',
|
||||
component: () => import('@/views/material-manage/refueling/components/add-panel'),
|
||||
name: 'refuelingAdd',
|
||||
meta: { title: '换料记录操作', icon: 'form', affix: true },
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: 'bom',
|
||||
component: () => import('@/views/material-manage/bom/index'),
|
||||
name: 'bom',
|
||||
meta: { title: '物料BOM', icon: 'form', affix: true }
|
||||
},
|
||||
{
|
||||
path: 'bom/add',
|
||||
component: () => import('@/views/material-manage/bom/components/add-panel'),
|
||||
name: 'bomAdd',
|
||||
meta: { title: '物料BOM操作', icon: 'form', affix: true },
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: 'batch',
|
||||
component: () => import('@/views/material-manage/batch/index'),
|
||||
name: 'batch',
|
||||
meta: { title: '物料批次', icon: 'form', affix: true }
|
||||
},
|
||||
{
|
||||
path: 'batch/add',
|
||||
component: () => import('@/views/material-manage/batch/components/add-panel'),
|
||||
name: 'batchAdd',
|
||||
meta: { title: '物料批次操作', icon: 'form', affix: true },
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: 'report',
|
||||
component: () => import('@/views/material-manage/report/index'),
|
||||
name: 'report',
|
||||
meta: { title: '物料报表', icon: 'form', affix: true }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default materialManageRouter
|
||||
@@ -1,66 +0,0 @@
|
||||
/** When your routing table is too long, you can split it into small modules **/
|
||||
|
||||
import Layout from '@/layout'
|
||||
|
||||
const nestedRouter = {
|
||||
path: '/nested',
|
||||
component: Layout,
|
||||
redirect: '/nested/menu1/menu1-1',
|
||||
name: 'Nested',
|
||||
meta: {
|
||||
title: 'Nested Routes',
|
||||
icon: 'nested'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'menu1',
|
||||
component: () => import('@/views/nested/menu1/index'), // Parent router-view
|
||||
name: 'Menu1',
|
||||
meta: { title: 'Menu 1' },
|
||||
redirect: '/nested/menu1/menu1-1',
|
||||
children: [
|
||||
{
|
||||
path: 'menu1-1',
|
||||
component: () => import('@/views/nested/menu1/menu1-1'),
|
||||
name: 'Menu1-1',
|
||||
meta: { title: 'Menu 1-1' }
|
||||
},
|
||||
{
|
||||
path: 'menu1-2',
|
||||
component: () => import('@/views/nested/menu1/menu1-2'),
|
||||
name: 'Menu1-2',
|
||||
redirect: '/nested/menu1/menu1-2/menu1-2-1',
|
||||
meta: { title: 'Menu 1-2' },
|
||||
children: [
|
||||
{
|
||||
path: 'menu1-2-1',
|
||||
component: () => import('@/views/nested/menu1/menu1-2/menu1-2-1'),
|
||||
name: 'Menu1-2-1',
|
||||
meta: { title: 'Menu 1-2-1' }
|
||||
},
|
||||
{
|
||||
path: 'menu1-2-2',
|
||||
component: () => import('@/views/nested/menu1/menu1-2/menu1-2-2'),
|
||||
name: 'Menu1-2-2',
|
||||
meta: { title: 'Menu 1-2-2' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'menu1-3',
|
||||
component: () => import('@/views/nested/menu1/menu1-3'),
|
||||
name: 'Menu1-3',
|
||||
meta: { title: 'Menu 1-3' }
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'menu2',
|
||||
name: 'Menu2',
|
||||
component: () => import('@/views/nested/menu2/index'),
|
||||
meta: { title: 'Menu 2' }
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default nestedRouter
|
||||
@@ -1,41 +0,0 @@
|
||||
/** When your routing table is too long, you can split it into small modules **/
|
||||
|
||||
import Layout from '@/layout'
|
||||
|
||||
const tableRouter = {
|
||||
path: '/table',
|
||||
component: Layout,
|
||||
redirect: '/table/complex-table',
|
||||
name: 'Table',
|
||||
meta: {
|
||||
title: 'Table',
|
||||
icon: 'table'
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'dynamic-table',
|
||||
component: () => import('@/views/table/dynamic-table/index'),
|
||||
name: 'DynamicTable',
|
||||
meta: { title: 'Dynamic Table' }
|
||||
},
|
||||
{
|
||||
path: 'drag-table',
|
||||
component: () => import('@/views/table/drag-table'),
|
||||
name: 'DragTable',
|
||||
meta: { title: 'Drag Table' }
|
||||
},
|
||||
{
|
||||
path: 'inline-edit-table',
|
||||
component: () => import('@/views/table/inline-edit-table'),
|
||||
name: 'InlineEditTable',
|
||||
meta: { title: 'Inline Edit' }
|
||||
},
|
||||
{
|
||||
path: 'complex-table',
|
||||
component: () => import('@/views/table/complex-table'),
|
||||
name: 'ComplexTable',
|
||||
meta: { title: 'Complex Table' }
|
||||
}
|
||||
]
|
||||
}
|
||||
export default tableRouter
|
||||
41
src/router/modules/team.js
Normal file
41
src/router/modules/team.js
Normal file
@@ -0,0 +1,41 @@
|
||||
/** When your routing table is too long, you can split it into small modules**/
|
||||
|
||||
import Layout from '@/layout'
|
||||
|
||||
const teamRouter = {
|
||||
path: '/team-manage',
|
||||
component: Layout,
|
||||
redirect: '/team-manage/list',
|
||||
name: 'TeamManage',
|
||||
meta: { title: '班组管理', icon: 'form', affix: true },
|
||||
children: [
|
||||
{
|
||||
path: 'list',
|
||||
component: () => import('@/views/team-manage/list'),
|
||||
name: 'TeamManageList',
|
||||
meta: { title: '班组列表', icon: 'form', affix: true }
|
||||
},
|
||||
{
|
||||
path: 'team/add',
|
||||
component: () => import('@/views/team-manage/components/change/add-plan'),
|
||||
name: 'TeamManageAdd',
|
||||
meta: { title: '班组交接操作', icon: 'form', affix: true },
|
||||
hidden: true
|
||||
},
|
||||
{
|
||||
path: 'plan',
|
||||
component: () => import('@/views/team-manage/plan'),
|
||||
name: 'TeamManagePlan',
|
||||
meta: { title: '班组计划', icon: 'form', affix: true }
|
||||
},
|
||||
{
|
||||
path: 'plan/add',
|
||||
component: () => import('@/views/team-manage/components/plan/add-plan'),
|
||||
name: 'TeamManagePlanAdd',
|
||||
meta: { title: '班组计划操作', icon: 'form', affix: true },
|
||||
hidden: true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
export default teamRouter
|
||||
Reference in New Issue
Block a user