import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

export default new Router({
    routes:[
        {
            path: '/',
            name: 'mainView',
            component: resolve => require(['../mainView.vue'], resolve)
        },
        {
            path: '/login',
            name: 'login',
            component: resolve => require(['../components/login/login.vue'], resolve)
        },
        {
            path: '/home',
            name: 'home',
            component: resolve => require(['../Home.vue'], resolve),
            children: [
                // 信创联盟
                {
                    path: '/XCalliance',
                    name: 'XCalliance',
                    component: resolve => require(['../components/XCalliance/XCalliance/XCalliance.vue'], resolve)
                },
                // 信创联盟动态列表
                {
                    path: '/dynamicList',
                    name: 'dynamicList',
                    component: resolve => require(['../components/XCalliance/dynamicList/dynamicList.vue'], resolve)
                },
                // 信创联盟新闻页
                {
                    path: '/newsPage',
                    name: 'newsPage',
                    component: resolve => require(['../components/XCalliance/newsPage/newsPage.vue'], resolve)
                },
                // 政企校一体化
                {
                    path: '/integration',
                    name: 'integration',
                    component: resolve => require(['../components/integration/integration/integration.vue'], resolve)
                },
                // 政企校动态列表
                {
                    path: '/ZdynamicList',
                    name: 'ZdynamicList',
                    component: resolve => require(['../components/integration/dynamicList/dynamicList.vue'], resolve)
                },
                // 政企校新闻页
                {
                    path: '/ZnewsPage',
                    name: 'ZnewsPage',
                    component: resolve => require(['../components/integration/newsPage/newsPage.vue'], resolve)
                },
                // 基础资料管理-角色管理
                {
                    path: '/role',
                    name: 'role',
                    component: resolve => require(['../components/basicInformation/role/role.vue'], resolve)
                },
                // 基础资料管理-人员管理
                {
                    path: '/person',
                    name: 'person',
                    component: resolve => require(['../components/basicInformation/person/person.vue'], resolve)
                },
                // 基础资料管理-人员信息
                {
                    path: '/personPage',
                    name: 'personPage',
                    component: resolve => require(['../components/basicInformation/person/personPage.vue'], resolve)
                },
                // 基础资料管理-单位管理
                {
                    path: '/company',
                    name: 'company',
                    component: resolve => require(['../components/basicInformation/company/company.vue'], resolve)
                },
                // 基础资料管理-单位信息
                {
                    path: '/companyDetails',
                    name: 'companyDetails',
                    component: resolve => require(['../components/basicInformation/company/companyDetails.vue'], resolve)
                },
                // 基础资料管理-单位信息
                {
                    path: '/product',
                    name: 'product',
                    component: resolve => require(['../components/admittance/product/product.vue'], resolve)
                },
            ]
        }
    ]
})
