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.

360 lines
9.0 KiB

2 years ago
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: '首页',
meta: {
i18n: 'dashboard',
},
component: () => import(/* webpackChunkName: "views" */ '@/views/wel/index.vue'),
},
{
path: 'dashboard',
name: '控制台',
meta: {
i18n: 'dashboard',
menu: false,
},
component: () => import(/* webpackChunkName: "views" */ '@/views/wel/dashboard.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: '/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'),
},
],
},
2 years ago
// {
// path: '/basic/pdarecords/basicPdarecords',
// name:'pda维修记录',
// meta:{
// i18n:'work'
// },
// component: () => import(/* webpackChunkName: "views" */ '@/views/basic/pdarecords/basicPdarecords.vue'),
// },
{
path: '/basic/pdarecords/basicPdarecords',
component: Layout,
key:'fullPath',
2 years ago
redirect: '/basic/pdarecords',
children: [
{
path: '/basic/pdarecords/basicPdarecords',
name: 'pad编辑',
2 years ago
meta: {
data: 'data',
},
component: () => import(/* webpackChunkName: "views" */ '@/views/basic/pdarecords/basicPdarecords.vue'),
},
],
},
2 years ago
{
path: '/basic/pdarecords/basicPdarecordslist',
component: Layout,
key:'fullPath',
redirect: '/basic/pdarecords',
children: [
{
path: '/basic/pdarecords/basicPdarecordslist',
name: '维修总记录',
meta: {
data: 'data',
},
component: () => import(/* webpackChunkName: "views" */ '@/views/basic/pdarecords/basicPdarecordslist.vue'),
},
],
},
2 years ago
{
path: '/basic/delinenode/basicDelineNode',
component: Layout,
redirect: '/basic/delinenode',
children: [
{
path: '/basic/delinenode/basicDelineNode',
name: '提货线路节点',
meta: {
data: 'data',
},
component: () => import('@/views/basic/delinenode/basicDelineNode.vue'),
},
],
},
{
path: '/factory/snm/staorderPackages',
component: Layout,
redirect: '/factory/snm',
children: [
{
path: '/factory/snm/staorderPackages',
name: '运单包件信息',
meta: {
data: 'data',
},
component: () => import('@/views/factory/snm/staorderPackages.vue'),
},
],
},
{
path: '/basicdata/brand/basicHistoricalContract',
component: Layout,
redirect: '/brand/basicHistoricalContract',
children: [
{
path: '/basicdata/brand/basicHistoricalContract',
name: '历史记录',
meta: {
i18n: 'dict',
},
props: route => ({ name: route.query.name,
id: route.query.id}),
component: () =>
import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicHistoricalContract.vue'),
},
],
},
{
path: '/basicdata/brand/basicStorageServices',
component: Layout,
redirect: '/brand/basicStorageServices',
children: [
{
path: '/basicdata/brand/basicStorageServices',
name: '服务仓',
meta: {
i18n: 'dict',
},
props: route => ({ name: route.query.name,
id: route.query.id,type: route.query.type}),
component: () =>
import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicStorageServices.vue'),
},
],
},
{
path: '/basicdata/brand/basicdataStoreBrand',
component: Layout,
redirect: '/brand/basicdataStoreBrand',
children: [
{
path: '/basicdata/brand/basicdataStoreBrand',
name: '品牌',
meta: {
i18n: 'dict',
},
props: route => ({ name: route.query.name,
id: route.query.id}),
component: () =>
import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicdataStoreBrand.vue'),
},
],
},
2 years ago
{
path: '/basicdata/brand/basicZonePriceFrom',
component: Layout,
redirect: '/brand/basicZonePriceFrom',
children: [
{
path: '/basicdata/brand/basicZonePriceFrom',
name: '区域价格新增',
2 years ago
meta: {
i18n: 'dict',
},
props: route => (
{
name: route.query.name,
id: route.query.id ,
type: route.query.type
}
),
2 years ago
component: () =>
import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicZonePriceFrom.vue'),
},
],
},
{
path: '/basicdata/brand/basicdataFreightFrom',
component: Layout,
redirect: '/brand/basicdataFreightFrom',
children: [
{
path: '/basicdata/brand/basicdataFreightFrom',
name: '基础价格新增',
meta: {
i18n: 'dict',
},
props: route => (
{
name: route.query.name,
id: route.query.id ,
type: route.query.type
}
),
component: () =>
import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicdataFreightFrom.vue'),
},
],
},
{
path: '/basicdata/brand/basicStoreContact',
component: Layout,
redirect: '/brand/basicStoreContact',
children: [
{
path: '/basicdata/brand/basicStoreContact',
name: '联系人',
meta: {
i18n: 'dict',
},
props: route => ({ name: route.query.name,
id: route.query.id}),
component: () =>
import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicStoreContact.vue'),
},
],
},
{
path: '/basic/printTemplate/basicPrintTemplateFrom',
component: Layout,
redirect: '/basic/printTemplate',
children: [
{
path: '/basic/printTemplate/basicPrintTemplateFrom',
name: 'name',
meta: {
data: 'data',
},
component: () => import('@/views/basic/printTemplate/basicPrintTemplateFrom.vue'),
},
],
},
2 years ago
{
path: '/basic/pda/basicPdaform',
component: Layout,
redirect: '/basic/pda',
children: [
{
path: '/basic/pda/basicPdaform',
name: 'pad信息',
meta: {
data: 'data',
},
component: () => import('@/views/basic/pda/basicPdaform.vue'),
},
],
},
{
path: '/basic/property/basicPropertyform',
component: Layout,
redirect: '/basic/property',
children: [
{
path: '/basic/property/basicPropertyform',
name: '编辑字段',
meta: {
data: 'data',
},
component: () => import('@/views/basic/property/basicPropertyform.vue'),
},
],
},
2 years ago
];