import Vue from 'vue' import Router from 'vue-router' import Login from './views/Login.vue' import Register from './views/Register.vue' import NotFound from './views/404.vue' import Home from './views/Home.vue' import PdfView from './views/pdf/pdfview'; //课程管理 import courselist from './views/coursemanagement/list'; import lecturerList from './views/lecturerManagement/index.vue' import offlineTraining from './views/offlineTraining/offlineTraining.vue' import gcpCertification from './views/gcpCertification/gcpCertification.vue' import offlineRegistration from './views/offlineRegistration/registration.vue' import hotTopicCarousel from './views/hotTopicCarousel/hotTopicCarousel.vue' import myMessage from './views/myMessage/myMessage.vue' import customerServiceCenter from './views/customerServiceCenter/customerServiceCenter.vue' // 考试管理 import examCertification from './views/examinationManagement/examCertification.vue' // 考试拿证流程介绍 import examinationInformation from './views/examinationManagement/examinationInformation.vue' // 考试信息管理 Vue.use(Router) export const allRouters = [ { path: '/login', component: Login, name: '', hidden: true }, { path: '/register', component: Register, name: '', hidden: true }, { path: '/viewonline', component: PdfView, name: '', hidden: true }, { path: '/courselist', component: Home, name: '课程管理', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/courselist', component: courselist, name: '课程管理' } ] }, { path: '/lecturer', component: Home, name: '讲师管理', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/lecturer', component: lecturerList, name: '讲师管理' } ] }, { path: '/hotTopic-carousel', component: Home, name: '轮播热点内容', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/hotTopic-carousel', component: hotTopicCarousel, name: '轮播热点内容' } ] }, { path: '/gcpc-certification', component: Home, name: 'GCP证书展示', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/gcpc-certification', component: gcpCertification, name: 'GCP证书展示' } ] }, { path: '/', component: Home, name: '考试管理', iconCls: 'iconfont firerock-iconsetting', leaf: false,//只有一个节点 children: [ { path: '/exam-certification', component: examCertification, name: '考试拿证流程介绍' }, { path: '/examination-information', component: examinationInformation, name: '考试信息管理' }, { path: '/exam-certification', component: examCertification, name: '考试报名审核' }, { path: '/exam-certification', component: examCertification, name: '考试结果管理' }, { path: '/exam-certification', component: examCertification, name: '证书管理' }, ] }, { path: '/', component: Home, name: '研修班管理', iconCls: 'iconfont firerock-iconsetting', leaf: false,//只有一个节点 children: [ { path: '/offline-training', component: offlineTraining, name: '线下研修班' }, { path: '/offline-registration', component: offlineRegistration, name: '线下研修班报名' }, { path: '/offline-registration', component: offlineRegistration, name: '学员名单表格' }, { path: '/offline-registration', component: offlineRegistration, name: '学员缴费情况表' }, ] }, { path: '/', component: Home, name: '用户与消息管理', iconCls: 'iconfont firerock-iconsetting', leaf: false,//只有一个节点 children: [ { path: '/my-message', component: myMessage, name: '我的消息' }, { path: '/customer-service-center', component: customerServiceCenter, name: '客服中心' }, { path: '/my-message', component: myMessage, name: '用户管理' }, ] }, { path: '/', component: Home, name: '订单与财务管理', iconCls: 'iconfont firerock-iconsetting', leaf: false,//只有一个节点 children: [ { path: '/my-message', component: myMessage, name: '订单管理' }, { path: '/customer-service-center', component: customerServiceCenter, name: '电子发票登记表' }, ] }, { path: '/404', component: NotFound, name: '', hidden: true }, { path: '*', hidden: true, redirect: { path: '/404' } } ] export default new Router({ routes: allRouters })