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

// 主要
import main from '@/components/main.vue'
// 平衡表项目维护
import balanceSheetItem from '@/views/energyBalance/components/balanceSheetItem.vue'
// 折算系数维护
import rate from '@/views/energyBalance/components/rate.vue'
// 实绩产量管理
import production from '@/views/energyBalance/components/production.vue'
// 平衡表数据维护
import balanceData from '@/views/energyBalance/components/balanceData.vue'
// 平衡表数据维护(人工干预-新水)
import balanceSheetData from '@/views/energyBalance/components/balanceSheetData.vue'
// 工序与原材料数据维护
import processAndRawMaterials from '@/views/energyBalance/components/processAndRawMaterials.vue'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'main',
        component: main,
        redirect: {
            name: 'balanceSheetItem'
        },
        children: [
            {
                path: 'balanceSheetItem',
                name: 'balanceSheetItem',
                component: balanceSheetItem
            },
            {
                path: 'rate',
                name: 'rate',
                component: rate
            },
            {
                path: 'production',
                name: 'production',
                component: production
            },
            {
                path: 'balanceSheetData',
                name: 'balanceSheetData',
                component: balanceSheetData
            },
            {
                path: 'processAndRawMaterials',
                name: 'processAndRawMaterials',
                component: processAndRawMaterials
            },
            {
                path: 'balanceData',
                name: 'balanceData',
                component: balanceData
            }
        ]
    }]
})
