import { createRouter, createWebHashHistory } from "vue-router"; export const constantRoutes = [ { path: "/login", name: "Login", component: () => import(/* webpackChunkName: "Login" */ "../views/layout/login-page.vue"), }, ]; export const asyncRoutes = [ // { // path: "/", // redirect: "/home", // meta: { // title: "首页", // icon: "", // permissions: ["jn_sy"], // }, // }, // { // path: "/home", // 驾驶舱 // name: "home", // component: () => import("@/views/Home"), // meta: { // title: "首页", // icon: "", // permissions: ["jn_sy"], // }, // }, //综合报警 { path: "/integratedAlarm", redirect: "/integratedAlarm/safe/realwarning", component: () => import("@/views/IntegratedAlarm"), // component: () => import("@/views/SandTable/SandTable.vue"), name: "SandTable", meta: { title: "综合报警", icon: "", permissions: ["jn_integratedAlarm"], }, children: [ // { // path: "detailmatrix", // 明细矩阵 // name: "DetailMatrix", // component: () => import("@/views/IntegratedAlarm/DetailMatrix"), // meta: { // title: "矩阵提醒", // icon: "svg-mx-matrix", // permissions: ["jn_mxjz"], // }, // }, { path: "safe", // 综合报警 name: "safe", component: () => import("@/views/IntegratedAlarm/safe"), meta: { title: "综合报警", icon: "svg-zhbj", permissions: ["jn_safe"], }, children: [ { path: "realwarning", // 综合报警 name: "realwarning", component: () => import("@/views/IntegratedAlarm/safe/realWarning"), meta: { title: "实时报警", icon: "", permissions: ["jn_safe_ssbj"], }, }, { path: "customWarning", // 预警查询 name: "customWarning", component: () => import("@/views/IntegratedAlarm/safe/customWarning"), meta: { title: "预警查询", icon: "", permissions: ["jn_safe_yjcx"], }, }, { path: "historyWarning", // 报警查询 name: "historyWarning", component: () => import("@/views/IntegratedAlarm/safe/historyWarning"), meta: { title: "报警查询", icon: "", permissions: ["jn_safe_bjcx"], }, }, // { // path: "stopQuery", //停机查询 // name: "stopQuery", // component: () => import("@/views/IntegratedAlarm/safe/stopQuery"), // meta: { // title: "停机查询", // icon: "", // permissions: ["jn_safe_tjcx"], // }, // }, // { // path: "dataSearch", //数据查询 // name: "dataSearch", // component: () => import("@/views/IntegratedAlarm/safe/dataSearch"), // meta: { // title: "数据查询", // icon: "", // permissions: ["jn_safe_sjcx"], // }, // }, ], }, { path: "reliability", // 可靠性分析 name: "reliability", component: () => import("@/views/IntegratedAlarm/reliability"), meta: { title: "可靠性分析", icon: "svg-kkxfx", permissions: ["jn_reliability"], }, children: [ { path: "customAnalyse", // 预警分析 name: "customAnalyse", component: () => import("@/views/IntegratedAlarm/reliability/customAnalyse"), meta: { title: "预警分析", icon: "", permissions: ["jn_reliability_yjfx"], }, }, { path: "historyAnalyse", // 报警分析 name: "historyAnalyse", component: () => import("@/views/IntegratedAlarm/reliability/historyAnalyse"), meta: { title: "报警分析", icon: "", permissions: ["jn_reliability_bjfx"], }, } ] }, { path: "alarmConfig", // 报警配置 name: "alarmConfig", component: () => import("@/views/IntegratedAlarm/alarmConfig"), meta: { title: "报警配置", icon: "svg-bjpz", permissions: ["jn_alarmConfig"], }, children: [ { path: "customConfig", // 预警配置 name: "customConfig", component: () => import("@/views/IntegratedAlarm/alarmConfig/customConfig"), meta: { title: "预警配置", icon: "", permissions: ["jn_safe_ssbj"], }, }, { path: "historyConfig", // 报警配置 name: "historyConfig", component: () => import("@/views/IntegratedAlarm/alarmConfig/historyConfig"), meta: { title: "报警配置", icon: "", permissions: ["jn_alarmConfig_bjpz"], }, }, { path: "earlyWarning", name: "earlyWarning", meta: { title: "预警排查方案", }, component: () => import("../views/IntegratedAlarm/earlyWarning/index.vue"), }, { path: "logs", // 规则修改日志 name: "logs", component: () => import("@/views/IntegratedAlarm/alarmConfig/logs"), meta: { title: "规则修改日志", icon: "", permissions: ["jn_alarmConfig_bjpz"], }, }, ] }, { path: "deviceConfig", // 设备模型配置 name: "deviceConfig", component: () => import("@/views/IntegratedAlarm/deviceConfig"), meta: { title: "设备模型配置", icon: "svg-zhgk", permissions: ["jn_alarmConfig"], }, }, { path: "optimizationSuggestions", // 优化建议报告 name: "optimizationSuggestions", component: () => import("@/views/IntegratedAlarm/yhjyReport"), meta: { title: "优化建议报告", icon: "svg-报告", permissions: ["jn_alarmConfig"], }, }, { path: "rateAnalysis", // 对风偏差分析 name: "rateAnalysis", component: () => import("@/views/rateAnalysis/index"), meta: { title: "对风偏差分析", icon: "svg-报告", permissions: ["jn_alarmConfig"], }, }, ] }, //经济运行 { path: "/economicsOperation", // redirect: // "/economicsOperation/benchmarkingManagement/performanceRankingList", // component: () => // import("@/views/economicsOperation/benchmarkingManagement"), component: () => import("@/views/economicsOperation/nxfHomePage"), name: "economicsOperation", meta: { title: "经济运行", icon: "", permissions: ["jn_economicsOperation"], }, children: [ //对标分析 { path: "benchmarkingManagement", redirect: "benchmarkingManagement/performanceRankingList", component: () => import("@/views/economicsOperation/benchmarkingManagement"), name: "benchmarkingManagement", meta: { title: "对标分析", icon: "svg-dbgl", permissions: ["jn_dbgl"], }, children: [ { path: "performanceRankingList", component: () => import( "@/views/economicsOperation/benchmarkingManagement/performanceRankingList/index.vue" ), name: "performanceRankingList", meta: { title: "绩效榜", icon: "", permissions: ["jn_dbgl_jxb"], }, }, { path: "decision1Mx", //风机绩效榜明细 name: "decision1Mx", component: () => import( "@/views/economicsOperation/benchmarkingManagement/performanceRankingList/decision1Mx.vue" ), meta: { title: "风机绩效榜明细", icon: "", permissions: ["jn_dbgl_jxb"], }, }, { path: "loseRate", component: () => import( "@/views/economicsOperation/benchmarkingManagement/loseRate/index.vue" ), name: "loseRate", meta: { title: "五项对标损失", icon: "", permissions: ["jn_dbgl_wxssl"], }, }, // { // path: "companyBenchmarking", // component: () => // import( // "@/views/economicsOperation/benchmarkingManagement/companyBenchmarking" // ), // name: "companyBenchmarking", // meta: { // title: "公司对标", // icon: "", // permissions: ["jn_dbgl_gsdb"], // }, // }, { path: "siteBenchmarking", component: () => import( "@/views/economicsOperation/benchmarkingManagement/siteBenchmarking" ), name: "siteBenchmarking", meta: { title: "场内对标", icon: "", permissions: ["jn_dbgl_cndb"], }, }, { path: "intervalBenchmarking", component: () => import( "@/views/economicsOperation/benchmarkingManagement/intervalBenchmarking" ), name: "intervalBenchmarking", meta: { title: "场际对标", icon: "", permissions: ["jn_dbgl_cjdb"], }, }, // { // path: "valueBenchmarking", // component: () => // import( // "@/views/economicsOperation/benchmarkingManagement/valueBenchmarking" // ), // name: "valueBenchmarking", // meta: { // title: "值际对标", // icon: "", // }, // }, { path: "projectBenchmarking", component: () => import( "@/views/economicsOperation/benchmarkingManagement/projectBenchmarking" ), name: "projectBenchmarking", meta: { title: "项目对标", icon: "", permissions: ["jn_dbgl_xmdb"], }, }, { path: "wiringBenchmarking", component: () => import( "@/views/economicsOperation/benchmarkingManagement/wiringBenchmarking" ), name: "wiringBenchmarking", meta: { title: "线路对标", icon: "", permissions: ["jn_dbgl_xldb"], }, }, // { // path: "singleMachineBenchmarking", // component: () => // import( // "@/views/economicsOperation/benchmarkingManagement/singleMachineBenchmarking" // ), // name: "singleMachineBenchmarking", // meta: { // title: "单机对标", // icon: "", // }, // }, ], }, //电量损失分解 { path: "thematicAnalysis", redirect: "thematicAnalysis/comprehensiveAnalysis", component: () => import("@/views/economicsOperation/thematicAnalysis"), name: "thematicAnalysis", meta: { title: "电量损失分解", icon: "svg-ztfx", permissions: ["jn_ztfx"], }, children: [ { path: "comprehensiveAnalysis", component: () => import( "@/views/economicsOperation/thematicAnalysis/comprehensiveAnalysis" ), name: "comprehensiveAnalysis", meta: { title: "综合分析", icon: "", permissions: ["jn_ztfx_zhfx"], }, }, { path: "windEnergy", component: () => import("@/views/economicsOperation/thematicAnalysis/windEnergy"), name: "windEnergy", meta: { title: "风能利用率", icon: "", permissions: ["jn_ztfx_fnlyl"], }, }, { path: "failure", component: () => import("@/views/economicsOperation/thematicAnalysis/failure"), name: "failure", meta: { title: "五项损失率", icon: "", permissions: ["jn_ztfx_wxssl"], }, }, { path: "MTBF", component: () => import("@/views/economicsOperation/thematicAnalysis/MTBF"), name: "MTBF", meta: { title: "可靠性分析", icon: "", permissions: ["jn_ztfx_kkxfx"], }, }, { path: "generation", component: () => import("@/views/economicsOperation/thematicAnalysis/generation"), name: "generation", meta: { title: "发电量分析", icon: "", permissions: ["jn_ztfx_dlfx"], }, }, // { // path: "windAnalysis", // component: () => // import("@/views/economicsOperation/thematicAnalysis/windAnalysis"), // name: "windAnalysis", // meta: { // title: "损失电量分析", // icon: "", // permissions: ["jn_ztfx_dlfx"], // }, // }, ], }, //整站分析 { path: "stationAnalyse", component: () => import("@/views/economicsOperation/stationAnalyse"), name: "StationAnalyse", meta: { title: "整站分析", icon: "svg-fddl", permissions: ["jn_czfx"], }, children: [ // { // path: "electricAnalyse", // component: () => // import( // "@/views/economicsOperation/stationAnalyse/electricAnalyse" // ), // name: "ElectricAnalyse", // meta: { // title: "发电量分析", // icon: "", // permissions: ["jn_czfx_fdlfx"], // }, // }, { path: "stationElectricAnalyse", component: () => import( "@/views/economicsOperation/stationAnalyse/stationElectricAnalyse" ), name: "StationElectricAnalyse", meta: { title: "综合场用电量分析", icon: "", permissions: ["jn_czfx_zhcydlfx"], }, }, { path: "WindAndPhotovoltaic", component: () => import( "@/views/economicsOperation/stationAnalyse/windAndPhotovoltaic" ), name: "WindAndPhotovoltaic", meta: { title: "风资源分析", icon: "", permissions: ["jn_czfx_fgzyfx"], }, }, { path: "posAnalysis", component: () => import("@/views/economicsOperation/stationAnalyse/posAnalysis/index.vue"), name: "posAnalysis", meta: { title: "微观选址分析", icon: "", permissions: ["jn_czfx_fgzyfx"], }, }, ] }, //机组分析 { path: "windAnalyse", component: () => import("@/views/economicsOperation/windAnalyse"), name: "WindAnalyse", meta: { title: "机组分析", icon: "svg-fdfx", permissions: ["jn_fdfx"], }, children: [ // { // path: "stateTransition", // component: () => // import( // "@/views/economicsOperation/windAnalyse/stateTransition/index.vue" // ), // name: "stateTransition", // meta: { // title: "状态时间分析", // icon: "", // permissions: ["jn_fdfx_ztzhfx"], // }, // }, // { // path: "timeTransition", // component: () => // import( // "@/views/economicsOperation/windAnalyse/timeTransition/index.vue" // ), // name: "timeTransition", // meta: { // title: "状态转换分析", // icon: "", // permissions: ["jn_fdfx_ztsjfx"], // }, // }, { path: "powerAnalyse", component: () => import("@/views/economicsOperation/windAnalyse/powerCurve"), name: "PowerCurve", meta: { title: "功率曲线拟合", icon: "", permissions: ["jn_fdfx_glqxnh"], }, }, { path: "powerSearch", component: () => import("@/views/economicsOperation/windAnalyse/powerSearch"), name: "PowerSearch", meta: { title: "功率曲线查询", icon: "", permissions: ["jn_fdfx_glqxcx"], }, }, { path: "qxpclfx", component: () => import( "@/views/economicsOperation/windAnalyse/qxpclfx/index.vue" ), name: "Qxpclfx", meta: { title: "曲线偏差率分析", icon: "", permissions: ["jn_fdfx_qxpclfx"], }, }, { path: "qxqjpcl", component: () => import( "@/views/economicsOperation/windAnalyse/qxqjpcl/index.vue" ), name: "Qxqjpcl", meta: { title: "曲线区间偏差率分析", icon: "", permissions: ["jn_fdfx_qxpclfx"], }, }, { path: "cutInAndOutAnalysis", component: () => import( "@/views/economicsOperation/windAnalyse/cutInAndOutAnalysis/index.vue" ), name: "CutInAndOutAnalysis", meta: { title: "切入切出分析", icon: "", permissions: ["jn_fdfx_qrqcfx"], }, }, { path: "singleWindAnasyle", component: () => import( "@/views/economicsOperation/windAnalyse/singleWindAnasyle/index.vue" ), name: "SingleWindAnasyle", meta: { title: "单机性能分析", icon: "", permissions: ["jn_fdfx_djxnfx"], }, }, { path: "monthlyAnalysis", component: () => import( "@/views/economicsOperation/windAnalyse/monthlyAnalysis/index.vue" ), name: "MonthlyAnalysis", meta: { title: "单机月度分析", icon: "", permissions: ["jn_fdfx_djydfx"], }, }, { path: "performanceAssess", component: () => import( "@/views/economicsOperation/windAnalyse/performanceAssess/index.vue" ), name: "PerformanceAssess", meta: { title: "性能等级评估", icon: "", permissions: ["jn_fdfx_xndjpg"], }, }, { path: "partsTemperatureAnalyse", // 各出力部件温度分析 name: "partsTemperatureAnalyse", component: () => import("@/views/IntegratedAlarm/reliability/partsTemperatureAnalyse/index2.vue"), meta: { title: "各出力部件温度分析", icon: "", permissions: ["jn_reliability_bjfx"], }, }, ], }, //光伏分析 // { // path: "photovoltaicAnalyse", // redirect: "analyse/standAloneAnalyse", // component: () => // import("@/views/economicsOperation/photovoltaicAnalyse"), // name: "PhotovoltaicAnalyse", // meta: { // title: "光伏分析", // icon: "svg-gffx", // permissions: ["jn_gffx"], // }, // children: [ // { // path: "gfstateTransition", // component: () => // import( // "@/views/economicsOperation/photovoltaicAnalyse/stateTransition/index.vue" // ), // name: "gfstateTransition", // meta: { // title: "状态时间分析", // icon: "", // permissions: ["jn_gffx_ztzhfx"], // }, // }, // { // path: "gftimeTransition", // component: () => // import( // "@/views/economicsOperation/photovoltaicAnalyse/timeTransition/index.vue" // ), // name: "gftimeTransition", // meta: { // title: "状态转换分析", // icon: "", // permissions: ["jn_gffx_ztsjfx"], // }, // }, // { // path: "powerHotAnalyse", // component: () => // import( // "@/views/economicsOperation/photovoltaicAnalyse/powerHotAnalyse" // ), // name: "PowerHotAnalyse", // meta: { // title: "功率曲线拟合", // icon: "", // permissions: ["jn_gffx_glwdfx"], // }, // }, // { // path: "powerAnalyse", // component: () => // import( // "@/views/economicsOperation/photovoltaicAnalyse/powerAnalyse" // ), // name: "PowerAnalyse", // meta: { // title: "功率曲线查询", // icon: "", // permissions: ["jn_gffx_glqxnh"], // }, // }, // { // path: "lslfx", // component: () => // import("@/views/economicsOperation/photovoltaicAnalyse/lslfx"), // name: "Lslfx", // meta: { // title: "离散率分析", // icon: "", // permissions: ["jn_gffx_lslfx"], // }, // }, // { // path: "prAnalyse", // component: () => // import( // "@/views/economicsOperation/photovoltaicAnalyse/prAnalyse" // ), // name: "PrAnalyse", // meta: { // title: "系统效率分析", // icon: "", // permissions: ["jn_gffx_xtxlfx"], // }, // }, // { // path: "performanceEvaluation", // component: () => // import( // "@/views/economicsOperation/photovoltaicAnalyse/performanceEvaluation" // ), // name: "PerformanceEvaluation", // meta: { // title: "性能等级评估", // icon: "", // permissions: ["jn_gffx_xndjpg"], // }, // }, // ], // }, //运维三率 { path: "efficiency", redirect: "efficiency/restorationEfficiency", component: () => import("@/views/economicsOperation/efficiency"), name: "efficiency", meta: { title: "运维三率", icon: "svg-dimension-new", permissions: ["jn_slgl"], }, children: [ { path: "restorationEfficiency", component: () => import( "@/views/economicsOperation/efficiency/restorationEfficiency" ), name: "restorationEfficiency", meta: { title: "复位及时率", icon: "", permissions: ["jn_slgl_fwjsl"], }, }, { path: "consumeEfficiency", component: () => import("@/views/economicsOperation/efficiency/consumeEfficiency"), name: "consumeEfficiency", meta: { title: "消缺及时率", icon: "", permissions: ["jn_slgl_xqjsl"], }, }, { path: "stateEfficiency", component: () => import("@/views/economicsOperation/efficiency/stateEfficiency"), name: "stateEfficiency", meta: { title: "状态转换率", icon: "", permissions: ["jn_slgl_ztzhl"], }, }, ], }, // { // path: "healthReport", // component: () => import("@/views/economicsOperation/healthReport"), // name: "healthReport", // meta: { // title: "健康评价报告", // icon: "svg-zhgk", // permissions: ["jn_slgl"], // }, // }, { path: "economicsReport", // 经济运行分析报告 name: "economicsReport", component: () => import("@/views/economicsOperation/jjyxReport"), meta: { title: "经济运行分析报告", icon: "svg-报告", permissions: ["jn_alarmConfig"], }, }, //综合管控KPI // { // path: "comprehensiveControl", // redirect: "comprehensiveControl/running", // component: () => // import("@/views/economicsOperation/comprehensiveControl"), // name: "comprehensiveControl", // meta: { // title: "综合管控KPI", // icon: "svg-zhgk", // permissions: ["jn_zhgk"], // }, // children: [ // { // path: "running", // component: () => // import( // "@/views/economicsOperation/comprehensiveControl/runningKPI/index.vue" // ), // name: "running", // meta: { // title: "运行KPI", // icon: "", // permissions: ["jn_zhgk_yx"], // }, // }, // { // path: "maintenance", // component: () => // import( // "@/views/economicsOperation/comprehensiveControl/maintenanceKPI/index.vue" // ), // name: "maintenance", // meta: { // title: "检修KPI", // icon: "", // permissions: ["jn_zhgk_jx"], // }, // }, // { // path: "stationControl", // component: () => // import( // "@/views/economicsOperation/comprehensiveControl/stationControlKPI/index.vue" // ), // name: "stationControl", // meta: { // title: "场站管控KPI", // icon: "", // permissions: ["jn_zhgk_czgk"], // }, // }, // ], // }, ], }, // 智能报表 { path: "/nxreport", meta: { title: "智能报表", icon: "", }, redirect: "/nxreport/scrb/fdcscrb", component: () => import("@/views/nxReport"), children: [ { path: "scrb", name: "scrb", redirect: "scrb/fdcscrb", component: () => import("@/views/nxReport/scrb"), meta: { title: "生产日报", icon: "svg-风光资源分析", }, children: [ { path: "fdcscrb", name: "fdcscrb", component: () => import("@/views/nxReport/scrb/fdcscrb"), meta: { title: "风电场站生产日报", icon: "", }, children: [] }, ] }, { path: "dlcsdmb", name: "dlcsdmb", component: () => import("@/views/nxReport/dlcsdmb"), meta: { title: "电量参数底码表", icon: "svg-jjyx", }, children: [ { path: "huiandlcsdmb", name: "dlcsdmb", component: () => import("@/views/nxReport/dlcsdmb/huiandlcsdmb"), meta: { title: "惠安风电场电量底码(每日)", icon: "", }, }, ] }, { path: "zbyxcsjlb", name: "zbyxcsjlb", component: () => import("@/views/nxReport/zbyxcsjlb"), meta: { title: "值班运行参数记录表", icon: "svg-matrix", }, children: [ { path: "huiansyzyxcs", name: "huiansyzyxcs", component: () => import("@/views/nxReport/zbyxcsjlb/components/huiansyzyxcs"), meta: { title: "惠安风电升压站运行参数", icon: "", }, }, { path: "huianfjyxcsyq", name: "huianfjyxcsyq", component: () => import("@/views/nxReport/zbyxcsjlb/components/huianfjyxcsyq"), meta: { title: "惠安风电一期风机运行参数", icon: "", }, }, { path: "huianfjyxcseq", name: "huianfjyxcseq", component: () => import("@/views/nxReport/zbyxcsjlb/components/huianfjyxcseq"), meta: { title: "惠安风电二期风机运行参数", icon: "", }, }, { path: "dtfjdltj", name: "dtfjdltj", component: () => import("@/views/nxReport/zbyxcsjlb/components/dtfjdltj"), meta: { title: "单台风机电量统计", icon: "", }, }, { path: "huianfddltj", name: "huianfddltj", component: () => import("@/views/nxReport/zbyxcsjlb/components/huianfddltj"), meta: { title: "惠安风电电量统计", icon: "", }, }, ] }, { path: "czzbjshjlb", name: "czzbjshjlb", component: () => import("@/views/nxReport/czzbjshjlb"), meta: { title: "场站指标及损耗记录表", icon: "svg-智能报表", }, children: [ { path: "huianfdzb", name: "huianfdzb", component: () => import("@/views/nxReport/czzbjshjlb/huianfdzb"), meta: { title: "惠安风电指标", icon: "", }, }, ] }, { path: "czzdybb", name: "czzdybb", component: () => import("@/views/nxReport/czzdybb"), meta: { title: "自定义报表", icon: "svg-自定制报表管理", }, }, // { // path: "fdscqk", // name: "fdscqk", // component: () => import("@/views/nxReport/fdscqk"), // meta: { // title: "发电生产情况快报", // icon: "svg-风光资源分析", // }, // }, // { // path: "czjbbb", // name: "czjbbb", // component: () => import("@/views/nxReport/czjbbb"), // meta: { // title: "场站级别报表", // icon: "svg-预警记录", // }, // }, // { // path: "xmjbbb", // name: "xmjbbb", // component: () => import("@/views/nxReport/xmjbbb"), // meta: { // title: "项目级别报表", // icon: "svg-报表管理", // }, // }, // { // path: "czzyb", // name: "czzyb", // component: () => import("@/views/nxReport/czzyb"), // meta: { // title: "自定义报表", // icon: "svg-自定制报表管理", // }, // }, ], }, ]; const router = createRouter({ history: createWebHashHistory(), base: "/nem/", routes: [...constantRoutes, ...asyncRoutes], }); // router.beforeEach((to, from, next) => { // next(); // }); export default router;