import Vue from 'vue'
import Router from 'vue-router'
import '@/assets/iconfont/iconfont.css'

// 主要
import main from '@/components/main.vue'
// 计量单位信息维护
import measurementUnit from '@/views/basicInformation/components/measurementUnit.vue'
// 能介大类信息维护
import energyMediumClass from '@/views/basicInformation/components/energyMediumClass.vue'
// 能介信息维护
import energyMedium from '@/views/basicInformation/components/energyMedium.vue'
// 能介价格维护
import energyPrice from '@/views/basicInformation/components/energyPrice.vue'
// 工厂信息维护
import factoryInformation from '@/views/basicInformation/components/factoryInformation.vue'
// 工序信息维护
import processInformation from '@/views/basicInformation/components/processInformation.vue'
// 位置单元维护
import locationUnit from '@/views/basicInformation/components/locationUnit.vue'
// 能源属性维护
import energyAttribute from '@/views/basicInformation/components/energyAttribute.vue'
// 计量点信息维护
import measurementPlace from '@/views/basicInformation/components/measurementPlace.vue'
// 站所信息维护
import siteInformation from '@/views/basicInformation/components/siteInformation.vue'
// 时间粒度维护
import timeGranularity from '@/views/basicInformation/components/timeGranularity.vue'
// 时间序列维护
import timeSeries from '@/views/basicInformation/components/timeSeries.vue'
// 产品信息维护
import productInformation from '@/views/basicInformation/components/configurationRelationship/productInformation.vue'
// 原材料信息维护
import rawMaterial from '@/views/basicInformation/components/configurationRelationship/rawMaterial.vue'
// 工序与原材料关联
import processAndMaterial from '@/views/basicInformation/components/configurationRelationship/processAndMaterial.vue'
// 实绩工序与产品关联
import processAndProduct from '@/views/basicInformation/components/configurationRelationship/processAndProduct.vue'
// 计划工序与产品关联
import planProcessAndProduct from '@/views/basicInformation/components/configurationRelationship/planProcessAndProduct.vue'
// 外供用电地点维护
import electricityLocation from '@/views/basicInformation/components/electricityLocation.vue'
// 外供用电地点维护-分支
import electricityLocation2 from '@/views/basicInformation/components/electricityLocation2.vue'
// 环保设施标准维护
import hbjkbz from '@/views/basicInformation/components/hbjkbz.vue'
// 能源上报项目维护
import energyType from '@/views/basicInformation/components/energyType'
// 指标用途维护
import indexItemType from '@/views/basicInformation/components/indexItemType.vue'
// 公式维护
import equationMaintain from '@/views/basicInformation/components/equationMaintain.vue'
// 能源监控实时标准
import nyjkbz from '@/views/basicInformation/components/nyjkbz.vue'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'main',
        component: main,
        redirect: {
            name: 'measurementUnit'
        },
        children: [
            {
                path: 'measurementUnit',
                name: 'measurementUnit',
                component: measurementUnit
            },
            {
                path: 'energyMediumClass',
                name: 'energyMediumClass',
                component: energyMediumClass
            },
            {
                path: 'energyMedium',
                name: 'energyMedium',
                component: energyMedium
            },
            {
                path: 'energyPrice',
                name: 'energyPrice',
                component: energyPrice
            },
            {
                path: 'factoryInformation',
                name: 'factoryInformation',
                component: factoryInformation
            },
            {
                path: 'processInformation',
                name: 'processInformation',
                component: processInformation
            },
            {
                path: 'locationUnit',
                name: 'locationUnit',
                component: locationUnit
            },
            {
                path: 'energyAttribute',
                name: 'energyAttribute',
                component: energyAttribute
            },
            {
                path: 'measurementPlace',
                name: 'measurementPlace',
                component: measurementPlace
            },
            {
                path: 'siteInformation',
                name: 'siteInformation',
                component: siteInformation
            },
            {
                path: 'timeGranularity',
                name: 'timeGranularity',
                component: timeGranularity
            },
            {
                path: 'timeSeries',
                name: 'timeSeries',
                component: timeSeries
            },
            {
                path: 'electricityLocation',
                name: 'electricityLocation',
                component: electricityLocation
            },
            {
                path: 'electricityLocation2',
                name: 'electricityLocation2',
                component: electricityLocation2
            },
            {
                path: 'hbjkbz',
                name: 'hbjkbz',
                component: hbjkbz
            },
            {
                path: 'productInformation',
                name: 'productInformation',
                component: productInformation
            },
            {
                path: 'rawMaterial',
                name: 'rawMaterial',
                component: rawMaterial
            },
            {
                path: 'processAndMaterial',
                name: 'processAndMaterial',
                component: processAndMaterial
            },
            {
                path: 'processAndProduct',
                name: 'processAndProduct',
                component: processAndProduct
            },
            {
                path: 'planProcessAndProduct',
                name: 'planProcessAndProduct',
                component: planProcessAndProduct
            },
            {
                path: 'energytype',
                name: 'energytype',
                component: energyType
            },
            {
                path: 'indexItemType',
                name: 'indexItemType',
                component: indexItemType
            },
            {
                path: 'equationMaintain',
                name: 'equationMaintain',
                component: equationMaintain
            },
            {
                path: 'nyjkbz',
                name: 'nyjkbz',
                component: nyjkbz
            }
        ]
    }]
})
