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: "/stateMonitor", // redirect: "/stateMonitor/lightmatrix", // component: () => import("@/views/stateMonitor"), // name: "stateMonitor", // meta: { // title: "全景监视", // icon: "", // permissions: ["jn_stateMonitor"], // }, // children: [ // { // path: "factoryMonitor/windPowerPlant", // redirect: { name: "windhome" }, // component: () => // import("@/views/stateMonitor/factoryMonitor/windPowerPlant"), // name: "windPowerPlant", // meta: { // title: "风电场站", // icon: "svg-fengdian", // permissions: ["jn_fdcz"], // }, // showChild: true, // children: [ // { // path: "windhome", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/windPowerPlant/windhome" // ), // name: "windhome", // meta: { // title: "场站监视", // icon: "svg-station-surveillance", // permissions: ["jn_fdcz_czjs"], // }, // }, // { // path: "DataTarget", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/windPowerPlant/DataTarget" // ), // name: "DataTarget", // meta: { // title: "数据指标", // icon: "svg-s指标列表", // permissions: ["jn_fdcz_sjzb"], // }, // }, // { // path: "matrixMonitor", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/windPowerPlant/matrixMonitor" // ), // name: "matrixMonitor", // meta: { // title: "矩阵监视", // icon: "svg-matrix", // permissions: ["jn_fdcz_jzjs"], // }, // }, // { // path: "draughtFan", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/windPowerPlant/draughtFan" // ), // name: "draughtFan", // meta: { // title: "风机设备", // icon: "svg-wind-site", // permissions: ["jn_fdcz_fjsb"], // }, // }, // { // path: "boosterStation", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/windPowerPlant/boosterStation" // ), // name: "boosterStation", // meta: { // title: "升压站", // icon: "svg-s升压站", // permissions: ["jn_fdcz_syz"], // }, // }, // { // path: "millivolt", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/windPowerPlant/millivolt" // ), // name: "millivolt", // meta: { // title: "电计量", // icon: "svg-djl", // permissions: ["jn_fdcz_syz"], // }, // }, // { // path: "windPower", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/windPowerPlant/windPower" // ), // name: "windPower", // meta: { // title: "测风塔", // permissions: ["jn_fdcz_cft"], // icon: "svg-s测风塔", // }, // }, // { // path: "geomorphologicMap", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/windPowerPlant/geomorphologicMap" // ), // name: "geomorphologicMap", // meta: { // title: "地貌图", // permissions: ["jn_fdcz_dmt"], // icon: "svg-s地图", // }, // }, // ], // }, // { // path: "factoryMonitor/photovoltaic", // redirect: { name: "lighthome" }, // component: () => // import("@/views/stateMonitor/factoryMonitor/photovoltaic"), // name: "photovoltaic", // meta: { // title: "光伏场站", // icon: "svg-guangfu", // permissions: ["jn_gfcz"], // }, // showChild: true, // children: [ // { // path: "lighthome", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/photovoltaic/lighthome" // ), // name: "lighthome", // meta: { // title: "场站监视", // icon: "svg-station-surveillance", // permissions: ["jn_gfcz_czjs"], // }, // }, // { // path: "lightDataTarget", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightDataTarget" // ), // name: "lightDataTarget", // meta: { // title: "数据指标", // permissions: ["jn_gfcz_sjzb"], // icon: "svg-s指标列表", // }, // }, // { // path: "lightMatrixMonitor", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightMatrixMonitor" // ), // name: "lightMatrixMonitor", // meta: { // title: "矩阵监视", // permissions: ["jn_gfcz_jzjs"], // icon: "svg-matrix", // }, // }, // { // path: "lightMatrix", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightMatrix" // ), // name: "lightMatrix", // meta: { // title: "分类矩阵", // permissions: ["jn_gfcz_fljz"], // icon: "svg-fljz", // }, // }, // { // path: "photovoltaicFacility", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/photovoltaic/photovoltaicFacility" // ), // name: "photovoltaicFacility", // meta: { // title: "光伏设备", // permissions: ["jn_gfcz_gfsb"], // icon: "svg-photovoltaic", // }, // }, // { // path: "lightBoosterStation", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightBoosterStation" // ), // name: "lightBoosterStation", // meta: { // title: "升压站", // permissions: ["jn_gfcz_syz"], // icon: "svg-s升压站", // }, // }, // { // path: "lightMillivolt", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightMillivolt" // ), // name: "lightMillivolt", // meta: { // title: "电计量", // icon: "svg-djl", // permissions: ["jn_fdcz_syz"], // }, // }, // { // path: "lightGeomorphologicMap", // component: () => // import( // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightGeomorphologicMap" // ), // name: "lightGeomorphologicMap", // meta: { // title: "地貌图", // permissions: ["jn_gfcz_dmt"], // icon: "svg-s地图", // }, // }, // ], // }, // { // path: "lightmatrix", // 基础矩阵 // name: "LightMatrix", // component: () => import("@/views/stateMonitor/LightMatrix"), // meta: { // title: "基础矩阵", // icon: "svg-matrix", // permissions: ["jn_jcjz"], // }, // }, // { // path: "detailmatrix", // 明细矩阵 // name: "DetailMatrix", // component: () => import("@/views/stateMonitor/DetailMatrix"), // meta: { // title: "明细矩阵", // icon: "svg-mx-matrix", // permissions: ["jn_mxjz"], // }, // }, // { // path: "syzmatrix", // 升压站矩阵 // name: "SYZMatrix", // component: () => import("@/views/stateMonitor/focus/syzDetails.vue"), // meta: { // title: "升压站矩阵", // icon: "svg-syz", // permissions: ["jn_syzjz"], // }, // }, // { // path: "powerPredictMatrix", // 功率预测矩阵 // name: "PowerPredictMatrix", // component: () => import("@/views/stateMonitor/powerPredictMatrix"), // meta: { // title: "功率预测矩阵", // icon: "svg-power-predict", // permissions: ["jn_glyc"], // }, // }, // { // path: "agc", // component: () => import("@/views/stateMonitor/Agc/Agc.vue"), // name: "agc", // meta: { // title: "Agc矩阵", // icon: "svg-s指标列表", // permissions: ["jn_fdcz_sjzb"], // }, // }, // { // path: "zhzb", // 综合指标统计 // name: "zhzb", // component: () => // import( // /* webpackChunkName: "status" */ "@/views/stateMonitor/zhzb/zhzb.vue" // ), // meta: { // title: "综合指标", // icon: "svg-自定制报表管理", // permissions: ["jn_zhzb"], // }, // }, // // { // // path: "factoryMonitor", // // redirect: "factoryMonitor/windPowerPlant", // // component: () => import("@/views/stateMonitor/factoryMonitor"), // // name: "factoryMonitor", // // meta: { // // title: "厂站监视", // // icon: "svg-single-station-surveillance", // // permissions: ["jn_czjs"], // // }, // // hidden: true, // // children: [ // // { // // path: "windPowerPlant", // // redirect: { name: "windhome" }, // // component: () => // // import("@/views/stateMonitor/factoryMonitor/windPowerPlant"), // // name: "windPowerPlant", // // meta: { // // title: "风电场站", // // icon: "", // // permissions: ["jn_fdcz"], // // }, // // children: [ // // { // // path: "windhome", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/windPowerPlant/windhome" // // ), // // name: "windhome", // // meta: { // // title: "场站监视", // // icon: "svg-station-surveillance", // // permissions: ["jn_fdcz_czjs"], // // }, // // }, // // { // // path: "DataTarget", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/windPowerPlant/DataTarget" // // ), // // name: "DataTarget", // // meta: { // // title: "数据指标", // // icon: "svg-s指标列表", // // permissions: ["jn_fdcz_sjzb"], // // }, // // }, // // { // // path: "matrixMonitor", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/windPowerPlant/matrixMonitor" // // ), // // name: "matrixMonitor", // // meta: { // // title: "矩阵监视", // // icon: "svg-matrix", // // permissions: ["jn_fdcz_jzjs"], // // }, // // }, // // { // // path: "draughtFan", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/windPowerPlant/draughtFan" // // ), // // name: "draughtFan", // // meta: { // // title: "风机设备", // // icon: "svg-wind-site", // // permissions: ["jn_fdcz_fjsb"], // // }, // // }, // // { // // path: "boosterStation", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/windPowerPlant/boosterStation" // // ), // // name: "boosterStation", // // meta: { // // title: "升压站", // // icon: "svg-s升压站", // // permissions: ["jn_fdcz_syz"], // // }, // // }, // // { // // path: "windPower", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/windPowerPlant/windPower" // // ), // // name: "windPower", // // meta: { // // title: "测风塔", // // permissions: ["jn_fdcz_cft"], // // icon: "svg-s测风塔", // // }, // // }, // // { // // path: "geomorphologicMap", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/windPowerPlant/geomorphologicMap" // // ), // // name: "geomorphologicMap", // // meta: { // // title: "地貌图", // // permissions: ["jn_fdcz_dmt"], // // icon: "svg-s地图", // // }, // // }, // // ], // // }, // // { // // path: "photovoltaic", // // redirect: { name: "lighthome" }, // // component: () => // // import("@/views/stateMonitor/factoryMonitor/photovoltaic"), // // name: "photovoltaic", // // meta: { // // title: "光伏场站", // // icon: "", // // permissions: ["jn_gfcz"], // // }, // // children: [ // // { // // path: "lighthome", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/photovoltaic/lighthome" // // ), // // name: "lighthome", // // meta: { // // title: "场站监视", // // icon: "svg-station-surveillance", // // permissions: ["jn_gfcz_czjs"], // // }, // // }, // // { // // path: "lightDataTarget", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightDataTarget" // // ), // // name: "lightDataTarget", // // meta: { // // title: "数据指标", // // permissions: ["jn_gfcz_sjzb"], // // icon: "svg-s指标列表", // // }, // // }, // // { // // path: "lightMatrixMonitor", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightMatrixMonitor" // // ), // // name: "lightMatrixMonitor", // // meta: { // // title: "矩阵监视", // // permissions: ["jn_gfcz_jzjs"], // // icon: "svg-matrix", // // }, // // }, // // { // // path: "lightMatrix", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightMatrix" // // ), // // name: "lightMatrix", // // meta: { // // title: "分类矩阵", // // permissions: ["jn_gfcz_fljz"], // // icon: "svg-fljz", // // }, // // }, // // { // // path: "photovoltaicFacility", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/photovoltaic/photovoltaicFacility" // // ), // // name: "photovoltaicFacility", // // meta: { // // title: "光伏设备", // // permissions: ["jn_gfcz_gfsb"], // // icon: "svg-photovoltaic", // // }, // // }, // // { // // path: "lightBoosterStation", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightBoosterStation" // // ), // // name: "lightBoosterStation", // // meta: { // // title: "升压站", // // permissions: ["jn_gfcz_syz"], // // icon: "svg-s升压站", // // }, // // }, // // { // // path: "lightGeomorphologicMap", // // component: () => // // import( // // "@/views/stateMonitor/factoryMonitor/photovoltaic/lightGeomorphologicMap" // // ), // // name: "lightGeomorphologicMap", // // meta: { // // title: "地貌图", // // permissions: ["jn_gfcz_dmt"], // // icon: "svg-s地图", // // }, // // }, // // ], // // }, // // ], // // }, // { // path: "alarmCenter", // 报警列表 // name: "alarmCenter", // component: () => import("@/views/stateMonitor/alarmCenter/commonAlarm"), // meta: { // title: "报警列表", // icon: "svg-alarm-center", // permissions: ["jn_alarm"], // }, // }, // /*{ // path: "agcmatrix", // AGC矩阵 // name: "AGCMatrix", // component: () => import("@/views/stateMonitor/focus/agcDetails"), // meta: { // title: "AGC矩阵", // icon: "svg-mx-matrix", // permissions: ["jn_mxjz"], // }, // }*/ // ], // }, //综合报警 { path: "/integratedAlarm", redirect: "/integratedAlarm/safe/realwarning", component: () => import("@/views/IntegratedAlarm"), name: "integratedAlarm", meta: { title: "综合报警", icon: "", permissions: ["jn_integratedAlarm"], }, children: [ { 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: "historyWarning", // 报警查询 name: "historyWarning", component: () => import("@/views/IntegratedAlarm/safe/historyWarning"), meta: { title: "报警查询", icon: "", permissions: ["jn_safe_bjcx"], }, }, { path: "customWarning", // 预警查询 name: "customWarning", component: () => import("@/views/IntegratedAlarm/safe/customWarning"), meta: { title: "预警查询", icon: "", permissions: ["jn_safe_yjcx"], }, }, { 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: "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-bjpz", permissions: ["jn_alarmConfig"], }, }, ], }, //经济运行 { path: "/economicsOperation", redirect: "/economicsOperation/benchmarkingManagement/performanceRankingList", component: () => import("@/views/economicsOperation/benchmarkingManagement"), 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: "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: "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: "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"], }, }, ], }, //综合管控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: "/health", // redirect: "/health/healthManagement/first", // component: () => import("@/views/HealthControl"), // name: "health", // meta: { // title: "智慧检修", // icon: "", // permissions: ["jn_health"], // }, // children: [ // { // path: "healthManagement", // component: () => import("@/views/HealthControl/healthManagement"), // name: "healthManagement", // meta: { // title: "风电健康管理", // icon: "svg-fjjkd", // permissions: ["jn_jkgl"], // }, // children: [ // { // path: "first", // component: () => // import("@/views/HealthControl/healthManagement/first/index.vue"), // name: "first", // meta: { // title: "健康推荐", // icon: "", // permissions: ["jn_jkgl_jktj"], // }, // }, // { // path: "homepage", // component: () => // import( // "@/views/HealthControl/healthManagement/homepage/index.vue" // ), // name: "homepage", // meta: { // title: "健康首页", // icon: "", // permissions: ["jn_jkgl_jksy"], // }, // }, // { // path: "overview", // component: () => // import( // "@/views/HealthControl/healthManagement/overview/index.vue" // ), // name: "overview", // meta: { // title: "健康总览", // icon: "", // permissions: ["jn_jkgl_jkzl"], // }, // }, // { // path: "healthMatrix", // component: () => // import( // "@/views/HealthControl/healthManagement/healthMatrix/index.vue" // ), // name: "healthMatrix", // meta: { // title: "健康矩阵", // icon: "", // permissions: ["jn_jkgl_jkjz"], // }, // }, // { // path: "healthList", // component: () => // import( // "@/views/HealthControl/healthManagement/healthList/index.vue" // ), // name: "healthList", // meta: { // title: "健康列表", // icon: "", // permissions: ["jn_jkgl_jklb"], // }, // }, // { // path: "badStateAnalyse/:wpId/:wtId", // component: () => // import( // "@/views/HealthControl/healthManagement/badStateAnalyse/index.vue" // ), // name: "badStateAnalyse", // meta: { // title: "劣化状态分析", // icon: "", // permissions: ["jn_jkgl_lhztfx"], // }, // }, // // { // // path: "wtSaturability", // // component: () => // // import( // // "@/views/HealthControl/healthManagement/wtSaturability/index.vue" // // ), // // name: "wtSaturability", // // meta: { // // title: "单机饱和度", // // icon: "", // // permissions: ["jn_nxfx_djbhd"], // // }, // // }, // { // path: "temperatureAnalysis", // component: () => // import( // "@/views/HealthControl/healthManagement/temperatureAnalysis/index.vue" // ), // name: "temperatureAnalysis", // meta: { // title: "部件温度分析", // icon: "", // permissions: ["jn_jkgl_bjwd"], // }, // }, // ], // }, // { // path: "gfHealthManagement", // component: () => import("@/views/HealthControl/gfHealthManagement"), // name: "gfHealthManagement", // meta: { // title: "光伏健康管理", // icon: "svg-gfjkd", // permissions: ["jn_gfjkgl"], // }, // }, // // { // // path: "energyEfficAnalyse", // // redirect: "energyEfficAnalyse/healthPowerCurve", // // component: () => import("@/views/HealthControl/energyEfficAnalyse"), // // name: "energyEfficAnalyse", // // meta: { // // title: "能效分析", // // icon: "svg-能效分析", // // permissions: ["jn_nxfx"], // // }, // // children: [ // // { // // path: "evaluationAnalysis", // // component: () => // // import( // // "@/views/HealthControl/energyEfficAnalyse/evaluationAnalysis/index.vue" // // ), // // name: "evaluationAnalysis", // // meta: { // // title: "预警评判分析", // // icon: "", // // permissions: ["jn_nxfx_yjpp"], // // }, // // }, // // { // // path: "malfunctionAnalysis", // // component: () => // // import( // // "@/views/HealthControl/energyEfficAnalyse/malfunctionAnalysis/index.vue" // // ), // // name: "malfunctionAnalysis", // // meta: { // // title: "故障评判分析", // // icon: "", // // permissions: ["jn_nxfx_gzpp"], // // }, // // }, // // { // // path: "powerAnalysis", // // component: () => // // import( // // "@/views/HealthControl/energyEfficAnalyse/powerAnalysis/index.vue" // // ), // // name: "powerAnalysis", // // meta: { // // title: "部件功率分析", // // icon: "", // // permissions: ["jn_nxfx_gzpp"], // // }, // // }, // // ], // // }, // { // path: "healthDetail", // redirect: "healthDetail/wpHealth", // component: () => import("@/views/HealthControl/healthDetail"), // name: "healthDetail", // hidden: true, // meta: { // title: "健康详情", // icon: "", // permissions: ["jn_jkgl"], // }, // children: [ // { // path: "wpHealth/:wpId/:wpName?", // 场站健康管理 // name: "health3", // component: () => // import("@/views/HealthControl/healthDetail/wpHealth"), // meta: { // title: "场站健康管理", // icon: "", // permissions: ["jn_jkgl"], // }, // }, // { // path: "wtHealth/:wpId/:wtId", //设备健康详情 // name: "health0", // component: () => // import("@/views/HealthControl/healthDetail/wtHealth"), // meta: { // title: "设备健康详情", // icon: "", // permissions: ["jn_jkgl"], // }, // }, // { // path: "healthTrend/:wpId/:wtId", //设备健康详情 // name: "healthTrend", // component: () => // import("@/views/HealthControl/healthDetail/healthTrend"), // meta: { // title: "健康趋势", // icon: "", // permissions: ["jn_jkgl"], // }, // }, // { // path: "badState/:wpId/:wtId", //设备健康详情 // name: "", // component: () => // import("@/views/HealthControl/healthManagement/badStateAnalyse"), // meta: { // title: "劣化状态分析曲线", // icon: "", // permissions: ["jn_jkgl"], // }, // }, // ], // }, // ], // }, // 智能报表 { path: "/report", redirect: "/report/gkjlb", meta: { title: "智能报表", icon: "", }, children: [ { path: "gkjlb", name: "gkjlb", component: () => import("@/views/nxReport/gkjlb"), meta: { title: "关口计量表", icon: "svg-可靠性分析", }, children: [] }, { path: "erp", name: "erp", component: () => import("@/views/nxReport/erp"), meta: { title: "erp", icon: "svg-jjyx", }, }, { path: "zhbb", name: "zhbb", component: () => import("@/views/nxReport/zhbb"), meta: { title: "公司日综合报表", icon: "svg-matrix", }, }, { path: "yxqk", name: "yxqk", component: () => import("@/views/nxReport/yxqk"), meta: { title: "运行情况日报", icon: "svg-智能报表", }, }, { path: "fdscqk", name: "fdscqk", component: () => import("@/views/nxReport/fdscqk"), meta: { title: "发电生产情况快报", icon: "svg-风光资源分析", }, }, { path: "pjfs", name: "pjfs", component: () => import("@/views/nxReport/pjfs"), 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;