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

// 主要
import main from '@/components/main.vue'
// 能源上报_晋泰信和
import usageData from '@/views/systemInterface/components/usageData.vue'
// 能耗数据管理
import energyDepletion from '@/views/systemInterface/components/energyDepletion.vue'
// 仪表数据实时查询
import getCorDas from '@/views/systemInterface/components/getCorDas.vue'
// 能源仪表数据查询
import emsMeterData from '@/views/systemInterface/components/emsMeterData.vue'
// 环保设施涉外监控数据展示
import hbData from '@/views/systemInterface/components/hbData.vue'
// 能源监控数据展示
import coreDasData from '@/views/systemInterface/components/coreDasData.vue'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'main',
        component: main,
        redirect: {
            name: 'usageData'
        },
        children: [
            {
                path: 'usageData',
                name: 'usageData',
                component: usageData
            },
            {
                path: 'energyDepletion',
                name: 'energyDepletion',
                component: energyDepletion
            },
            {
                path: 'getCorDas',
                name: 'getCorDas',
                component: getCorDas
            },
            {
                path: 'emsMeterData',
                name: 'emsMeterData',
                component: emsMeterData
            },
            {
                path: 'hbData',
                name: 'hbData',
                component: hbData
            },
            {
                path: 'coreDasData',
                name: 'coreDasData',
                component: coreDasData
            }
        ]
    }]
})
