import { createWebHistory, createWebHashHistory, createMemoryHistory, createRouter, } from "vue-router"; import Login from "../views/index/Login.vue"; const router = createRouter({ history: createWebHashHistory(), routes: [ { path: "/index", name: "index", meta: { title: "海事总台", }, component: () => import("../views/index/Index.vue"), }, { path: "/login", name: "login", meta: { title: "登录", }, component: Login, }, { path: "/marineManage/marineNotice", name: "marineNotice", meta: { title: "海事公告", keepAlive: true, }, component: () => import("../views/marineManage/marineNotice.vue"), }, { path: "/shipManage/shipList", name: "shipList", meta: { title: "船舶列表", keepAlive: true, }, component: () => import("../views/shipManage/shipList.vue"), }, { path: "/shipManage/shipDetail", name: "shipDetail", meta: { title: "船舶详情", }, component: () => import("../views/shipManage/shipDetail.vue"), }, { path: "/shipOwnerManage/shipOwnerDetail", name: "shipOwnerDetail", meta: { title: "船员详情", }, component: () => import("../views/shipOwnerManage/shipOwnerDetail.vue"), }, { path: "/shipOwnerManage/shipOwnerList", name: "shipOwnerList", meta: { title: "船员列表", }, component: () => import("../views/shipOwnerManage/shipOwnerList.vue"), }, { path: "/crewManage/crewDetail", name: "crewDetail", meta: { title: "船员详情", }, component: () => import("../views/crewManage/crewDetail.vue"), }, { path: "/workStation/certsManage", name: "certsManage", meta: { title: "证书管理", }, component: () => import("../views/workStation/certsManage.vue"), }, { path: "/workStation/oilPriceManage", name: "oilPriceManage", meta: { title: "油价管理", }, component: () => import("../views/workStation/oilPriceManage.vue"), }, { path: "/workStation/legalAidManage", name: "legalAidManage", meta: { title: "法律援助管理", }, component: () => import("../views/workStation/legalAidManage.vue"), }, { path: "/workStation/insuranceManage", name: "insuranceManage", meta: { title: "保险管理", }, component: () => import("../views/workStation/insuranceManage.vue"), }, { path: "/shipSecurityManage/shipCheckTemplateDetail", name: "shipCheckTemplateDetail", meta: { title: "船舶安检模板", }, component: () => import("../views/shipSecurityManage/shipCheckTemplateDetail.vue"), }, { path: "/shipSecurityManage/shipCheckTemplateList", name: "shipCheck", meta: { title: "船舶安检模板列表", }, component: () => import("../views/shipSecurityManage/shipCheckTemplateList.vue"), }, { path: "/shipSecurityManage/checkShipList", name: "checkShipList", meta: { title: "船舶安检列表", }, component: () => import("../views/shipSecurityManage/checkShipList.vue"), }, { path: "/shipSecurityManage/checkShip", name: "checkShip", meta: { title: "发起船舶安检", }, component: () => import("../views/shipSecurityManage/checkShip.vue"), }, { path: "/shipSecurityManage/checkShipExamineList", name: "checkShipExamineList", meta: { title: "安检审核列表", }, component: () => import("../views/shipSecurityManage/checkShipExamineList.vue"), }, { path: "/shipSecurityManage/checkShipExamine", name: "checkShipExamine", meta: { title: "船舶安检审核", }, component: () => import("../views/shipSecurityManage/checkShipExamine.vue"), }, { path: "/shipSecurityManage/checkSingleShip", name: "checkSingleShip", meta: { title: "发起船舶安检审核", }, component: () => import("../views/shipSecurityManage/checkSingleShip.vue"), }, { path: "/shipSecurityManage/shipCheckHistoryList", name: "shipCheckHistoryList", meta: { title: "历史船舶安检", }, component: () => import("../views/shipSecurityManage/shipCheckHistoryList.vue"), }, { path: "/fireSafetyManage/fireSafetyTemplateList", name: "fireSafetyTemplateList", meta: { title: "消防模板列表", }, component: () => import("../views/fireSafetyManage/fireSafetyTemplateList.vue"), }, { path: "/fireSafetyManage/fireSafetyTemplateDetail", name: "fireSafetyTemplateDetail", meta: { title: "消防安检模板详情", }, component: () => import("../views/fireSafetyManage/fireSafetyTemplateDetail.vue"), }, { path: "/fireSafetyManage/checkFireSafetyExamineList", name: "checkFireSafetyExamineList", meta: { title: "消防安检审核列表", }, component: () => import("../views/fireSafetyManage/checkFireSafetyExamineList.vue"), }, { path: "/fireSafetyManage/checkFireSafetyExamine", name: "checkFireSafetyExamine", meta: { title: "消防安检审核", }, component: () => import("../views/fireSafetyManage/checkFireSafetyExamine.vue"), }, { path: "/fireSafetyManage/fireSafetyHistoryCheckList", name: "fireSafetyHistoryCheckList", meta: { title: "历史消防安检列表", }, component: () => import("../views/fireSafetyManage/fireSafetyHistoryCheckList.vue"), }, { path: "/workStation/newEnergyPolicyManage", name: "newEnergyPolicyManage", meta: { title: "新能源政策管理", }, component: () => import("../views/workStation/newEnergyPolicyManage.vue"), }, { path: "/workStation/annualInspectionNoticeManage", name: "annualInspectionNoticeManage", meta: { title: "年检通知管理", }, component: () => import("../views/workStation/annualInspectionNoticeManage.vue"), }, { path: "/workStation/crewSchoolTrainingNoticeManage", name: "crewSchoolTrainingNoticeManage", meta: { title: "学校培训公告管理", }, component: () => import("../views/workStation/crewSchoolTrainingNoticeManage.vue"), }, { path: "/workStation/shipyardManage", name: "shipyardManage", meta: { title: "船厂管理", }, component: () => import("../views/workStation/shipyardManage.vue"), }, { path: "/workStation/terminalServiceStaffManage", name: "terminalServiceStaffManage", meta: { title: "码头服务人员管理", }, component: () => import("../views/workStation/terminalServiceStaffManage.vue"), }, { path: "/workStation/crewSchoolInfoManage", name: "crewSchoolInfoManage", meta: { title: "学校信息管理", }, component: () => import("../views/workStation/crewSchoolInfoManage.vue"), }, ], }); export default router;