DetectionRouter.ts
3.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
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: "检测师详情" },
],
},
},
];