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'), }, ], }, // { // 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', redirect: '/basic/pdarecords', children: [ { path: '/basic/pdarecords/basicPdarecords', name: 'pad编辑', meta: { data: 'data', }, component: () => import(/* webpackChunkName: "views" */ '@/views/basic/pdarecords/basicPdarecords.vue'), }, ], }, { 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'), }, ], }, { 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'), }, ], }, { path: '/basicdata/brand/basicZonePriceFrom', component: Layout, redirect: '/brand/basicZonePriceFrom', children: [ { path: '/basicdata/brand/basicZonePriceFrom', 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/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, type: route.query.type }), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicStoreContact.vue'), }, ], }, { path: '/basicdata/brand/basicdataCustomerBase', component: Layout, redirect: '/brand/basicdataCustomerBase', children: [ { path: '/basicdata/brand/basicdataCustomerBase', name: '基地', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicdataCustomerBase.vue'), }, ], }, { path: '/basicdata/brand/basicdataCustomerStore', component: Layout, redirect: '/brand/basicdataCustomerStore', children: [ { path: '/basicdata/brand/basicdataCustomerStore', name: '商场', meta: { i18n: 'dict', }, props: route => ({ name: route.query.name, id: route.query.id }), component: () => import(/* webpackChunkName: "views" */ '@/views/basicdata/brand/basicdataCustomerStore.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'), }, ], }, { 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'), }, ], }, ];