/*
 * @Date: 2023-06-18 10:09:15
 * @LastEditors: zhubj
 * @LastEditTime: 2023-06-19 17:01:11
 * @Description: 头部注释
 * @FilePath: \own-vue3-vuecli-template\src\router\index.js
 */
import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: '/login',
        name: 'login',
        meta: {
            title: '登录',
        },
        component: () => import('../views/login/index.vue')
    },
    {
        path: '/',
        redirect: '/login'
    },
    {
            path: '/home',
            name: 'homePage',
            meta: {
                title: '首页',
            },
            component: () =>
                import(
                    '../views/home/index.vue'
                ),
    },
    {
        path: '/404',
        component: () => import('../views/error/404.vue')
    },
    {
        path: '/:catchAll(.*)',
        redirect: '/404'
        },
    //功率预测相关页面
    {
        path: '/powerPrediction/index',
        name: 'powerPredictionIndex',
        meta: {
            title: '概要',
        },
        component: () =>
            import(
                '../views/powerPrediction/homePageNoMap.vue'
            ),
    },
    {
        path: '/powerPrediction/panoramicPower',
        name: 'panoramicPower',
        meta: {
            title: '全景功率',
        },
        component: () =>
            import(
                '../views/powerPrediction/panoramicPower.vue'
            ),
    },
    {
        path: '/powerPrediction/power',
        name: 'powerPre',
        meta: {
            title: '功率预测',
        },
        component: () =>
            import(
                '../views/powerPrediction/powerPredictionPage.vue'
            ),
    },
    {
        path: '/powerPrediction/batteryDiviner',
        name: 'batteryDiviner',
        meta: {
            title: '电量预测',
        },
        component: () =>
            import(
                '../views/powerPrediction/batteryDivinerPage.vue'
            ),
    },
    {
        path: '/powerPrediction/weather',
        name: 'weatherPage',
        meta: {
            title: '天气预报',
        },
        component: () =>
            import(
                '../views/powerPrediction/weatherPage.vue'
            ),
    },
    {
    path: '/powerPrediction/statisticalSummary',
    name: 'statisticalSummary',
    meta: {
        title: '统计汇总',
    },
    component: () =>
        import(
            '../views/powerPrediction/statisticalSummaryPage.vue'
        ),
    },
    //智能报表
    {
        path: "/intelligentReport/gkjlb",
        name: "intelligentReportgkjlb",
        meta: {
            title: "关口计量表",
        },
        component: () => import("../views/intelligentReporting/gkjlb/index.vue"),
    },
    {
        path: "/intelligentReport/erp",
        name: "intelligentReporterp",
        meta: {
            title: "ERP",
        },
        component: () => import("../views/intelligentReporting/erp/index.vue"),
    },
    {
        path: "/intelligentReport/czzyb",
        name: "intelligentReportczzyb",
        meta: {
            title: "场站自由报表",
        },
        component: () => import("../views/intelligentReporting/czzyb/index.vue"),
    },
    {
        path: "/intelligentReport/zhbb",
        name: "intelligentReportzhbb",
        meta: {
            title: "国能陕西新能源公司综合报表",
        },
        component: () => import("../views/intelligentReporting/zhbb/index.vue"),
    },
    {
        path: "/intelligentReport/yxqk",
        name: "intelligentReportyxqk",
        meta: {
            title: "运行情况日报表",
        },
        component: () => import("../views/intelligentReporting/yxqk/index.vue"),
    },
    {
        path: "/intelligentReport/fyfsdl",
        name: "intelligentReportfyfsdl",
        meta: {
            title: "分月分时电量统计",
        },
        component: () => import("../views/intelligentReporting/fyfsdl/index.vue"),
    },
    {
        path: "/intelligentReport/fdscqk",
        name: "intelligentReportfdscqk",
        meta: {
            title: "发电生产情况快报表",
        },
        component: () => import("../views/intelligentReporting/fdscqk/index.vue"),
    },
    {
        path: "/intelligentReport/pjfs",
        name: "intelligentReportpjfs",
        meta: {
            title: "集控中心日平均风速统计表",
        },
        component: () => import("../views/intelligentReporting/pjfs/index.vue"),
    },
    {
        path: "/intelligentReport/reporting",
        name: "intelligentReportreporting",
        meta: {
            title: "报表上报",
        },
        component: () => import("../views/intelligentReporting/reporting/index.vue"),
    },
    {
        path: "/intelligentReport/scriptgeneration",
        name: "intelligentReportscriptgeneration",
        meta: {
            title: "报表脚本",
        },
        component: () => import("../views/intelligentReporting/scriptgeneration/index.vue"),
    },
    //发电能力分析
    {
        path: "/generatingCap/dataFilter/prepare",
        name: "dataFilterPrepare",
        meta: {
            title: "风电数据准备",
        },
        component: () => import("../views/generatingCapacity/dataFilter/prepare/index.vue"),
    },
    {
        path: "/generatingCap/dataFilter/process",
        name: "dataFilterProcess",
        meta: {
            title: "风电数据处理",
        },
        component: () => import("../views/generatingCapacity/dataFilter/process/index.vue"),
    },
    {
        path: "/generatingCap/dataAnalysis/combine",
        name: "dataAnalysisCombine",
        meta: {
            title: "功率曲线拟合分析",
        },
        component: () => import("../views/generatingCapacity/dataAnalysis/combine/index.vue"),
    },
    {
        path: "/generatingCap/dataAnalysis/rateAnalysis",
        name: "dataAnalysisRateAnalysis",
        meta: {
            title: "对风偏差分析",
        },
        component: () => import("../views/generatingCapacity/dataAnalysis/rateAnalysis/index.vue"),
    },
    {
        path: "/generatingCap/dataAnalysis/lineAnalysis",
        name: "dataAnalysisLineAnalysis",
        meta: {
            title: "曲线偏差率分析",
        },
        component: () => import("../views/generatingCapacity/dataAnalysis/lineAnalysis/index.vue"),
    },
    {
        path: "/generatingCap/dataAnalysis/hotAnalysis",
        name: "dataAnalysisthotAnalysis",
        meta: {
            title: "温度与功率分析",
        },
        component: () => import("../views/generatingCapacity/dataAnalysis/hotAnalysis/index.vue"),
    },
    {
        path: "/generatingCap/dataAnalysis/windAnalysis",
        name: "dataAnalysisWindAnalysis",
        meta: {
        title: "损失电量分析",
        },
        component: () =>
        import("../views/generatingCapacity/dataAnalysis/windAnalysis/index.vue"),
    },
    {
        path: "/generatingCap/dataAnalysis/posAnalysis",
        name: "dataAnalysisPosAnalysis",
        meta: {
        title: "微观选址分析",
        },
        component: () =>
        import("../views/generatingCapacity/dataAnalysis/posAnalysis/index.vue"),
    },
    {
        path: "/generatingCap/dataAnalysis/spaceAnalysis",
        name: "dataAnalysisspaceAnalysis",
        meta: {
        title: "毛容量分析",
        },
        component: () =>
        import("../views/generatingCapacity/dataAnalysis/spaceAnalysis/index.vue"),
    },
    {
        path: "/generatingCap/dataAnalysis/angleAnalysis",
        name: "dataAnalysisAngleAnalysis",
        meta: {
        title: "浆距角分析",
        },
        component: () =>
        import("../views/generatingCapacity/dataAnalysis/angleAnalysis/index.vue"),
    },
    {
        path: "/generatingCap/dataAnalysis/agcAnalysis",
        name: "dataAnalysisAgcAnalysis",
        meta: {
        title: "AGC曲线偏差分析",
        },
        component: () =>
        import("../views/generatingCapacity/dataAnalysis/agcAnalysis/index.vue"),
    },
    {
        path: "/generatingCap/dataAnalysis/analysisReport",
        name: "dataAnalysisAnalysisReport",
        meta: {
        title: "分析报告",
        },
        component: () =>
        import("../views/generatingCapacity/report/index.vue"),
    },
]

const router = createRouter({
    //   history: createWebHistory(process.env.BASE_URL),
    history: createWebHashHistory(''),
  routes
})

export default router
