import { createRouter, createWebHashHistory } from "vue-router"
import layout from "@/layout/index" //layout直接引用 其他使用路由懒加载
import { useStore } from "vuex"
import store from "@/store"
const stores = useStore()
// import Home from '../views/Home.vue'
/**
 * 关于路由配置描述
 * 1.meta && meta.title && meta.icon  则在菜单栏显示
 * 2.如果存在children , 则以el-sub-menu子菜单显示
 * 否则不在menu菜单显示
 * 如果只展示单级别菜单  需要像developer这样配置
 */
/**
 * 私有路由表
 */

export const privateRoutes = [
  {
    path: "/dataAnalysis",
    name: "dataAnalysis",
    component: () => import("@/views/dataAnalysis/index")
  },
  {
    path: "/aqzetx",
    name: "/aqzetx",
    component: layout,
    meta: {
      title: "安全责任体系",
      icon: "article"
    },
    children: [
      {
        path: "/aqzetx/jgryhzz",
        name: "/aqzetx/jgryhzz",
        redirect: "/dutyBook/index",
        meta: {
          title: "机构人员和职责",
          icon: "article"
        },
        children: [
          {
            path: "/dutyBook/index",
            name: "/dutyBook/index",
            component: () => import("@/views/dutyBook/index"),
            meta: {
              title: "责任书统计",
              icon: "article"
            }
          }
        ]
      },
      {
        path: "/aqzetx/goalWay",
        name: "/aqzetx/goalWay",
        redirect: "/dutyBook/goalWay/zbk",
        meta: {
          title: "目标方针",
          icon: "article"
        },
        children: [
          {
            path: "/dutyBook/goalWay/zbk",
            name: "/dutyBook/goalWay/zbk",
            component: () => import("@/views/dutyBook/goalWay/zbk.vue"),
            meta: {
              title: "目标指标库",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/goalWay/aqfz",
            name: "/dutyBook/goalWay/aqfz",
            component: () => import("@/views/dutyBook/goalWay/aqfz.vue"),
            meta: {
              title: "安全方针",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/goalWay/yearZbk",
            name: "/dutyBook/goalWay/yearZbk",
            component: () => import("@/views/dutyBook/goalWay/yearZbk.vue"),
            meta: {
              title: "年度目标指标库",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/goalWay/yearZbkNew",
            name: "dutyBook/goalWay/yearZbkNew",
            component: () =>
              import("@/views/dutyBook/goalWay/yearZbk_new.vue"),
            meta: {
              title: "年度目标指标(新)",
              icon: "icon_ywyy"
            }
          },
          {
            path: "/dutyBook/goalWay/workPlan",
            name: "/dutyBook/goalWay/workPlan",
            component: () => import("@/views/dutyBook/goalWay/workPlan.vue"),
            meta: {
              title: "工作计划",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/goalWay/workZj",
            name: "/dutyBook/goalWay/workZj",
            component: () => import("@/views/dutyBook/goalWay/workZj.vue"),
            meta: {
              title: "工作总结",
              icon: "article"
            }
          }
        ]
      },
      {
        path: "/aqzetx/jgryandzz",
        name: "/aqzetx/jgryandzz",
        redirect: "/dutyBook/jgryandzz/index",
        meta: {
          title: "机构人员和职责",
          icon: "article"
        },
        children: [
          {
            path: "/dutyBook/jgryandzz/index",
            name: "/dutyBook/jgryandzz/index",
            component: () => import("@/views/dutyBook/jgryandzz/index"),
            meta: {
              title: "安全生产委员会",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/jgryandzz/gljgandrypz",
            name: "/dutyBook/jgryandzz/gljgandrypz",
            component: () =>
              import("@/views/dutyBook/jgryandzz/gljgandrypz.vue"),
            meta: {
              title: "安全管理机构和人员配置",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/jgryandzz/zrs",
            name: "/dutyBook/jgryandzz/zrs",
            component: () => import("@/views/dutyBook/jgryandzz/zrs.vue"),
            meta: {
              title: "责任书",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/jgryandzz/cns",
            name: "/dutyBook/jgryandzz/cns",
            component: () => import("@/views/dutyBook/jgryandzz/cns.vue"),
            meta: {
              title: "承诺书",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/jgryandzz/zrlist",
            name: "/dutyBook/jgryandzz/zrlist",
            component: () => import("@/views/dutyBook/jgryandzz/zrlist.vue"),
            meta: {
              title: "安全责任清单",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/jgryandzz/workReport",
            name: "/dutyBook/jgryandzz/workReport",
            component: () =>
              import("@/views/dutyBook/jgryandzz/workReport.vue"),
            meta: {
              title: "履职报告",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/jgryandzz/ghjdgl",
            name: "/dutyBook/jgryandzz/ghjdgl",
            component: () => import("@/views/dutyBook/jgryandzz/ghjdgl.vue"),
            meta: {
              title: "工会监督管理",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/jgryandzz/lwandbz",
            name: "dutyBook/jgryandzz/lwandbz",
            component: () => import("@/views/dutyBook/jgryandzz/lwandbz.vue"),
            meta: {
              title: "安全论文、表彰",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/jgryandzz/zzllxx",
            name: "dutyBook/jgryandzz/zzllxx",
            component: () => import("@/views/dutyBook/jgryandzz/zzllxx.vue"),
            meta: {
              title: "政治理论学习",
              icon: "article"
            }
          }
        ]
      },
      {
        path: "/aqzetx/qycy",
        name: "/aqzetx/qycy",
        redirect: "/dutyBook/qycy/index",
        meta: {
          title: "全员参与",
          icon: "article"
        },
        children: [
          {
            path: "/dutyBook/qycy/index",
            name: "/dutyBook/qycy/index",
            component: () => import("@/views/dutyBook/qycy/index"),
            meta: {
              title: "全员参与",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/qycy/xtsyqk",
            name: "/dutyBook/qycy/xtsyqk",
            component: () => import("@/views/dutyBook/qycy/xtsyqk"),
            meta: {
              title: "系统使用情况",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/qycy/safetySuggest",
            name: "/dutyBook/qycy/safetySuggest",
            component: () => import("@/views/dutyBook/qycy/safetySuggest"),
            meta: {
              title: "安全建议",
              icon: "article"
            }
          }
        ]
      },
      {
        path: "/aqzetx/aqscfygl",
        name: "/aqzetx/aqscfygl",
        redirect: "/dutyBook/qycy/index",
        meta: {
          title: "安全生产费用管理",
          icon: "article"
        },
        children: [
          {
            path: "/aqzetx/aqscfygl/index",
            name: "/aqzetx/aqscfygl/index",
            component: () => import("@/views/dutyBook/aqscfygl/index"),
            meta: {
              title: "年初预算审核",
              icon: "article"
            }
          },
          {
            path: "/aqzetx/aqscfygl/zqtzys",
            name: "/aqzetx/aqscfygl/zqtzys",
            component: () => import("@/views/dutyBook/aqscfygl/zqtzys"),
            meta: {
              title: "中期调整预算",
              icon: "article"
            }
          },
          {
            path: "/aqzetx/aqscfygl/ndtzys",
            name: "/aqzetx/aqscfygl/ndtzys",
            component: () => import("@/views/dutyBook/aqscfygl/ndtzys"),
            meta: {
              title: "年度调整预算",
              icon: "article"
            }
          },
          {
            path: "/aqzetx/aqscfygl/aqfysy",
            name: "/aqzetx/aqscfygl/aqfysy",
            component: () => import("@/views/dutyBook/aqscfygl/aqfysy"),
            meta: {
              title: "安全费用使用",
              icon: "article"
            }
          },
          {
            path: "/aqzetx/aqscfygl/aqfytj",
            name: "/aqzetx/aqscfygl/aqfytj",
            component: () => import("@/views/dutyBook/aqscfygl/aqfytj"),
            meta: {
              title: "安全费用统计",
              icon: "article"
            }
          },
          {
            path: "/aqzetx/aqscfygl/syqktj",
            name: "/aqzetx/aqscfygl/syqktj",
            component: () => import("@/views/dutyBook/aqscfygl/syqktj"),
            meta: {
              title: "安全费用使用情况分析",
              icon: "article"
            }
          }
        ]
      },
      {
        path: "/aqzetx/whjs",
        name: "/aqzetx/whjs",
        redirect: "/dutyBook/whjs/index",
        meta: {
          title: "安全文化建设",
          icon: "article"
        },
        children: [
          {
            path: "/dutyBook/whjs/index",
            name: "/dutyBook/whjs/index",
            component: () => import("@/views/dutyBook/whjs/index"),
            meta: {
              title: "文化手册",
              icon: "article"
            }
          },
          {
            path: "/dutyBook/whjs/xcyhd",
            name: "/dutyBook/whjs/xcyhd",
            component: () => import("@/views/dutyBook/whjs/xcyhd"),
            meta: {
              title: "宣传与活动",
              icon: "article"
            }
          }
        ]
      }
    ]
  },
  {
    path: "/law",
    name: "/law",
    component: layout,
    meta: {
      title: "法律法规制度",
      icon: "article"
    },
    children: [
      {
        path: "/law/lawRules",
        name: "/law/lawRules",
        redirect: "/law/lawRules/index",
        meta: {
          title: "法律法规",
          icon: "article"
        },
        children: [
          {
            path: "/law/lawRules/index",
            name: "/law/lawRules/index",
            meta: {
              title: "法律法规统计",
              icon: "article"
            },
            component: () => import("@/views/law/lawRules/index")
          },
          {
            path: "/law/lawRules/lawStore",
            name: "/law/lawRules/lawStore",
            meta: {
              title: "法律法规标准库",
              icon: "article"
            },
            component: () => import("@/views/law/lawRules/lawStore")
          },
          {
            path: "/law/lawRules/knowGet",
            name: "/law/lawRules/knowGet",
            meta: {
              title: "识别获取",
              icon: "article"
            },
            component: () => import("@/views/law/lawRules/knowGet")
          },
          {
            path: "/law/lawRules/list",
            name: "/law/lawRules/list",
            meta: {
              title: "适用法律法规清单", // 原"法律法规获取识别清单"
              icon: "article"
            },
            component: () => import("@/views/law/lawRules/list")
          },
          {
            path: "/law/lawRules/regularpj",
            name: "/law/lawRules/regularpj",
            meta: {
              title: "合规性评价",
              icon: "article"
            },
            component: () => import("@/views/law/lawRules/regularpj")
          }
        ]
      },
      {
        path: "/law/regulations",
        name: "/law/regulations",
        redirect: "/law/regulations/index",
        meta: {
          title: "规章制度",
          icon: "article"
        },
        children: [
          {
            path: "/law/regulations/index",
            name: "/law/regulations/index",
            meta: {
              title: "规章制度库",
              icon: "article"
            },
            component: () => import("@/views/law/regulations/regulStore")
          },
          {
            path: "/law/regulations/knowGet",
            name: "/law/regulations/knowGet",
            meta: {
              title: "识别获取",
              icon: "article"
            },
            component: () => import("@/views/law/regulations/knowGet")
          },
          {
            path: "/law/regulations/list",
            name: "/law/regulations/list",
            meta: {
              title: "识别获取清单",
              icon: "article"
            },
            component: () => import("@/views/law/regulations/list")
          }
        ]
      },
      {
        path: "/law/operation",
        name: "/law/operation",
        redirect: "/law/operation/index",
        meta: {
          title: "操作规程",
          icon: "article"
        },
        children: [
          {
            path: "/law/operation/index",
            name: "/law/operation/index",
            meta: {
              title: "操作规程库",
              icon: "article"
            },
            component: () => import("@/views/law/operation/opeStore")
          },
          {
            path: "/law/operation/knowGet",
            name: "/law/operation/knowGet",
            meta: {
              title: "识别获取",
              icon: "article"
            },
            component: () => import("@/views/law/operation/knowGet")
          },
          {
            path: "/law/operation/list",
            name: "/law/operation/list",
            meta: {
              title: "识别获取清单",
              icon: "article"
            },
            component: () => import("@/views/law/operation/list")
          }
        ]
      }
    ]
  },

  {
    path: "/safety",
    name: "/safety",
    component: layout,
    meta: {
      title: "安全教育能力培训",
      icon: "article"
    },
    children: [
      {
        path: "/safety/pxjygl",
        name: "/safety/pxjygl",
        redirect: "/safety/pxjygl/pxjh",
        meta: {
          title: "培训教育管理",
          icon: "article"
        },
        children: [
          {
            path: "/safety/pxjygl/pxjh",
            name: "/safety/pxjygl/pxjh",
            meta: {
              title: "培训计划",
              icon: "article"
            },
            component: () => import("@/views/safety/pxjygl/pxjh")
          },
          {
            path: "/safety/pxjygl/zdryaqpx",
            name: "/safety/pxjygl/zdryaqpx",
            meta: {
              title: "重点人员安全培训档案",
              icon: "article"
            },
            component: () =>
              import("@/views/safety/pxjygl/zdryaqpx/index.vue")
          },
          {
            path: "/safety/pxjygl/pxss",
            name: "/safety/pxjygl/pxss",
            meta: {
              title: "培训实施",
              icon: "article"
            },
            component: () => import("@/views/safety/pxjygl/pxss")
          },
          {
            path: "/safety/pxjygl/pxtotal",
            name: "/safety/pxjygl/pxtotal",
            meta: {
              title: "培训统计",
              icon: "article"
            },
            component: () => import("@/views/safety/pxjygl/pxtotal")
          },
          {
            path: "/safety/pxjygl/zsgl",
            name: "/safety/pxjygl/zsgl",
            meta: {
              title: "证书管理",
              icon: "article"
            },
            component: () => import("@/views/safety/pxjygl/zsgl")
          },
          {
            path: "/safety/pxjygl/grpxda",
            name: "/safety/pxjygl/grpxda",
            meta: {
              title: "个人培训档案",
              icon: "article"
            },
            component: () => import("@/views/safety/pxjygl/grpxda")
          },
          {
            path: "/safety/pxjygl/dwpxda",
            name: "/safety/pxjygl/dwpxda",
            meta: {
              title: "单位培训档案",
              icon: "article"
            },
            component: () => import("@/views/safety/pxjygl/dwpxda")
          },
          {
            path: "/safety/pxjygl/pxrysb",
            name: "/safety/pxjygl/pxrysb",
            meta: {
              title: "培训人员上报",
              icon: "article"
            },
            component: () => import("@/views/safety/pxjygl/pxrysb")
          }
        ]
      },
      {
        path: "/safety/pxzyk",
        name: "/safety/pxzyk",
        redirect: "/safety/pxzyk/zsgl",
        meta: {
          title: "培训资源库",
          icon: "article"
        },
        children: [
          {
            path: "/safety/pxzyk/ktk",
            name: "/safety/pxzyk/ktk",
            meta: {
              title: "考题库",
              icon: "article"
            },
            component: () => import("@/views/safety/pxzyk/ktk")
          },

          {
            path: "/safety/pxzyk/pjwt",
            name: "/safety/pxzyk/pjwt",
            meta: {
              title: "评价问题",
              icon: "article"
            },
            component: () => import("@/views/safety/pxzyk/pjwt")
          },
          {
            path: "/safety/pxzyk/zxaqxxk",
            name: "/safety/pxzyk/zxaqxxk",
            meta: {
              title: "在线安全学习库",
              icon: "article"
            },
            component: () => import("@/views/safety/pxzyk/zxaqxxk")
          },
          {
            path: "/safety/pxzyk/ktjmbgl",
            name: "/safety/pxzyk/ktjmbgl",
            meta: {
              title: "考题卷模板管理",
              icon: "article"
            },
            component: () => import("@/views/safety/pxzyk/ktjmbgl")
          },
          {
            path: "/safety/pxzyk/wspkjk",
            name: "/safety/pxzyk/wspkjk",
            meta: {
              title: "微视频课件库",
              icon: "article"
            },
            component: () => import("@/views/safety/pxzyk/wspkjk")
          }
        ]
      },
      {
        path: "/safety/zxks",
        name: "/safety/zxks",
        redirect: "/safety/pxzyk/zxks",
        meta: {
          title: "考试中心",
          icon: "article"
        },
        children: [
          {
            path: "/safety/pxzyk/zxks",
            name: "/safety/pxzyk/zxks",
            meta: {
              title: "在线考试",
              icon: "article"
            },
            component: () => import("@/views/safety/pxzyk/zxks")
          },
          {
            path: "/safety/pxzyk/ktgl",
            name: "/safety/pxzyk/ktgl",
            meta: {
              title: "考题管理",
              icon: "article"
            },
            component: () => import("@/views/safety/pxzyk/ktgl")
          },
          {
            path: "/safety/pxzyk/ksqk",
            name: "/safety/pxzyk/ksqk",
            meta: {
              title: "考试情况",
              icon: "article"
            },
            component: () => import("@/views/safety/pxzyk/ksqk")
          }
        ]
      }
    ]
  },
  {
    path: "/yxkzgl",
    name: "/yxkzgl",
    component: layout,
    meta: {
      title: "运行控制管理",
      icon: "article"
    },
    children: [
      {
        path: "/yxkzgl/jsxm",
        name: "/yxkzgl/jsxm",
        redirect: "/yxkzgl/jsxm/stsgl",
        meta: {
          title: "建设项目三同时管理",
          icon: "article"
        },
        children: [
          {
            path: "/yxkzgl/jsxm/stsgl",
            name: "/yxkzgl/jsxm/stsgl",
            meta: {
              title: "三同时管理",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/jsxm/stsgl")
          },
          {
            path: "/yxkzgl/jsxm/bggl",
            name: "/yxkzgl/jsxm/bggl",
            meta: {
              title: "变更管理",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/jsxm/bggl")
          }
        ]
      },
      {
        path: "/yxkzgl/sbss",
        name: "/yxkzgl/sbss",
        redirect: "/yxkzgl/sbss/jxsb",
        meta: {
          title: "设备设施及其维检修管理",
          icon: "article"
        },
        children: [
          {
            path: "/yxkzgl/sbss/jxsb",
            name: "/yxkzgl/sbss/jxsb",
            meta: {
              title: "机械设备",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/sbss/jxsb")
          },
          {
            path: "/yxkzgl/sbss/dqsb",
            name: "/yxkzgl/sbss/dqsb",
            meta: {
              title: "电气设备",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/sbss/dqsb")
          },
          {
            path: "/yxkzgl/sbss/tzsb",
            name: "/yxkzgl/sbss/tzsb",
            redirect: "/yxkzgl/sbss/dt",
            meta: {
              title: "特种设备",
              icon: "article"
            },
            children: [
              {
                path: "/yxkzgl/sbss/dt",
                name: "/yxkzgl/sbss/dt",
                meta: {
                  title: "电梯",
                  icon: "article"
                },
                component: () => import("@/views/yxkzgl/sbss/dt")
              },
              {
                path: "/yxkzgl/sbss/gl",
                name: "/yxkzgl/sbss/gl",
                meta: {
                  title: "锅炉",
                  icon: "article"
                },
                component: () => import("@/views/yxkzgl/sbss/gl")
              },
              {
                path: "/yxkzgl/sbss/gyqp",
                name: "/yxkzgl/sbss/gyqp",
                meta: {
                  title: "工业气瓶",
                  icon: "article"
                },
                component: () => import("@/views/yxkzgl/sbss/gyqp")
              },
              {
                path: "/yxkzgl/sbss/ylrq",
                name: "/yxkzgl/sbss/ylrq",
                meta: {
                  title: "压力容器",
                  icon: "article"
                },
                component: () => import("@/views/yxkzgl/sbss/ylrq")
              },
              {
                path: "/yxkzgl/sbss/ylgd",
                name: "/yxkzgl/sbss/ylgd",
                meta: {
                  title: "压力管道",
                  icon: "article"
                },
                component: () => import("@/views/yxkzgl/sbss/ylgd")
              },
              {
                path: "/yxkzgl/sbss/qzjx",
                name: "/yxkzgl/sbss/qzjx",
                meta: {
                  title: "起重机械",
                  icon: "article"
                },
                component: () => import("@/views/yxkzgl/sbss/qzjx")
              },
              {
                path: "/yxkzgl/sbss/cnjdc",
                name: "/yxkzgl/sbss/cnjdc",
                meta: {
                  title: "场内机动车",
                  icon: "article"
                },
                component: () => import("@/views/yxkzgl/sbss/cnjdc")
              }
            ]
          },
          {
            path: "/yxkzgl/sbss/sbtj",
            name: "/yxkzgl/sbss/sbtj",
            meta: {
              title: "设备统计",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/sbss/sbtj")
          },
          {
            path: "/yxkzgl/sbss/aqss",
            name: "/yxkzgl/sbss/aqss",
            redirect: "/yxkzgl/sbss/aqss/afss",
            meta: {
              title: "安全措施",
              icon: "article"
            },
            children: [
              {
                path: "/yxkzgl/sbss/aqss/afss",
                name: "/yxkzgl/sbss/aqss/afss",
                meta: {
                  title: "安防设施",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/sbss/aqss/afss/index.vue")
              },
              {
                path: "/yxkzgl/sbss/aqss/xfss",
                name: "/yxkzgl/sbss/aqss/xfss",
                meta: {
                  title: "消防设施",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/sbss/aqss/xfss/index.vue")
              },
              {
                path: "/yxkzgl/sbss/aqss/flss",
                name: "/yxkzgl/sbss/aqss/flss",
                meta: {
                  title: "防雷设施",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/sbss/aqss/flss/index.vue")
              }
            ]
          },
          {
            path: "/yxkzgl/sbss/aqqc",
            name: "/yxkzgl/sbss/aqqc",
            redirect: "/yxkzgl/sbss/aqqc/afqc",
            meta: {
              title: "安全器材",
              icon: "article"
            },
            children: [
              {
                path: "/yxkzgl/sbss/aqqc/afqc",
                name: "/yxkzgl/sbss/aqqc/afqc",
                meta: {
                  title: "安防器材",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/sbss/aqqc/afqc/index.vue")
              },
              {
                path: "/yxkzgl/sbss/aqqc/xfqc",
                name: "/yxkzgl/sbss/aqqc/xfqc",
                meta: {
                  title: "消防器材",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/sbss/aqqc/xfqc/index.vue")
              }
            ]
          },
          {
            path: "/yxkzgl/sbss/aqbsgl",
            name: "/yxkzgl/sbss/aqbsgl",
            redirect: "/yxkzgl/sbss/aqbsgl/aqbs",
            meta: {
              title: "安全标识管理",
              icon: "article"
            },
            children: [
              {
                path: "/yxkzgl/sbss/aqbsgl/aqbs",
                name: "/yxkzgl/sbss/aqbsgl/aqbs",
                meta: {
                  title: "安全标识",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/sbss/aqbsgl/aqbs/index.vue")
              }
            ]
          }
        ]
      },
      {
        path: "/yxkzgl/zyjk",
        name: "/yxkzgl/zyjk",
        redirect: "/yxkzgl/zyjk/ldfh",
        meta: {
          title: "职业健康和劳动保护管理",
          icon: "article"
        },
        children: [
          {
            path: "/yxkzgl/zyjk/ldfh",
            name: "/yxkzgl/zyjk/ldfh",
            meta: {
              title: "劳动防护用品",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/zyjk/ldfh/Main/index.vue")
          },
          {
            path: "/yxkzgl/zyjk/zywh",
            name: "/yxkzgl/zyjk/zywh",
            meta: {
              title: "职业危害管理",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/zyjk/zywh/index.vue")
          },
          {
            path: "/yxkzgl/zyjk/zywhry",
            name: "/yxkzgl/zyjk/zywhry",
            meta: {
              title: "职业危害作业人员",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/zyjk/zywhry/index.vue")
          },
          {
            path: "/yxkzgl/zyjk/zywhcs",
            name: "/yxkzgl/zyjk/zywhcs",
            meta: {
              title: "职业危害作业场所",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/zyjk/zywhcs/index.vue")
          },
          {
            path: "/yxkzgl/zyjk/zyjktj",
            name: "/yxkzgl/zyjk/zyjktj",
            meta: {
              title: "职业健康体检",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/zyjk/zyjktj/index.vue")
          }
        ]
      },
      {
        path: "/yxkzgl/xgfgl/xgf",
        name: "/yxkzgl/xgfgl/xgf",
        meta: {
          title: "相关方管理",
          icon: "article"
        },
        component: () => import("@/views/yxkzgl/xgfgl/xgf/index.vue")
      },
      {
        path: "/yxkzgl/jtaq",
        name: "/yxkzgl/jtaq",
        meta: {
          title: "交通安全",
          icon: "article"
        },
        children: [
          {
            path: "/yxkzgl/jsygl",
            name: "/yxkzgl/jsygl",
            meta: {
              title: "驾驶员管理",
              icon: "article"
            },
            children: [
              {
                path: "/jsygl",
                name: "/jsygl",
                redirect: "/yxkzgl/jsygl/sgzsb",
                meta: {
                  title: "上岗证管理",
                  icon: "article"
                },
                children: [
                  {
                    path: "/yxkzgl/jsygl/sgzsb",
                    name: "/yxkzgl/jsygl/sgzsb",
                    meta: {
                      title: "上岗证申办",
                      icon: "article"
                    },
                    component: () =>
                      import("@/views/yxkzgl/jsygl/sgzsb.vue")
                  },
                  {
                    path: "/yxkzgl/jsygl/sgzsy",
                    name: "/yxkzgl/jsygl/sgzsy",
                    meta: {
                      title: "上岗证审验",
                      icon: "article"
                    },
                    component: () =>
                      import("@/views/yxkzgl/jsygl/sgzsy.vue")
                  }
                ]
              },
              {
                path: "/sgzsb",
                name: "/sgzsb",
                redirect: "/yxkzgl/jsygl/sgzsb",
                meta: {
                  title: "准驾证管理",
                  icon: "article"
                },
                children: [
                  {
                    path: "/yxkzgl/jsygl/zjzsb",
                    name: "/yxkzgl/jsygl/zjzsb",
                    meta: {
                      title: "准驾证申办",
                      icon: "article"
                    },
                    component: () =>
                      import("@/views/yxkzgl/jsygl/zjzsb.vue")
                  },
                  {
                    path: "/yxkzgl/jsygl/zjzsy",
                    name: "/yxkzgl/jsygl/zjzsy",
                    meta: {
                      title: "准驾证审验",
                      icon: "article"
                    },
                    component: () =>
                      import("@/views/yxkzgl/jsygl/zjzsy.vue")
                  }
                ]
              },
              {
                path: "/jsyda",
                name: "/jsyda",
                redirect: "/yxkzgl/jsygl/jsygl",
                meta: {
                  title: "基础信息",
                  icon: "article"
                },
                children: [
                  {
                    path: "/yxkzgl/jsygl/jsygl",
                    name: "/yxkzgl/jsygl/jsygl",
                    meta: {
                      title: "驾驶员信息",
                      icon: "article"
                    },
                    component: () =>
                      import("@/views/yxkzgl/jsygl/jsygl.vue")
                  },
                  {
                    path: "/yxkzgl/jtaq/jsy/jsyda",
                    name: "/yxkzgl/jtaq/jsy/jsyda",
                    meta: {
                      title: "驾驶员档案",
                      icon: "article"
                    },
                    component: () =>
                      import(
                        "@/views/yxkzgl/jtaq/jsy/jsyda/index.vue"
                      )
                  },
                  {
                    path: "/yxkzgl/jtaq/jsy/jsypxdj",
                    name: "/yxkzgl/jtaq/jsy/jsypxdj",
                    meta: {
                      title: "驾驶员培训登记",
                      icon: "article"
                    },
                    component: () =>
                      import(
                        "@/views/yxkzgl/jtaq/jsy/jsypxdj/index.vue"
                      )
                  }
                ]
              },
              {
                path: "/jsy",
                name: "/jsy",
                redirect: "/yxkzgl/jtaq/jsy/wgjlgl",
                meta: {
                  title: "文明标兵",
                  icon: "article"
                },
                children: [
                  {
                    path: "/yxkzgl/jtaq/jsy/wgjlgl",
                    name: "/yxkzgl/jtaq/jsy/wgjlgl",
                    meta: {
                      title: "违规记录管理",
                      icon: "article"
                    },
                    component: () =>
                      import(
                        "@/views/yxkzgl/jtaq/jsy/wgjlgl/index.vue"
                      )
                  },
                  {
                    path: "/yxkzgl/jtaq/jsy/mrxslc",
                    name: "/yxkzgl/jtaq/jsy/mrxslc",
                    meta: {
                      title: "每日行驶里程",
                      icon: "article"
                    },
                    component: () =>
                      import(
                        "@/views/yxkzgl/jtaq/jsy/mrxslc/index.vue"
                      )
                  },
                  {
                    path: "/yxkzgl/jtaq/jsy/jsbbmx",
                    name: "/yxkzgl/jtaq/jsy/jsbbmx",
                    meta: {
                      title: "驾驶标兵评级模型",
                      icon: "article"
                    },
                    component: () =>
                      import(
                        "@/views/yxkzgl/jtaq/jsy/jsbbmx/index.vue"
                      )
                  },
                  {
                    path: "/yxkzgl/jtaq/jsy/jsbbpj",
                    name: "/yxkzgl/jtaq/jsy/jsbbpj",
                    meta: {
                      title: "驾驶标兵评价",
                      icon: "article"
                    },
                    component: () =>
                      import(
                        "@/views/yxkzgl/jtaq/jsy/jsbbpj/index.vue"
                      )
                  }
                ]
              }
            ]
          },
          {
            path: "/yxkzgl/jtaq/cl",
            name: "/yxkzgl/jtaq/cl",
            redirect: "/yxkzgl/jtaq/cl/clgl",
            meta: {
              title: "车辆",
              icon: "article"
            },
            children: [
              {
                path: "/yxkzgl/jtaq/cl/clgl",
                name: "/yxkzgl/jtaq/cl/clgl",
                meta: {
                  title: "车辆管理",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/jtaq/cl/clgl/index.vue")
              },
              {
                path: "/yxkzgl/jtaq/cl/clda",
                name: "/yxkzgl/jtaq/cl/clda",
                meta: {
                  title: "车辆档案",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/jtaq/cl/clda/index.vue")
              },
              {
                path: "/yxkzgl/jtaq/cl/clrz",
                name: "/yxkzgl/jtaq/cl/clrz",
                meta: {
                  title: "车辆双检日志",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/jtaq/cl/clrz/index.vue")
              },
              {
                path: "/yxkzgl/jtaq/cl/clpz",
                name: "/yxkzgl/jtaq/cl/clpz",
                meta: {
                  title: "车辆双检配置",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/jtaq/cl/clpz/index.vue")
              },
              {
                path: "/yxkzgl/jtaq/cl/clyf",
                name: "/yxkzgl/jtaq/cl/clyf",
                meta: {
                  title: "车辆三交一封",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/jtaq/cl/clyf/index.vue")
              },
              {
                path: "/yxkzgl/jtaq/cl/cgygl",
                name: "/yxkzgl/jtaq/cl/cgygl",
                meta: {
                  title: "车管员管理",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/jtaq/cl/cgygl/index.vue")
              },
              {
                path: "/yxkzgl/jtaq/cl/clyz",
                name: "/yxkzgl/jtaq/cl/clyz",
                meta: {
                  title: "车辆月检台账",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/jtaq/cl/clyz/index.vue")
              },
              {
                path: "/yxkzgl/jtaq/cl/wbjl",
                name: "/yxkzgl/jtaq/cl/wbjl",
                meta: {
                  title: "维保记录",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/jtaq/cl/wbjl/index.vue")
              }
            ]
          },
          {
            path: "/yxkzgl/jtaq/sc",
            name: "/yxkzgl/jtaq/sc",
            redirect: "/yxkzgl/jtaq/sc/scdj",
            meta: {
              title: "私车",
              icon: "article"
            },
            children: [
              {
                path: "/yxkzgl/jtaq/sc/scdj",
                name: "/yxkzgl/jtaq/sc/scdj",
                meta: {
                  title: "私车登记",
                  icon: "article"
                },
                component: () =>
                  import("@/views/yxkzgl/jtaq/sc/scdj/index.vue")
              }
            ]
          }
        ]
      },
      {
        path: "/yxkzgl/nbza",
        name: "/yxkzgl/nbza",
        redirect: "/yxkzgl/nbza/rygl",
        meta: {
          title: "内部治安",
          icon: "article"
        },
        children: [
          {
            path: "/yxkzgl/nbza/rygl",
            name: "/yxkzgl/nbza/rygl",
            meta: {
              title: "人员管理",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/nbza/rygl")
          },
          {
            path: "/yxkzgl/nbza/zbap",
            name: "/yxkzgl/nbza/zbap",
            meta: {
              title: "值班安排",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/nbza/zbap")
          }
        ]
      },
      {
        path: "/yxkzgl/stgl",
        name: "/yxkzgl/stgl",
        redirect: "/yxkzgl/stgl/rytz",
        meta: {
          title: "食堂管理",
          icon: "article"
        },
        children: [
          {
            path: "/yxkzgl/stgl/rytz",
            name: "/yxkzgl/stgl/rytz",
            meta: {
              title: "人员台账",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/stgl/rytz")
          },
          {
            path: "/yxkzgl/stgl/scgys",
            name: "/yxkzgl/stgl/scgys",
            meta: {
              title: "食材供应商",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/stgl/scgys")
          },
          {
            path: "/yxkzgl/stgl/cyfw",
            name: "/yxkzgl/stgl/cyfw",
            meta: {
              title: "食品经营许可证",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/stgl/cyfw")
          },
          {
            path: "/yxkzgl/stgl/stsbss",
            name: "/yxkzgl/stgl/stsbss",
            meta: {
              title: "食堂设备设施",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/stgl/stsbss")
          },
          {
            path: "/yxkzgl/stgl/stlyjl",
            name: "/yxkzgl/stgl/stlyjl",
            meta: {
              title: "食堂留样记录",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/stgl/stlyjl")
          }
        ]
      },
      {
        path: "/yxkzgl/xfaq",
        name: "/yxkzgl/xfaq",
        redirect: "/yxkzgl/xfaq/xfdgl",
        meta: {
          title: "消防安全",
          icon: "article"
        },
        children: [
          {
            path: "/yxkzgl/xfaq/xfdgl",
            name: "/yxkzgl/xfaq/xfdgl",
            meta: {
              title: "消防队管理",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/xfaq/xfdgl")
          },
          {
            path: "/yxkzgl/xfaq/xfzdbw",
            name: "/yxkzgl/xfaq/xfzdbw",
            meta: {
              title: "消防重点部位",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/xfaq/xfzdbw")
          },
          {
            path: "/yxkzgl/xfaq/xfkzs",
            name: "/yxkzgl/xfaq/xfkzs",
            meta: {
              title: "消防控制室",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/xfaq/xfkzs")
          },
          {
            path: "/yxkzgl/xfaq/wxxfz",
            name: "/yxkzgl/xfaq/wxxfz",
            meta: {
              title: "微型消防站",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/xfaq/wxxfz")
          }
        ]
      },
      {
        path: "/yxkzgl/csbwgl",
        name: "/yxkzgl/csbwgl",
        redirect: "/yxkzgl/csbwgl/csxx",
        meta: {
          title: "场所部位管理",
          icon: "article"
        },
        children: [
          {
            path: "/yxkzgl/csbwgl/csxx",
            name: "/yxkzgl/csbwgl/csxx",
            meta: {
              title: "场所信息",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/csbwgl/csxx")
          }
        ]
      },
      {
        path: "/yxkzgl/wxwpgl",
        name: "/yxkzgl/wxwpgl",
        redirect: "/yxkzgl/wxwpgl/procure",
        meta: {
          title: "危险物品管理",
          icon: "article"
        },
        children: [
          {
            path: "/yxkzgl/wxwpgl/procure",
            name: "/yxkzgl/wxwpgl/procure",
            meta: {
              title: "采购",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/wxwpgl/procure")
          },
          {
            path: "/yxkzgl/wxwpgl/wxhxp",
            name: "/yxkzgl/wxwpgl/wxhxp",
            meta: {
              title: "危险化学品列表",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/wxwpgl/wxhxp/index.vue")
          },
          {
            path: "/yxkzgl/wxwpgl/grant",
            name: "/yxkzgl/wxwpgl/grant",
            meta: {
              title: "发放",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/wxwpgl/grant")
          },
          {
            path: "/yxkzgl/wxwpgl/inventory",
            name: "/yxkzgl/wxwpgl/inventory",
            meta: {
              title: "库存",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/wxwpgl/inventory")
          },
          {
            path: "/yxkzgl/wxwpgl/dispose",
            name: "/yxkzgl/wxwpgl/dispose",
            meta: {
              title: "处置",
              icon: "article"
            },
            component: () => import("@/views/yxkzgl/wxwpgl/dispose")
          }
        ]
      },
      {
        path: "/yxkzgl/wxzysq",
        name: "/yxkzgl/wxzysq",
        meta: {
          title: "危险作业申请",
          icon: "article"
        },
        component: () => import("@/views/yxkzgl/wxzysq")
      }
    ]
  },
  {
    path: "/fxgk",
    name: "/fxgk",
    component: layout,
    meta: {
      title: "风险管控隐患排查治理",
      icon: "article"
    },
    children: [
      {
        path: "/fxgk/zzbz",
        name: "/fxgk/zzbz",
        redirect: "/fxgk/zzbz/skldxz",
        meta: {
          title: "组织保障",
          icon: "article"
        },
        children: [
          {
            path: "/fxgk/zzbz/skldxz",
            name: "/fxgk/zzbz/skldxz",
            meta: {
              title: "双控领导小组",
              icon: "article"
            },
            component: () => import("@/views/fxgk/zzbz/skldxz.vue")
          }
        ]
      },
      {
        path: "/fxgk/aqfxfjgk",
        name: "/fxgk/aqfxfjgk",
        redirect: "/fxgk/aqfxfjgk/fxbsk",
        meta: {
          title: "安全风险分级管控",
          icon: "article"
        },
        children: [
          {
            path: "/fxgk/aqfxfjgk/fxbsk",
            name: "/fxgk/aqfxfjgk/fxbsk",
            meta: {
              title: "风险辨识库",
              icon: "article"
            },
            component: () => import("@/views/fxgk/aqfxfjgk/fxbsk")
          },
          {
            path: "/fxgk/aqfxfjgk/fxch",
            name: "/fxgk/aqfxfjgk/fxch",
            meta: {
              title: "风险策划",
              icon: "article"
            },
            component: () => import("@/views/fxgk/aqfxfjgk/fxch")
          },
          {
            path: "/fxgk/aqfxfjgk/bshz",
            name: "/fxgk/aqfxfjgk/bshz",
            meta: {
              title: "辨识汇总",
              icon: "article"
            },
            component: () => import("@/views/fxgk/aqfxfjgk/bshz")
          },

          {
            path: "/fxgk/aqfxfjgk/bsqd",
            name: "/fxgk/aqfxfjgk/bsqd",
            meta: {
              title: "辨识清单",
              icon: "article"
            },
            component: () => import("@/views/fxgk/aqfxfjgk/bsqd")
          },
          {
            path: "/fxgk/aqfxfjgk/fxtj",
            name: "/fxgk/aqfxfjgk/fxtj",
            meta: {
              title: "风险统计",
              icon: "article"
            },
            component: () => import("@/views/fxgk/aqfxfjgk/fxtj")
          },
          {
            path: "/fxgk/aqfxfjgk/fxkz",
            name: "/fxgk/aqfxfjgk/fxkz",
            meta: {
              title: "风险控制",
              icon: "article"
            },
            component: () => import("@/views/fxgk/aqfxfjgk/fxkz")
          }
        ]
      },
      {
        path: "/fxgk/jcss",
        name: "/fxgk/jcss",
        meta: {
          title: "检查实施",
          icon: "article"
        },

        children: [
          {
            path: "/fxgk/jcss/zhjc",
            name: "/fxgk/jcss/zhjc",
            meta: {
              title: "综合检查",
              icon: "article"
            },
            component: () => import("@/views/fxgk/jcss/zhjc")
          },
          {
            path: "/fxgk/jcss/yhpcqd",
            name: "/fxgk/jcss/yhpcqd",
            meta: {
              title: "隐患排查清单",
              icon: "article"
            },
            component: () => import("@/views/fxgk/jcss/yhpcqd")
          },
          {
            path: "/fxgk/jcss/jctz",
            name: "/fxgk/jcss/jctz",
            meta: {
              title: "检查台账",
              icon: "article"
            },
            component: () => import("@/views/fxgk/jcss/jctz")
          },
          {
            path: "/fxgk/jcss/dclyh",
            name: "/fxgk/jcss/dclyh",
            meta: {
              title: "待处理隐患",
              icon: "article"
            },
            component: () => import("@/views/fxgk/jcss/dclyh")
          },
          {
            path: "/fxgk/jcss/yhtj",
            name: "/fxgk/jcss/yhtj",
            meta: {
              title: "隐患统计",
              icon: "article"
            },
            component: () => import("@/views/fxgk/jcss/yhtj")
          },
          {
            path: "/fxgk/jcss/yhqsfx",
            name: "/fxgk/jcss/yhqsfx",
            meta: {
              title: "隐患趋势分析",
              icon: "article"
            },
            component: () => import("@/views/fxgk/jcss/yhqsfx")
          },
          {
            path: "/fxgk/jcss/jctj",
            name: "/fxgk/jcss/jctj",
            meta: {
              title: "检查统计",
              icon: "article"
            },
            component: () => import("@/views/fxgk/jcss/jctj")
          },
          {
            path: "/fxgk/jcss/jcjltj",
            name: "/fxgk/jcss/jcjltj",
            meta: {
              title: "检查记录统计",
              icon: "article"
            },
            component: () => import("@/views/fxgk/jcss/jcjltj")
          },
          {
            path: "/fxgk/jcss/yhpczlbg",
            name: "/fxgk/jcss/yhpczlbg",
            meta: {
              title: "隐患排查治理报告",
              icon: "article"
            },
            component: () => import("@/views/fxgk/jcss/yhpczlbg")
          },
          {
            path: "/fxgk/jcss/yhtz",
            name: "/fxgk/jcss/yhtz",
            meta: {
              title: "隐患台账"
            },
            component: () => import("@/views/fxgk/jcss/yhtz")
          },
          {
            path: "/fxgk/jcss/yhtjxq",
            name: "/fxgk/jcss/yhtjxq",
            meta: {
              title: store.state.user.routerName
                ? store.state.user.routerName
                : "隐患详情"
            },
            component: () => import("@/views/fxgk/jcss/yhtjxq")
          }
        ]
      },
      {
        path: "/fxgk/sgyh",
        name: "/fxgk/sgyh",
        meta: {
          title: "事故隐患排查治理",
          icon: "article"
        },
        children: [
          {
            path: "/fxgk/yhpcList",
            name: "/fxgk/yhpcList",
            meta: {
              title: "隐患排查清单库",
              icon: "article"
            },
            children: [
              {
                path: "/fxgk/jcgl",
                name: "/fxgk/jcgl",
                meta: {
                  title: "基础类管理库",
                  icon: "article"
                },
                component: () =>
                  import("@/views/fxgk/sgyh/yhpcList/jcgl.vue")
              },
              {
                path: "/fxgk/xcgl",
                name: "/fxgk/xcgl",
                meta: {
                  title: "现场类管理库",
                  icon: "article"
                },
                component: () =>
                  import("@/views/fxgk/sgyh/yhpcList/xcgl.vue")
              }
            ]
          }
        ]
      },
      {
        path: "/fxgk/ycyj",
        name: "/fxgk/ycyj",
        meta: {
          title: "预测预警",
          icon: "article"
        },
        children: [
          {
            path: "/fxgk/ycyj/zhxf",
            name: "/fxgk/ycyj/zhxf",
            meta: {
              title: "智慧用电",
              icon: "article"
            },
            children: [
              {
                path: "/fxgk/ycyj/zhxf/index",
                name: "/fxgk/ycyj/zhxf/index",
                meta: {
                  title: "首页",
                  icon: "article"
                },
                component: () =>
                  import("@/views/fxgk/ycyj/zhxf/index.vue")
              },
              {
                path: "/fxgk/ycyj/zhxf/sbztcx",
                name: "/fxgk/ycyj/zhxf/sbztcx",
                meta: {
                  title: "设备状态查询",
                  icon: "article"
                },
                component: () =>
                  import("@/views/fxgk/ycyj/zhxf/sbztcx.vue")
              },
              {
                path: "/fxgk/ycyj/zhxf/glyjxx",
                name: "/fxgk/ycyj/zhxf/glyjxx",
                meta: {
                  title: "各类预警信息",
                  icon: "article"
                },
                component: () =>
                  import("@/views/fxgk/ycyj/zhxf/glyjxx.vue")
              },
              {
                path: "/fxgk/ycyj/zhxf/lxtj",
                name: "/fxgk/ycyj/zhxf/lxtj",
                meta: {
                  title: "离线统计",
                  icon: "article"
                },
                component: () => import("@/views/fxgk/ycyj/zhxf/lxtj.vue")
              },
              {
                path: "/fxgk/ycyj/zhxf/yjxxfltj",
                name: "/fxgk/ycyj/zhxf/yjxxfltj",
                meta: {
                  title: "预警信息分类统计",
                  icon: "article"
                },
                component: () =>
                  import("@/views/fxgk/ycyj/zhxf/yjxxfltj.vue")
              }
            ]
          }
        ]
      },
      {
        path: "/fxgk/rwpz",
        name: "/fxgk/rwpz",
        meta: {
          title: "任务配置",
          icon: "article"
        },
        children: [
          {
            path: "/fxgk/zhjcmbpz",
            name: "/fxgk/zhjcmbpz",
            meta: {
              title: "综合检查模版配置",
              icon: "article"
            },
            component: () => import("@/views/fxgk/rwpz/zhjcmbpz.vue")
          },
          {
            path: "/fxgk/bmjcbz",
            name: "/fxgk/bmjcbz",
            meta: {
              title: "部门检查标准",
              icon: "article"
            },
            component: () => import("@/views/fxgk/rwpz/bmjcbz.vue")
          },
          {
            path: "/fxgk/sgx",
            name: "/fxgk/sgx",
            meta: {
              title: "收购线",
              icon: "article"
            },
            component: () => import("@/views/fxgk/rwpz/sgx.vue")
          },
          {
            path: "/fxgk/sgxpz",
            name: "/fxgk/sgxpz",
            meta: {
              title: "收购线配置",
              icon: "article"
            },
            component: () => import("@/views/fxgk/rwpz/sgxpz.vue")
          }
        ]
      },
      {
        path: "/fxgk/inspect",
        name: "/fxgk/inspect",
        meta: {
          title: "检查周期配置",
          icon: "article"
        },
        children: [
          {
            path: "/fxgk/inspectCycle",
            name: "/fxgk/inspectCycle",
            meta: {
              title: "检查周期管理",
              icon: "article"
            },
            component: () => import("@/views/fxgk/jczq/jczqgl.vue")
          }
        ]
      },
      {
        path: "/fxgk/ssp",
        name: "/fxgk/ssp",
        meta: {
          title: "随手拍",
          icon: "article"
        },
        component: () => import("@/views/fxgk/ssp/index.vue")
      }
    ]
  },
  {
    path: "/yjzb",
    name: "/yjzb",
    component: layout,
    meta: {
      title: "应急准备和响应",
      icon: "article"
    },
    children: [
      {
        path: "/yjzb/yjya",
        name: "/yjzb/yjya",
        redirect: "/yjzb/yjya/yjzy",
        // component: () => import("@/views/fxgk/jcss/zhjc"),
        meta: {
          title: "应急资源和应急预案",
          icon: "article"
        },

        children: [
          {
            path: "/yjzb/yjya/yjzy",
            name: "/yjzb/yjya/yjzy",
            meta: {
              title: "应急资源",
              icon: "article"
            },
            component: () => import("@/views/yjzb/resources/yjzy/index.vue")
          },
          {
            path: "/yjzb/yjya/yabz",
            name: "/yjzb/yjya/yabz",
            meta: {
              title: "预案编制",
              icon: "article"
            },
            component: () => import("@/views/yjzb/resources/yabz/index.vue")
          }
          // , {
          //   path: "/yjzb/yjya/xdjh",
          //   name: "/yjzb/yjya/xdjh",
          //   meta: {
          //     title: '预案编制修订计划',
          //     icon: "article"
          //   },
          //   component: () => import("@/views/yjzb/resources/xdjh/index.vue")
          // },
        ]
      },
      {
        path: "/yjzb/yjgl",
        name: "/yjzb/yjgl",
        meta: {
          title: "应急预案管理和演练",
          icon: "article"
        },
        children: [
          {
            path: "/yjzb/yjgl/yljh",
            name: "/yjzb/yjgl/yljh",
            meta: {
              title: "应急演练计划与实施",
              icon: "article"
            },
            component: () => import("@/views/yjzb/management/yljh/index.vue")
          },
          {
            path: "/yjzb/yjgl/yltj",
            name: "/yjzb/yjgl/yltj",
            meta: {
              title: "应急预案演练统计",
              icon: "article"
            },
            component: () => import("@/views/yjzb/management/yltj/index.vue")
          }
        ]
      }
    ]
  },
  {
    path: "/sggl",
    name: "/sggl",
    component: layout,
    meta: {
      title: "未遂事件和事故管理",
      icon: "article"
    },
    children: [
      {
        path: "/sggl/sgbg",
        name: "/sggl/sgbg",
        redirect: "/sggl/sgbg/sgyb",
        // component: () => import("@/views/fxgk/jcss/zhjc"),
        meta: {
          title: "事故报告调查处理统计",
          icon: "article"
        },

        children: [
          {
            path: "/sggl/sgbg/sgyb",
            name: "/sggl/sgbg/sgyb",
            meta: {
              title: "事故月报",
              icon: "article"
            },
            component: () => import("@/views/sggl/sgbg/sgyb/index.vue")
          },
          {
            path: "/sggl/sgbg/sgdc",
            name: "/sggl/sgbg/sgdc",
            meta: {
              title: "事故调查",
              icon: "article"
            },
            component: () => import("@/views/sggl/sgbg/sgdc/index.vue")
          },
          {
            path: "/sggl/sgbg/sgfx",
            name: "/sggl/sgbg/sgfx",
            meta: {
              title: "事故事件统计分析",
              icon: "article"
            },
            component: () => import("@/views/sggl/sgbg/sgfx/index.vue")
          }
        ]
      }
    ]
  },
  // {
  //   path: "/gwdb",
  //   name: "/gwdb",
  //   component: layout,
  //   meta: {
  //     title: "岗位达标智能测评",
  //     icon: "article"
  //   },
  //   children: [
  //     {
  //       path: "/gwdb/mxgl",
  //       name: "/gwdb/mxgl",
  //       meta: {
  //         title: "岗位模型管理",
  //         icon: "article"
  //       },
  //       component: () => import("@/views/gwdb/mxgl/index.vue")
  //     },
  //     {
  //       path: "/gwdb/rypz",
  //       name: "/gwdb/rypz",
  //       meta: {
  //         title: "岗位人员配置",
  //         icon: "article"
  //       },
  //       component: () => import("@/views/gwdb/rypz/index.vue")
  //     },
  //     {
  //       path: "/gwdb/khtj",
  //       name: "/gwdb/khtj",
  //       meta: {
  //         title: "岗位考核统计",
  //         icon: "article"
  //       },
  //       component: () => import("@/views/gwdb/khtj/index.vue")
  //     },
  //     {
  //       path: "/gwdb/dbtj",
  //       name: "/gwdb/dbtj",
  //       meta: {
  //         title: "岗位达标统计",
  //         icon: "article"
  //       },
  //       component: () => import("@/views/gwdb/dbtj/index.vue")
  //     }
  //   ]
  // },
  {
    path: "/jxpd",
    name: "/jxpd",
    component: layout,
    meta: {
      title: "绩效评定和持续改进",
      icon: "article"
    },
    children: [
      {
        path: "/jxpd/zpgw",
        name: "/jxpd/zpgw",
        redirect: "/jxpd/zpgw/mxgl",
        // component: () => import("@/views/fxgk/jcss/zhjc"),
        meta: {
          title: "安全生产标准化自评岗位",
          icon: "article"
        },

        children: [
          {
            path: "/jxpd/zpgw/bzzp",
            name: "/jxpd/zpgw/bzzp",
            meta: {
              title: "标准化自评",
              icon: "article"
            },
            component: () => import("@/views/gwdb/bzzp/index.vue")
          },
          {
            path: "/jxpd/zpgw/mxgl",
            name: "/jxpd/zpgw/mxgl",
            meta: {
              title: "岗位模型管理",
              icon: "article"
            },
            component: () => import("@/views/gwdb/mxgl/index.vue")
          },
          {
            path: "/jxpd/zpgw/rypz",
            name: "/jxpd/zpgw/rypz",
            meta: {
              title: "岗位人员配置",
              icon: "article"
            },
            component: () => import("@/views/gwdb/rypz/index.vue")
          },
          {
            path: "/jxpd/zpgw/khtj",
            name: "/jxpd/zpgw/khtj",
            meta: {
              title: "岗位考核统计",
              icon: "article"
            },
            component: () => import("@/views/gwdb/khtj/index.vue")
          },
          {
            path: "/jxpd/zpgw/dbtj",
            name: "/jxpd/zpgw/dbtj",
            meta: {
              title: "岗位达标统计",
              icon: "article"
            },
            component: () => import("@/views/gwdb/dbtj/index.vue")
          }
        ]
      },
      {
        path: "/jxpd/sckh",
        name: "/jxpd/sckh",
        redirect: "/jxpd/sckh/jxpz",
        // component: () => import("@/views/fxgk/jcss/zhjc"),
        meta: {
          title: "安全生产绩效考核",
          icon: "article"
        },
        children: [
          {
            path: "/jxpd/sckh/jxpz",
            name: "/jxpd/sckh/jxpz",
            meta: {
              title: "绩效配置",
              icon: "article"
            },
            component: () => import("@/views/jxpd/jxkh/jxpz/index.vue")
          },
          {
            path: "/jxpd/sckh/jxdf",
            name: "/jxpd/sckh/jxdf",
            meta: {
              title: "绩效打分",
              icon: "article"
            },
            component: () => import("@/views/jxpd/jxkh/jxdf/index.vue")
          }
        ]
      },
      {
        path: "/jxpd/csgj",
        name: "/jxpd/csgj",
        redirect: "/jxpd/csgj/fxtj",
        // component: () => import("@/views/fxgk/jcss/zhjc"),
        meta: {
          title: "持续改进",
          icon: "article"
        },

        children: [
          {
            path: "/fxgk/aqfxfjgk/fxtj",
            name: "/fxgk/aqfxfjgk/fxtj",
            meta: {
              title: "风险统计",
              icon: "article"
            },
            component: () => import("@/views/fxgk/aqfxfjgk/fxtj")
          },
          {
            path: "/jxpd/cxgj/sgtj",
            name: "/jxpd/cxgj/sgtj",
            meta: {
              title: "事故统计",
              icon: "article"
            },
            component: () => import("@/views/sggl/sgbg/sgfx/index.vue")
          },
          {
            path: "/jxpd/cxgj/yjtj",
            name: "/jxpd/cxgj/yjtj",
            meta: {
              title: "预警统计",
              icon: "article"
            },
            component: () => import("@/views/jxpd/cxgj/yjtj/index.vue")
          }
        ]
      }
    ]
  },
  {
    path: "/systemConfig",
    component: layout,
    name: "/systemConfig",
    redirect: "/dict/index",
    meta: {
      title: "系统管理",
      icon: "personnel"
    },
    children: [
      {
        path: "/user",
        name: "/user",
        // component: () => import("@/views/systemConfig/department-list/index"),
        meta: {
          title: "组织机构权限",
          icon: "personnel-manage",
          redirect: "/user/department-ist"
        },
        children: [
          {
            path: "/user/department-ist",
            name: "/user/department-ist",
            component: () =>
              import("@/views/systemConfig/department-list/index"),
            meta: {
              title: "部门管理",
              icon: "personnel-manage"
            }
          },
          {
            path: "/user/userList",
            name: "/user/userList",
            component: () => import("@/views/systemConfig/user-list/index"),
            meta: {
              title: "用户管理",
              icon: "role"
            }
          },
          {
            path: "/user/role",
            name: "/user/role",
            component: () => import("@/views/systemConfig/role-list/index"),
            meta: {
              title: "角色管理",
              icon: "role"
            }
          },
          {
            path: "/user/job",
            name: "/user/job",
            component: () => import("@/views/systemConfig/job-list/index"),
            meta: {
              title: "岗位列表",
              icon: "personnel-manage"
            }
          }
        ]
      },
      {
        path: "/dict/index",
        name: "/dict/index",
        component: () => import("@/views/systemConfig/dict/index"),
        meta: {
          title: "字典列表",
          icon: "article-ranking"
        }
      },
      {
        path: "/dict/detail",
        name: "dictDetail",
        component: () => import("@/views/systemConfig/dict/detail"),
        meta: {
          title: "feng"
        }
      },
      {
        path: "/user/menuList",
        name: "/user/menuList",
        component: () => import("@/views/systemConfig/menu-list/index"),
        meta: {
          title: "菜单管理",
          icon: "personnel-manage"
        }
      },
      {
        path: "/progress",
        name: "/progress",
        component: () => import("@/views/systemConfig/progress/index"),
        meta: {
          title: "流程管理",
          icon: "personnel-manage"
        }
      },
      {
        path: "/user/systemVersion",
        name: "/user/systemVersion",
        component: () => import("@/views/systemConfig/system-version-list/index"),
        meta: {
          title: "系统版本管理",
          icon: "personnel-manage"
        }
      },
      {
        path: "/user/log",
        name: "/user/log",
        redirect: "/user/operateLog",
        meta: {
          title: "日志",
          icon: "article"
        },
        children: [
          {
            path: "/user/operateLog",
            name: "/user/operateLog",
            component: () =>
              import("@/views/systemConfig/log-manage/operateLog/index"),
            meta: {
              title: "操作日志",
              icon: "article-ranking"
            }
          },
          {
            path: "/user/loginLog",
            name: "/user/loginLog",
            component: () =>
              import("@/views/systemConfig/log-manage/loginLog/index"),
            meta: {
              title: "登录日志",
              icon: "article-ranking"
            }
          }
        ]
      },
      {
        path: "/user/deptAllocationUser/:id",
        name: "deptAllocationUser",
        component: () =>
          import("@/views/systemConfig/department-list/deptAllocationUser"),
        meta: {
          title: "管理用户"
        }
      },
      {
        // path: "/user/allocationUser",
        path: "/user/allocationUser/:id",
        name: "allocationUser",
        component: () => import("@/views/systemConfig/role-list/allocationUser"),
        meta: {
          title: "分配用户"
        }
      },
      {
        path: "/opera-maint",
        name: "/opera-maint",
        component: () => import("@/views/systemConfig/opera-maint/index"),
        meta: {
          title: "运维管理",
          icon: "personnel-manage",
          redirect: "/opera-maint/serve"
        },
        children: [
          {
            path: "/opera-maint/serve",
            name: "/opera-maint/serve",
            component: () =>
              import("@/views/systemConfig/opera-maint/serve/index"),
            meta: {
              title: "服务监控",
              icon: "personnel-manage"
            }
          },
          {
            path: "/opera-maint/save",
            name: "/opera-maint/save",
            component: () =>
              import("@/views/systemConfig/opera-maint/save/index"),
            meta: {
              title: "缓存监控",
              icon: "personnel-manage"
            }
          },
          {
            path: "/opera-maint/online",
            name: "/opera-maint/online",
            component: () =>
              import("@/views/systemConfig/opera-maint/online/index"),
            meta: {
              title: "在线用户",
              icon: "personnel-manage"
            }
          }
        ]
      },
      {
        path: "/user/systemConfig",
        name: "/user/systemConfig",
        component: () => import("@/views/systemConfig/system-config-list/index"),
        meta: {
          title: "系统配置",
          icon: "personnel-manage"
        }
      }
    ]
  }
]

/**
 * 公开路由表
 */
export const publicRoutes = [
  {
    path: "/",
    // 注意：带有路径“/”的记录中的组件“默认”是一个不返回 Promise 的函数
    component: layout,
    // redirect: "/profile",
    redirect: "/login",
    children: [
      // {
      //   path: "/system",
      //   component: () => import("@/views/system/index.vue"),
      //   name: "/system",
      //   meta: {
      //     title: "数据看板",
      //     icon: "shouye"
      //   }
      // },
      {
        path: "/newsystem",
        component: () => import("@/views/newsystem/index.vue"),
        name: "/newsystem",
        meta: {
          title: "地图看板",
          icon: "shouye"
        }
      },
      {
        path: "/editPassword",
        name: "/editPassword",
        component: () => import("@/views/systemConfig/editPassword/index"),
        meta: {
          title: "个人中心",
          icon: "gerenzhongxin"
        }
      },
      {
        path: "/staging",
        name: "/staging",
        component: () => import("@/views/staging/index"),
        meta: {
          title: "工作台",
          icon: "tree"
        }
      },
      {
        path: "/dict/detail",
        name: "dictDetail",
        component: () => import("@/views/systemConfig/dict/detail"),
        meta: {
          title: "字典数据"
        }
      },
      {
        path: "/user/allocationUser/:id",
        name: "allocationUser",
        component: () => import("@/views/systemConfig/role-list/allocationUser"),
        meta: {
          title: "分配用户"
        }
      },
      {
        path: "/jgryandzz/zrsstatisticsList",
        name: "zrsstatisticsList",
        component: () =>
          import("@/views/dutyBook/jgryandzz/commponents/zrsstatisticsList"),
        meta: {
          title: "责任书列表"
        }
      },
      {
        path: "lawRules/sbhqlist",
        name: "sbhqlist",
        component: () => import("@/views/law/lawRules/sbhqlist"),
        meta: {
          title: "识别获取"
        }
      },
      {
        path: "/fxgk/zzbz/skldxztz",
        name: "skldxztz",
        component: () => import("@/views/fxgk/zzbz/skldxztz.vue"),
        meta: {
          title: "双控领导小组台账"
        }
      },
      {
        path: "/yxkzgl/csbwgl/csgl",
        name: "/yxkzgl/csbwgl/csgl",
        meta: {
          title: "场所管理"
        },
        component: () => import("@/views/yxkzgl/csbwgl/csgl")
      },
      {
        path: "/jgryandzz/zrsstatistics",
        name: "zrsstatistics",
        component: () =>
          import("@/views/dutyBook/jgryandzz/commponents/zrsstatistics"),
        meta: {
          title: "责任书签订统计"
        }
      },
      // {
      //   path: "/jgryandzz/Responsibility",
      //   name: "Responsibility",
      //   component: () =>
      //     import("@/views/dutyBook/jgryandzz/commponents/Responsibility"),
      //   meta: {
      //     title: "省计科责任书签订详情"
      //   }
      // },
      {
        path: "/pxjhcoms/pxssxq",
        name: "pxssxq",
        component: () => import("@/views/safety/pxjygl/pxjhcoms/pxssxq"),
        meta: {
          title: "培训实施详情"
        }
      },
      {
        path: "/pxjhcoms/Trainingreport",
        name: "Trainingreport",
        component: () => import("@/views/safety/pxjygl/pxjhcoms/Trainingreport"),
        meta: {
          title: "培训上报详情"
        }
      },
      {
        path: "/jgryandzz/Readytotal",
        name: "Readytotal",
        component: () =>
          import("@/views/dutyBook/jgryandzz/commponents/Readytotal"),
        meta: {
          title: "在线安全库学习统计"
        }
      },
      {
        path: "/pxjhcoms/profiledetails",
        name: "profiledetails",
        component: () =>
          import("@/views/safety/pxjygl/pxjhcoms/profiledetails.vue"),
        meta: {
          title: "个人培训档案详情"
        }
      },
      // {
      //   path: "/aqfxfjgk/bshzqd",
      //   name: "bshzqd",
      //   component: () => import("@/views/fxgk/aqfxfjgk/bshzqd"),
      //   meta: {
      //     title: "个人风险辨识清单"
      //   }
      // },
      {
        path: "/fxgk/jcss/yhtz",
        name: "/fxgk/jcss/yhtz",
        meta: {
          title: "隐患台账"
        },
        component: () => import("@/views/fxgk/jcss/yhtz")
      },
      {
        path: "/fxgk/aqfxfjgk/component/fxtjxq",
        name: "/fxgk/aqfxfjgk/component/fxtjxq",
        meta: {
          title: store.state.user.routerName
            ? store.state.user.routerName
            : "风险辨识详情"
        },
        component: () => import("@/views/fxgk/aqfxfjgk/component/fxtjxq")
      },
      {
        path: "/yxkzgl/jsygl/sgzsbxq",
        name: "/yxkzgl/jsygl/sgzsbxq",
        meta: {
          title: "消息任务处理"
        },
        component: () => import("@/views/yxkzgl/jsygl/Sgzsbxq.vue")
      },
      {
        path: "/fxgk/jcss/dxmfx",
        name: "/fxgk/jcss/dxmfx",
        meta: {
          title: store.state.user.routerName
            ? store.state.user.routerName
            : "点线面分析"
        },
        component: () => import("@/views/fxgk/jcss/dxmfx")
      },
      {
        path: "/fxgk/jcss/zhjczgqk",
        name: "/fxgk/jcss/zhjczgqk",
        meta: {
          title: "综合检查整改情况"
        },
        component: () => import("@/views/fxgk/jcss/zhjczgqk")
      },
      {
        path: "/404",
        name: "404",
        component: () => import("@/views/error-page/404")
      },
      {
        path: "/401",
        name: "401",
        component: () => import("@/views/error-page/401")
      }
      // {
      //   path: "/dutyBook/goalWay/yearZbkNew/targetCustom",
      //   name: "dutyBook/goalWay/yearZbkNew/targetCustom",
      //   component: () =>
      //     import(
      //       "@/views/dutyBook/goalWay/compon/targetCustom.vue"
      //     )
      // }
    ]
  },
  {
    path: "/login",
    component: () => import("@/views/login/index") //系统登录
  },
  {
    path: "/mapdemo",
    component: () => import("@/views/mapDemo/index.vue"),
    name: "mapdemo",
    meta: {
      title: "地图demo"
    }
  },

]

const router = createRouter({
  history: createWebHashHistory(),
  routes: [...publicRoutes]
  // routes: publicRoutes1
})

router.beforeEach((to, from, next) => {
  /* 路由发生变化修改页面title */
  if (to.path == "/fxgk/jcss/yhtjxq") {
    to.meta.title = store.state.user.setRouterName
  }
  if (to.path == "/fxgk/aqfxfjgk/component/fxtjxq") {
    to.meta.title = store.state.user.routerName
  }
  if (to.path == "/fxgk/jcss/dxmfx") {
    to.meta.title = store.state.user.routerName
  }
  next()
})
// const whiteList = [
//   "/login",
//   "/oatuh_login",
//   "/profile",
//   "/",
//   ,
//   "/instructCenter",
//   "/editPassword",
//   "/404",
//   "/401"
// ];
// 初始化路由表
export function resetRouter() {
  if (store.getters?.routeReady && store.getters?.userInfo?.permission?.menus) {
    const menus = store.getters.userInfo.permission.menus
    menus.forEach((menu) => {
      router.removeRoute(menu)
    })
  }
  // const newArr = router.getRoutes().filter(item => {
  //   return !whiteList.includes(item.path)
  // })
  // newArr.forEach((menu) => {
  //   if (menu.name) {
  //     router.removeRoute(menu.name);
  //   }
  // });
}

export default router
