import type { Route } from '@/global' const Layout = () => import('@/layouts/index.vue') const routes: Route.recordRaw[] = [ { path: '/resource', component: Layout, redirect: '/person/registerList', name: 'Person', meta: { title: '资源管理', icon: 'ep:key', auth: '/resource', }, children: [ { path: 'fileList', name: 'FileList', component: () => import('@/views/resource/file/list.vue'), meta: { title: '计量文件', auth: '/resource/technology/data', icon: 'ep:key', }, }, { path: 'file/:type/:id?', name: 'DataDetail', component: () => import('@/views/resource/file/detail.vue'), meta: { title: '计量文件', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/system/dataList', }, }, { path: 'infoList', name: 'CustomerInfoList', component: () => import('@/views/resource/customer/list.vue'), meta: { title: '委托方名录', auth: '/resource/customer/infoList', icon: 'ep:key', }, }, { path: 'customer/:type/:id?', name: 'CustomerInfoDetail', component: () => import('@/views/resource/customer/detail.vue'), meta: { title: '委托方名录', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/customer/infoList', }, }, { path: 'testEquipmentList', name: 'TestEquipmentList', component: () => import('@/views/resource/testEquipment/list.vue'), meta: { title: '受检设备信息', auth: '/resource/testEquipment', icon: 'ep:key', }, }, { path: 'testEquipment/:type/:id?', name: 'TestEquipmentDetail', component: () => import('@/views/resource/testEquipment/detail.vue'), meta: { title: '受检设备信息', icon: 'ep:key', sidebar: false, breadcrumb: true, activeMenu: '/resource/testEquipmentList', }, }, { path: 'autograph', name: 'ResourceAutograph', component: () => import('@/views/system/baseInfo/autograph/autograph.vue'), meta: { title: '签名管理', icon: 'ep:key', auth: '/sys/baseInfo/autograph', }, }, ], }, ] export default routes