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

// 主要
import main from '@/components/main.vue'
// 停复役单编制
import SSDCompile from '@/views/energyOperationSupport/components/startStopDocuments/SSDCompile.vue'
// 停复役单审批
import SSDApproval from '@/views/energyOperationSupport/components/startStopDocuments/SSDApproval.vue'
// 停复役单查询
import SSDQuery from '@/views/energyOperationSupport/components/startStopDocuments/SSDQuery.vue'
// 运方单编制
import PWODCompile from '@/views/energyOperationSupport/components/powerWaterOperationDocuments/PWODCompile.vue'
// 运方单签收
import PWODSignFor from '@/views/energyOperationSupport/components/powerWaterOperationDocuments/PWODSignFor.vue'
// 运方单执行
import PWODPerform from '@/views/energyOperationSupport/components/powerWaterOperationDocuments/PWODPerform.vue'
// 运方单查询
import PWODQuery from '@/views/energyOperationSupport/components/powerWaterOperationDocuments/PWODQuery.vue'
// 电力运方单编制
import EODCompile from '@/views/energyOperationSupport/components/electricityOperationDocuments/EODCompile.vue'
// 电力运方单签收
import EODSignFor from '@/views/energyOperationSupport/components/electricityOperationDocuments/EODSignFor.vue'
// 电力运方单执行
import EODPerform from '@/views/energyOperationSupport/components/electricityOperationDocuments/EODPerform.vue'
// 电力运方单查询
import EODQuery from '@/views/energyOperationSupport/components/electricityOperationDocuments/EODQuery.vue'
// 预案文档目录管理
import APDocumentDirectory from '@/views/energyOperationSupport/components/accidentPlan/APDocumentDirectory.vue'
// 预案文档管理
import APDocument from '@/views/energyOperationSupport/components/accidentPlan/APDocument.vue'
// 整改单编制
import rectificationCompile from '@/views/energyOperationSupport/components/rectificationPunishmentTube/rectificationCompile.vue'
// 整改单查询
import rectificationQuery from '@/views/energyOperationSupport/components/rectificationPunishmentTube/rectificationQuery.vue'
// 处罚单编制
import punishmentCompile from '@/views/energyOperationSupport/components/rectificationPunishmentTube/punishmentCompile.vue'
// 处罚单查询
import punishmentQuery from '@/views/energyOperationSupport/components/rectificationPunishmentTube/punishmentQuery.vue'
// 能源介质管网变更编制
import tubeCompile from '@/views/energyOperationSupport/components/rectificationPunishmentTube/tubeCompile.vue'
// 能源介质管网变更查询
import tubeQuery from '@/views/energyOperationSupport/components/rectificationPunishmentTube/tubeQuery.vue'

Vue.use(Router)

export default new Router({
    routes: [{
        path: '/',
        name: 'main',
        component: main,
        redirect: {
            name: 'SSDCompile'
        },
        children: [
            {
                path: 'SSDCompile',
                name: 'SSDCompile',
                component: SSDCompile
            },
            {
                path: 'SSDApproval',
                name: 'SSDApproval',
                component: SSDApproval
            },
            {
                path: 'SSDQuery',
                name: 'SSDQuery',
                component: SSDQuery
            },
            {
                path: 'PWODCompile',
                name: 'PWODCompile',
                component: PWODCompile
            },
            {
                path: 'PWODSignFor',
                name: 'PWODSignFor',
                component: PWODSignFor
            },
            {
                path: 'PWODPerform',
                name: 'PWODPerform',
                component: PWODPerform
            },
            {
                path: 'PWODQuery',
                name: 'PWODQuery',
                component: PWODQuery
            },
            {
                path: 'EODCompile',
                name: 'EODCompile',
                component: EODCompile
            },
            {
                path: 'EODSignFor',
                name: 'EODSignFor',
                component: EODSignFor
            },
            {
                path: 'EODPerform',
                name: 'EODPerform',
                component: EODPerform
            },
            {
                path: 'EODQuery',
                name: 'EODQuery',
                component: EODQuery
            },
            {
                path: 'APDocumentDirectory',
                name: 'APDocumentDirectory',
                component: APDocumentDirectory
            },
            {
                path: 'APDocument',
                name: 'APDocument',
                component: APDocument
            },
            {
                path: 'rectificationCompile',
                name: 'rectificationCompile',
                component: rectificationCompile
            },
            {
                path: 'rectificationQuery',
                name: 'rectificationQuery',
                component: rectificationQuery
            },
            {
                path: 'punishmentCompile',
                name: 'punishmentCompile',
                component: punishmentCompile
            },
            {
                path: 'punishmentQuery',
                name: 'punishmentQuery',
                component: punishmentQuery
            },
            {
                path: 'tubeCompile',
                name: 'tubeCompile',
                component: tubeCompile
            },
            {
                path: 'tubeQuery',
                name: 'tubeQuery',
                component: tubeQuery
            }
        ]
    }]
})
