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

// 主要
import main from '@/components/main.vue'
// 准点数据查询
import measuringLocationQuery from '@/views/energyScheduling/components/measuringLocationData/measuringLocationQuery.vue'
// 计量点数据录入
import measuringLocationEntry from '@/views/energyScheduling/components/measuringLocationData/measuringLocationEntry.vue'
// 异常数据维护
import AbnormalDataMaintenance from '@/views/energyScheduling/components/measuringLocationData/AbnormalDataMaintenance.vue'
// 计量点数据录入-分厂
import manualmeasuringLocationEntry from '@/views/energyScheduling/components/measuringLocationData/manualmeasuringLocationEntry.vue'
// 总值班长调度日志
import squadLeader from '@/views/energyScheduling/components/dispatchingLog/squadLeader.vue'
// 动力调度交接班日志
import power from '@/views/energyScheduling/components/dispatchingLog/power.vue'
// 电力调度交接班日志
import electric from '@/views/energyScheduling/components/dispatchingLog/electric.vue'
// 水道调度交接班日志
import water from '@/views/energyScheduling/components/dispatchingLog/water.vue'
// 能源调度日志
import energyDispatch from '@/views/energyScheduling/components/dispatchingLog/energyDispatch.vue'
// 计量点人工录入
import measuringManualEntry from '@/views/energyScheduling/components/meterManage/measuringManualEntry.vue'
// 计量点数据录入十分钟
import measuringLocationQueryTiming from '@/views/energyScheduling/components/measuringLocationData/measuringLocationQueryTiming.vue'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'main',
        component: main,
        redirect: {
            name: 'measuringLocationQuery'
        },
        children: [
            {
                path: 'measuringLocationQuery',
                name: 'measuringLocationQuery',
                component: measuringLocationQuery
            },
            {
                path: 'measuringLocationEntry',
                name: 'measuringLocationEntry',
                component: measuringLocationEntry
            },
            {
                path: 'manualmeasuringLocationEntry',
                name: 'manualmeasuringLocationEntry',
                component: manualmeasuringLocationEntry
            },
            {
                path: 'squadLeader',
                name: 'squadLeader',
                component: squadLeader
            },
            {
                path: 'power',
                name: 'power',
                component: power
            },
            {
                path: 'electric',
                name: 'electric',
                component: electric
            },
            {
                path: 'water',
                name: 'water',
                component: water
            },
            {
                path: 'energyDispatch',
                name: 'energyDispatch',
                component: energyDispatch
            },
            {
                path: 'measuringManualEntry',
                name: 'measuringManualEntry',
                component: measuringManualEntry
            },
            {
                path: 'AbnormalDataMaintenance',
                name: 'AbnormalDataMaintenance',
                component: AbnormalDataMaintenance
            },
            {
                path: 'measuringLocationQueryTiming',
                name: 'measuringLocationQueryTiming',
                component: measuringLocationQueryTiming
            }
        ]
    }]
})
