|
@@ -77,19 +77,61 @@ export const constantRoutes = [{
|
|
|
path: "list/:status",
|
|
|
component: () =>
|
|
|
import ("@/views/task/list/index"),
|
|
|
- name: "list",
|
|
|
+ name: "tasklist",
|
|
|
meta: { title: "任务列表", icon: "user" },
|
|
|
},
|
|
|
{
|
|
|
path: "detail/:id",
|
|
|
component: () =>
|
|
|
import ("@/views/task/detail/index"),
|
|
|
- name: "detail",
|
|
|
+ name: "taskdetail",
|
|
|
meta: { title: "任务详情", icon: "user" },
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
{
|
|
|
+ path: "/detection",
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ redirect: "noredirect",
|
|
|
+ children: [{
|
|
|
+ path: "list/:status",
|
|
|
+ component: () =>
|
|
|
+ import ("@/views/detection/list/index"),
|
|
|
+ name: "detectionlist",
|
|
|
+ meta: { title: "检测计划列表", icon: "user" },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "detail/:id",
|
|
|
+ component: () =>
|
|
|
+ import ("@/views/detection/detail/index"),
|
|
|
+ name: "detectiondetail",
|
|
|
+ meta: { title: "检测计划详情", icon: "user" },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "/maintain",
|
|
|
+ component: Layout,
|
|
|
+ hidden: true,
|
|
|
+ redirect: "noredirect",
|
|
|
+ children: [{
|
|
|
+ path: "list/:status",
|
|
|
+ component: () =>
|
|
|
+ import ("@/views/maintain/list/index"),
|
|
|
+ name: "maintainlist",
|
|
|
+ meta: { title: "养护计划列表", icon: "user" },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ path: "detail/:id",
|
|
|
+ component: () =>
|
|
|
+ import ("@/views/maintain/detail/index"),
|
|
|
+ name: "maintaindetail",
|
|
|
+ meta: { title: "养护计划详情", icon: "user" },
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ },
|
|
|
+ {
|
|
|
path: "/user",
|
|
|
component: Layout,
|
|
|
hidden: true,
|
|
@@ -176,4 +218,4 @@ const router = createRouter({
|
|
|
},
|
|
|
});
|
|
|
|
|
|
-export default router;
|
|
|
+export default router;
|