/**
 * 路由配置
 */
import { createRouter, createWebHashHistory } from "vue-router";
const routes = [
  {
    path: "/",
    name: "login",
    component: () => import("../pages/login/index"),
  },
  {
    path: "/Home",
    name: "Home",
    component: () => import("../pages/newHome/index"),
  },
  {
    path: "/xlmjHome",
    name: "xlmjHome",
    component: () => import("../pages/xlmjHome/index"),
  },
  {
    path: "/checkPointList",
    name: "checkPointList",
    component: () => import("../pages/checkpointList/index"),
  },
  {
    path: "/error",
    name: "error",
    component: () => import("../pages/error/index"),
  },
  {
    path: "/rw",
    name: "rw",
    component: () => import("../pages/rw/index"),
  },
  {
    path: "/rwlist",
    name: "rwlist",
    component: () => import("../pages/rw/rwlist"),
  },
  {
    path: "/yyzx",
    name: "yyzx",
    component: () => import("../pages/yyzx/index"),
  },
  {
    path: "/lmjHome/zlJcz",
    name: "mjHome/zlJcz",
    component: () => import("../pages/checkpointList/components/zlJczList"),
  },
  {
    path: "/lmjHome/zlJczDetail",
    name: "mjHome/zlJczDetail",
    component: () => import("../pages/checkpointList/components/jczDetail"),
  },
  {
    path: "/my",
    name: "my",
    component: () => import("../pages/my/index"),
  },
  {
    path: "/collectPage",
    name: "collectPage",
    component: () => import("../pages/collectPage/index"),
  },
  {
    path: "/collectAndAdd",
    name: "collectAndAdd",
    component: () => import("../pages/collectPage/collectAndAdd"),
  },
  {
    path: "/clockInPage",
    name: "clockInPage",
    component: () => import("../pages/clockInPage/index"),
  },
  {
    path: "/patrolList",
    name: "patrolList",
    component: () => import("../pages/patrolList/index"),
  },
	{
    path: "/taskList",
    name: "taskList",
    component: () => import("../pages/taskList/index"),
  },
  {
    path: "/taskHistoryDetail",
    name: "taskHistoryDetail",
    component: () => import("../pages/taskList/historyDetail.vue"),
  },
  {
    path: "/dqLocation",
    name: "dqLocation",
    component: () => import("../pages/dqLocation/index"),
  },
  {
    path: "/jqfx",
    name: "jqfx",
    component: () => import("../pages/views/jqfx/jqAnsisy"),
  },
  {
    path: "/userInfo",
    name: "userInfo",
    component: () => import("../pages/my/views/userInfo"),
  },
  {
    path: "/gzrz",
    name: "gzrz",
    component: () => import("../pages/my/views/gzrz"),
  },
  {
    path: "/wdgj",
    name: "wdgj",
    component: () => import("../pages/my/views/wdgj"),
  },
  {
    path: "/scyy",
    name: "scyy",
    component: () => import("../pages/my/views/scyy"),
  },
  {
    path: "/txl",
    name: "txl",
    component: () => import("../pages/my/views/txl"),
  },
  {
    path: "/yjsj",
    name: "yjsj",
    component: () => import("../pages/yyzx/views/yjsj"),
  },
  {
    path: "/clock",
    name: "clock",
    component: () => import("../pages/yyzx/clock/index"),
  },
  {
    path: "/clockList",
    name: "clockList",
    component: () => import("../pages/yyzx/clock/clockList.vue"),
  },
  {
    path: "/cjbsPage",
    name: "cjbsPage",
    component: () => import("../pages/yyzx/cjbsPage/index"),
  },
  {
    path: "/cjbsList",
    name: "cjbsList",
    component: () => import("../pages/yyzx/cjbsPage/cjbsList.vue"),
  },
  {
    path: "/yyzx/views/clpc",
    name: "clpc",
    component: () => import("../pages/yyzx/views/clpc"),
  },
  {
    path: "/xttj",
    name: "xttj",
    component: () => import("../pages/yyzx/views/xttj"),
  },
  {
    path: "/tjyj",
    name: "tjyj",
    component: () => import("../pages/yyzx/views/tjyj"),
  },
  {
    path: "/report",
    name: "report",
    component: () => import("../pages/views/report"),
  },
  {
    path: "/TrackInventory",
    name: "TrackInventory",
    component: () => import("../pages/views/TrackInventory"),
  },
  {
    path: "/canVehicle",
    name: "canVehicle",
    component: () => import("../pages/views/CanVehicle/index"),
  },
  {
    path: "/quarantinePersonnel",
    name: "quarantinePersonnel",
    component: () => import("../pages/views/QuarantinePersonnel/index"),
  },
  {
    path: "/drivinglicence",
    name: "drivinglicence",
    component: () =>
      import("../pages/views/QuarantinePersonnel/drivinglicence"),
  },
  {
    path: "/motorVehicle",
    name: "motorVehicle",
    component: () => import("../pages/views/QuarantinePersonnel/motorVehicle"),
  },
  {
    path: "/featureInfo",
    name: "featureInfo",
    component: () => import("../pages/views/QuarantinePersonnel/featureInfo"),
  },
  {
    path: "/pestilenceRelated",
    name: "pestilenceRelated",
    component: () =>
      import("../pages/views/QuarantinePersonnel/pestilenceRelated"),
  },
  {
    path: "/feedBack",
    name: "feedBack",
    component: () => import("../pages/yyzx/views/feedBack"),
  },
  {
    path: "/qwCenter",
    name: "qwCenter",
    component: () => import("../pages/yyzx/views/qwCenter.vue"),
  },

  {
    path: "/calendar",
    name: "calendar",
    component: () => import("../pages/yyzx/views/calendar"),
  },
  {
    path: "/zbbbCalendar",
    name: "zbbbCalendar",
    component: () => import("../pages/yyzx/zbbb/zbbbCalendar"),
  },
  {
    path: "/deptzbbbCalendar",
    name: "deptzbbbCalendar",
    component: () => import("../pages/yyzx/deptzbbbCalendar/index"),
  },
  {
    path: "/deptxfbbCalendar",
    name: "deptxfbbCalendar",
    component: () => import("../pages/yyzx/deptxfbbCalendar/index"),
  },
  {
    path: "/deptryxjCalendar",
    name: "deptryxjCalendar",
    component: () => import("../pages/yyzx/ryxj/index"),
  },
  {
    path: "/deptryxjCalendar/addEdit",
    name: "addEdit",
    component: () => import("../pages/yyzx/ryxj/components/addEidt"),
  },
  {
    path: "/xfbbInfo",
    name: "xfbbInfo",
    component: () => import("../pages/yyzx/views/xfbbInfo"),
  },
  {
    path: "/hisQwCenter",
    name: "hisQwCenter",
    component: () => import("../pages/yyzx/views/hisQwCenter.vue"),
  },
  {
    path: "/yyzx/rwzx",
    name: "yyzx/rwzx",
    component: () => import("../pages/yyzx/rwzx/index"),
  },

  {
    path: "/yyzx/views/addZbbb",
    name: "addZbbb",
    component: () => import("../pages/yyzx/zbbb/addZbbb"),
  },
  {
    path: "/yyzx/views/addZbbbInfo",
    name: "addZbbbInfo",
    component: () => import("../pages/yyzx/views/zbbbInfo"),
  },
  {
    path: "/rw/views/rwDetail",
    name: "rwDetail",
    component: () => import("../pages/rw/views/rwDetail"),
  },
  {
    path: "/yyzx/xfbb/addXfbb",
    name: "addXfbb",
    component: () => import("../pages/yyzx/xfbb/addXfbb"),
  },
  {
    path: "/yyzx/xfbb/addtsXfbb",
    name: "addtsXfbb",
    component: () => import("../pages/yyzx/xfbb/addtsXfbb"),
  },
  {
    path: "/yyzx/xfbb/tsXfbbList",
    name: "tsXfbbList",
    component: () => import("../pages/yyzx/xfbb/tsXfbbList"),
  },
  {
    path: "/yyzx/zlzx/zlzxIndex",
    name: "yyzx/zlzx/zlzxIndex",
    component: () => import("../pages/yyzx/zlzx/zlzxIndex"),
  },
  {
    path: "/addZlInfo",
    name: "addZlInfo",
    component: () => import("../pages/yyzx/zlzx/addzl"),
  },
  {
    path: "/yyzx/zlzx/zlDetail",
    name: "yyzx/zlzx/zlDetail",
    component: () => import("../pages/yyzx/zlzx/zlDetail"),
  },
  {
    path: "/yyzx/yjxx/index",
    name: "yyzx/yjxx/index",
    component: () => import("../pages/yyzx/yjxx/index"),
  },
  {
    path: "/yyzx/yjxx/yjMapPoint",
    name: "yyzx/yjxx/yjMapPoint",
    component: () => import("../pages/yyzx/yjxx/yjMapPoint"),
  },

  {
    path: "/yyzx/yjxx/yjDetail",
    name: "yyzx/yjxx/yjDetail",
    component: () => import("../pages/yyzx/yjxx/yjDetail"),
  },
  {
    path: "/yyzx/jqxx/index",
    name: "yyzx/jqxx/index",
    component: () => import("../pages/yyzx/jqxx/index"),
  },
  {
    path: "/yyzx/jqxx/gljqList",
    name: "gljqList",
    component: () => import("../pages/yyzx/jqxx/gljqList"),
  },
  {
    path: "/yyzx/jqxx/jqDetail",
    name: "yyzx/jqxx/jqDetail",
    component: () => import("../pages/yyzx/jqxx/jqDetail"),
  },

  {
    path: "/yyzx/yjxx/yjTotal",
    name: "yyzx/yjxx/yjTotal",
    component: () => import("../pages/yyzx/yjxx/yjTotal"),
  },
  {
    path: "/yyzx/yjtjInfo/gzyInfo",
    name: "/yyzx/yjtjInfo/gzyInfo",
    component: () => import("../pages/yyzx/yjtjInfo/gzyInfo"),
  },
  {
    path: "/yyzx/yjtjInfo/ryyjinfo",
    name: "/yyzx/yjtjInfo/ryyjinfo",
    component: () => import("../pages/yyzx/yjtjInfo/ryyjinfo"),
  },
  {
    path: "/yyzx/yjtjInfo/pcsyjinfo",
    name: "/yyzx/yjtjInfo/pcsyjinfo",
    component: () => import("../pages/yyzx/yjtjInfo/pcsyjinfo"),
  },
  {
    path: "/yyzx/zlzx/zlTotal",
    name: "yyzx/zlzx/zlTotal",
    component: () => import("../pages/yyzx/zlzx/zlTotal"),
  },
  {
    path: "/yyzx/views/pcry",
    name: "yyzx/views/pcry",
    component: () => import("../pages/yyzx/views/pcry"),
  },

  {
    path: "/scyy/xfq",
    name: "scyy/xfq",
    component: () => import("../pages/scyy/xfq"),
  },
  {
    path: "/scyy/jwz",
    name: "scyy/jwz",
    component: () => import("../pages/scyy/jwz"),
  },
  {
    path: "/scyy/kfd",
    name: "scyy/kfd",
    component: () => import("../pages/scyy/kfd"),
  },
  {
    path: "/scyy/xfll",
    name: "scyy/xfll",
    component: () => import("../pages/scyy/xfll"),
  },
  {
    path: "/scyy/cl",
    name: "scyy/cl",
    component: () => import("../pages/scyy/cl"),
  },
  {
    path: "/scyy/zb",
    name: "scyy/zb",
    component: () => import("../pages/scyy/zb"),
  },
  {
    path: "/rw/views/syrkRwDetail",
    name: "rw/views/syrkRwDetail",
    component: () => import("../pages/rw/views/syrkRwDetail"),
  },
  {
    path: "/rw/views/txgj",
    name: "rw/views/txgj",
    component: () => import("../pages/rw/views/txgjList"),
  },

  {
    path: "/filing",
    name: "filing",
    component: () => import("../pages/xlmjHome/components/filing"),
  },
  {
    path: "/yyzx/jqxx/mryq",
    name: "yyzx/jqxx/mryq",
    component: () => import("../pages/yyzx/jqxx/mryq"),
  },
  {
    path: "/newTwoHome",
    name: "newTwoHome",
    component: () => import("../pages/newTwoHome/index"),
  },
  {
    path: "/newTwoHome/ldjsc",
    name: "newTwoHome/ldjsc",
    component: () => import("../pages/newTwoHome/ldjsc"),
  },
  {
    path: "/newTwoHome/xd",
    name: "newTwoHome/xd",
    component: () => import("../pages/newTwoHome/xd"),
  },
  {
    path: "/newTwoHome/zjq",
    name: "newTwoHome/zjq",
    component: () => import("../pages/newTwoHome/zjq"),
  },
  {
    path: "/newTwoHome/zbbbList",
    name: "newTwoHome/zbbbList",
    component: () => import("../pages/newTwoHome/zbbbList"),
  },
  {
    path: "/newTwoHome/yclList",
    name: "newTwoHome/yclList",
    component: () => import("../pages/newTwoHome/yclList"),
  },
  {
    path: "/newTwoHome/addZl",
    name: "newTwoHome/addZl",
    component: () => import("../pages/newTwoHome/addZl"),
  },
  {
    path: "/newTwoHome/myZl",
    name: "newTwoHome/myZl",
    component: () => import("../pages/newTwoHome/myZl"),
  },
  {
    path: "/my/views/wdgjMapPoint",
    name: "my/views/wdgjMapPoint",
    component: () => import("../pages/my/views/wdgjMapPoint"),
  },
  {
    path: "/newTwoHome/jq/xzjqlist",
    name: "newTwoHome/jq/xzjqlist",
    component: () => import("../pages/newTwoHome/jq/xzjqlist.vue"),
  },
  {
    path: "/newTwoHome/jq/xzjqDetail",
    name: "newTwoHome/jq/xzjqDetail",
    component: () => import("../pages/newTwoHome/jq/xzjqDetail.vue"),
  },
  {
    path: "/peopleList",
    name: "peopleList",
    component: () => import("../pages/spsHome/components/peopleList.vue"),
  },
  {
    path: "/yyzx/dhcr",
    name: "yyzx/dhcr",
    component: () => import("../pages/yyzx/dhcr/index"),
  },
  {
    path: "/Declaration",
    name: "Declaration",
    component: () => import("../pages/views/Declaration/index"),
  },
  {
    path: "/Declaration/addEdit",
    name: "Declaration/addEdit",
    component: () => import("../pages/views/Declaration/addEdit.vue"),
  },
  {
    path: "/Declaration/addEditRw",
    name: "Declaration/addEditRw",
    component: () => import("../pages/views/Declaration/addEditRw.vue"),
  },
  {
    path: "/Declaration/addEditCyry",
    name: "Declaration/addEditCyry",
    component: () => import("../pages/views/Declaration/addEditCyry.vue"),
  },
  {
    path: "/Declaration/addEditDw",
    name: "Declaration/addEditDw",
    component: () => import("../pages/views/Declaration/addEditDw.vue"),
  },
  // 新增：Greeting message 转换页面
  {
    path: "/checkInPage",
    name: "checkInPage",
    component: () => import("../pages/checkInPage/index.vue"),
  },
  {
    path: "/traffic-alerts",
    name: "traffic-alerts",
    component: () => import("../pages/trafficAlerts/index.vue"),
  },
  {
    path: "/traffic-alert-detail",
    name: "traffic-alert-detail",
    component: () => import("../pages/trafficAlerts/detail.vue"),
  },
  {
    path: "/violation-alerts",
    name: "violation-alerts",
    component: () => import("../pages/violationAlerts/index.vue"),
  },
  {
    path: "/violation-detail",
    name: "violation-detail",
    component: () => import("../pages/violationAlerts/detail.vue"),
  },
  {
    path: "/alert-handle",
    name: "alert-handle",
    component: () => import("../pages/alertHandle/index.vue"),
  },
  {
    path: "/map",
    name: "map",
    component: () => import("../pages/map/index.vue"),
  },
  {
    path: "/video-monitor",
    name: "video-monitor",
    component: () => import("../pages/videoMonitor/index.vue"),
  },
  {
    path: "/videoMonitorMap",
    name: "videoMonitorMap",
    component: () => import("../pages/videoMonitorMap/index.vue"),
  },
  {
    path: "/warningList",
    name: "warningList",
    component: () => import("../pages/warningList/index.vue"),
  },
  // 新增：Greeting message 完整转换页面
  {
    path: "/keyDetection",
    name: "keyDetection",
    component: () => import("../pages/keyDetection/index.vue"),
  },
  {
    path: "/keyDetection/detail",
    name: "keyDetection-detail",
    component: () => import("../pages/keyDetection/detail.vue"),
  },
  {
    path: "/keyVehicle",
    name: "keyVehicle",
    component: () => import("../pages/keyVehicle/index.vue"),
  },
  {
    path: "/keyVehicle/detail",
    name: "keyVehicle-detail",
    component: () => import("../pages/keyVehicle/detail.vue"),
  },
  {
    path: "/emergencyTasks",
    name: "emergencyTasks",
    component: () => import("../pages/emergencyTasks/index.vue"),
  },
  {
    path: "/emergencyTask/detail",
    name: "emergencyTask-detail",
    component: () => import("../pages/emergencyTasks/detail.vue"),
  },
  {
    path: "/dataReport",
    name: "dataReport",
    component: () => import("../pages/dataReport/index.vue"),
  },
  {
    path: "/ssp-report",
    name: "ssp-report",
    component: () => import("../pages/sspReport/index.vue"),
  },
];
const router = createRouter({
  history: createWebHashHistory(),
  routes,
  scrollBehavior(to, from, savedPosition) {
    if (savedPosition) {
      return savedPosition;
    } else {
      return {
        left: 0,
        top: 0,
      };
    }
  },
});

export default router;
