import { getNavs } from "@/plugins/utils";

import Inspection from "../modules/inspection/Inspection";
import InspectionLogs from "../modules/inspection/InspectionLogs";
import InspectionGrading from "../modules/inspection/InspectionGrading";

const inspectionRoutes = [
  {
    path: "inspection-logs",
    name: "InspectionLogs",
    component: InspectionLogs,
    meta: {
      title: "操作日志"
    }
  },
  {
    path: "inspection-grading",
    name: "InspectionGrading",
    component: InspectionGrading,
    meta: {
      title: "改档处理"
    }
  }
];

export const navs = getNavs(inspectionRoutes);

export default [
  {
    path: "/inspection",
    name: "Inspection",
    component: Inspection,
    redirect: { name: "InspectionLogs" },
    children: inspectionRoutes
  }
];
