import Layout from "~src/layout/index.vue";

//路由菜单系统内置页面配置
export default [
    {
        path: '/',
        redirect: '/home/index'
    },
    {
        path: '/login',
        name: 'login',
        meta: {title: '登录'},
        component: () => import('~src/views/login/index.vue')
    },
    {
        path: '/auth',
        name: 'auth',
        meta: {title: '授权登录'},
        component: () => import('~src/views/user/auth.vue')
    },
    {
        path: '/home',
        name: 'home',
        redirect: '/home/index',
        meta: {title: '数据看板'},
        component: Layout,
        children: [
            {
                path: '/home/index',
                name: 'home-index',
                meta: {title: '数据看板'},
                component: () => import('~src/views/home/index.vue')
            }
        ],
    },
    {
        path: '/file',
        name: 'file',
        redirect: '/file/collection',
        meta: {title: '文件收集'},
        component: Layout,
        children: [
            {
                path: '/file/collection',
                name: 'file-collection',
                meta: {title: '在线收集'},
                component: () => import('~src/views/file/collection.vue')
            },
            {
                path: '/file/records',
                name: 'file-records',
                meta: {title: '档案收集'},
                component: () => import('~src/views/file/records.vue')
            }
        ],
    },
    {
        path: '/archives',
        name: 'archives',
        redirect: '/archives/bookmark',
        meta: {title: '档案管理'},
        component: Layout,
        children: [
            {
                path: '/archives/bookmark',
                name: 'archives-bookmark',
                meta: {title: '档案著录'},
                component: () => import('~src/views/archives/bookmark.vue')
            },
            {
                path: '/archives/rolling',
                name: 'archives-rolling',
                meta: {title: '自动立卷'},
                component: () => import('~src/views/archives/rolling.vue')
            },
            {
                path: '/archives/appraisal',
                name: 'archives-appraisal',
                meta: {title: '档案鉴定'},
                component: () => import('~src/views/archives/appraisal.vue')
            },
            {
                path: '/archives/meta-data',
                name: 'archives-meta-data',
                meta: {title: '元数据'},
                component: () => import('~src/views/archives/meta-data.vue')
            },
            {
                path: '/archives/tuning',
                name: 'archives-tuning',
                meta: {title: '档案调整'},
                component: () => import('~src/views/archives/tuning.vue')
            }
        ],
    },
    {
        path: '/custody',
        name: 'custody',
        redirect: '/custody/backup',
        meta: {title: '档案保管'},
        component: Layout,
        children: [
            {
                path: '/custody/backup',
                name: 'custody-backup',
                meta: {title: '存储备份'},
                component: () => import('~src/views/custody/backup.vue')
            },
            {
                path: '/custody/early',
                name: 'custody-early',
                meta: {title: '档案预警'},
                component: () => import('~src/views/custody/early.vue')
            },
            {
                path: '/custody/early-admin',
                name: 'custody-early-admin',
                meta: {title: '档案预警'},
                component: () => import('~src/views/custody/early-admin.vue')
            },
            {
                path: '/custody/testing',
                name: 'custody-testing',
                meta: {title: '四性检测'},
                component: () => import('~src/views/custody/testing.vue')
            }
        ],
    },
    {
        path: '/using',
        name: 'using',
        redirect: '/using/stats',
        meta: {title: '档案利用'},
        component: Layout,
        children: [
            {
                path: '/using/stats',
                name: 'using-stats',
                meta: {title: '档案统计'},
                component: () => import('~src/views/using/stats.vue')
            },
            {
                path: '/using/query',
                name: 'using-query',
                meta: {title: '档案查询'},
                component: () => import('~src/views/using/query.vue')
            },
        ],
    },
    {
        path: '/transfer',
        name: 'transfer',
        redirect: '/transfer/inspects',
        meta: {title: '档案移交'},
        component: Layout,
        children: [
            {
                path: '/transfer/hand-over',
                name: 'transfer-hand-over',
                meta: {title: '档案移交'},
                component: () => import('~src/views/transfer/hand-over.vue')
            },
            {
                path: '/transfer/inspects',
                name: 'transfer-inspects',
                meta: {title: '档案巡检'},
                component: () => import('~src/views/transfer/inspects.vue')
            },
            {
                path: '/transfer/initial',
                name: 'transfer-initial',
                meta: {title: '档案初验'},
                component: () => import('~src/views/transfer/initial.vue')
            },
            {
                path: '/transfer/initial-expert',
                name: 'transfer-initial-expert',
                meta: {title: '档案初验（专家）'},
                component: () => import('~src/views/transfer/initial-expert.vue')
            },
            {
                path: '/transfer/initial-submit-report',
                name: 'transfer-initial-submit-report',
                meta: {title: '提交验收报告'},
                component: () => import('~src/views/transfer/submit-report.vue')
            },
            {
                path: '/transfer/entry-sampling',
                name: 'transfer-entry-sampling',
                meta: {title: '分配验收范围'},
                component: () => import('~src/views/transfer/entry-sampling.vue')
            },
            {
                path: '/transfer/leader-sampling',
                name: 'transfer-leader-sampling',
                meta: {title: '专家组长抽检'},
                component: () => import('~src/views/transfer/leader-sampling.vue')
            },
            {
                path: '/transfer/preliminary-examination',
                name: 'transfer-preliminary-examination',
                meta: {title: '档案初验'},
                component: () => import('~src/views/transfer/preliminary-examination.vue')
            },
            {
                path: '/transfer/writing-conclusion',
                name: 'transfer-writing-conclusion',
                meta: {title: '编写结论'},
                component: () => import('~src/views/transfer/writing-conclusion.vue')
            },
            {
                path: '/transfer/write-report',
                name: 'transfer-write-report',
                meta: {title: '编写报告'},
                component: () => import('~src/views/transfer/write-report.vue')
            },
        ],
    },
    {
        path: '/config',
        name: 'config',
        redirect: '/config/theme',
        meta: {title: '系统设置'},
        component: Layout,
        children: [
            {
                path: '/config/theme',
                name: 'config-theme',
                meta: {title: '主题配置'},
                component: () => import('~src/views/config/index.vue')
            },
            {
                path: '/config/certified',
                name: 'config-certified',
                meta: {title: '认证管理'},
                component: () => import('~src/views/config/certified.vue')
            },
            {
                path: '/config/parameter',
                name: 'config-parameter',
                meta: {title: '参数设置'},
                component: () => import('~src/views/config/parameter.vue')
            }
        ],
    },
    {
        path: '/other',
        name: 'other',
        redirect: '/other/order-index',
        meta: {title: '其他页面'},
        component: Layout,
        children: [
            {
                path: '/user/index',
                name: 'user-index',
                meta: {title: '个人中心'},
                component: () => import('~src/views/user/index.vue')
            },
            {
                path: '/user/project',
                name: 'user-project',
                meta: {title: '项目档案汇总'},
                component: () => import('~src/views/user/project.vue')
            }
        ],
    },
    {
        path: '/hc-test',
        name: 'hc-test',
        redirect: '/test/index',
        meta: {title: '测试页面'},
        component: Layout,
        children: [
            {
                path: '/test/index',
                name: 'test-index',
                meta: {title: '测试'},
                component: () => import('~src/test/index.vue')
            }
        ],
    },
    {
        path: '/403',
        name: '403',
        meta: {title: '403'},
        component: () => import('~src/views/error/403.vue')
    },
    {
        path: '/404',
        name: '404',
        meta: {title: '404'},
        component: () => import('~src/views/error/404.vue')
    },
    {
        path: '/500',
        name: '500',
        meta: {title: '500'},
        component: () => import('~src/views/error/500.vue')
    },
    {
        path: '/:path(.*)*',
        redirect: '/404'
    }
]
