DetectionRouter.ts 3.01 KB
import { RouteRecordRaw } from "vue-router";

export const DetectionRouter: Array<RouteRecordRaw> = [
    {
        path: "/detection/order",
        component: () =>
            import("@/views/detection/order/DetectionOrderPage.vue"),
        meta: {
            breadcrumbs: [{ name: "检测管理" }, { name: "检测工单管理" }],
        },
    },
    {
        path: "/detection/order/view",
        component: () =>
            import("@/views/detection/order/DetectionOrderView.vue"),
        meta: {
            breadcrumbs: [
                { name: "检测管理" },
                { name: "检测工单管理", path: "/detection/order" },
                { name: "检测工单详情" },
            ],
        },
    },
    {
        path: "/detection/order/edit",
        component: () =>
            import("@/views/detection/order/DetectionOrderEdit.vue"),
        meta: {
            breadcrumbs: [
                { name: "检测管理" },
                { name: "检测工单管理", path: "/detection/order" },
                { name: "编辑检测项" },
            ],
        },
    },
    {
        path: "/detection/order/report",
        component: () =>
            import("@/views/detection/order/DetectionOrderEdit.vue"),
        meta: {
            readonly: true,
            breadcrumbs: [
                { name: "检测管理" },
                { name: "检测工单管理", path: "/detection/order" },
                { name: "查看检测项" },
            ],
        },
    },
    {
        path: "/detection/report",
        component: () =>
            import("@/views/detection/report/DetectionReportPage.vue"),
        meta: {
            breadcrumbs: [{ name: "检测管理" }, { name: "检测报告管理" }],
        },
    },
    {
        path: "/detection/template",
        component: () =>
            import("@/views/detection/template/DetectionTemplatePage.vue"),
        meta: {
            breadcrumbs: [{ name: "检测管理" }, { name: "检测模板管理" }],
        },
    },
    {
        path: "/detection/template/preview",
        component: () =>
            import("@/views/detection/template/DetectionTemplatePreview.vue"),
        meta: {
            breadcrumbs: [
                { name: "检测管理" },
                { name: "检测模板管理", path: "/detection/template" },
                { name: "预览" },
            ],
        },
    },
    {
        path: "/detection/inspector",
        component: () =>
            import("@/views/detection/inspector/DetectionInspectorPage.vue"),
        meta: {
            breadcrumbs: [{ name: "检测管理" }, { name: "检测师管理" }],
        },
    },
    {
        path: "/detection/inspector/view",
        component: () =>
            import("@/views/detection/inspector/DetectionInspectorView.vue"),
        meta: {
            breadcrumbs: [
                { name: "检测管理" },
                { name: "检测师管理", path: "/detection/inspector" },
                { name: "检测师详情" },
            ],
        },
    },
];