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 gcpCertification from './views/gcpCertification/gcpCertification.vue' import hotTopicCarousel from './views/hotTopicCarousel/hotTopicCarousel.vue' import homeRecommended from './views/homeRecommended/homeRecommended.vue' // 考试管理 import examCertification from './views/examinationManagement/examCertification.vue' // 考试拿证流程介绍 import examinationInformation from './views/examinationManagement/examinationInformation.vue' // 考试信息管理 import examRegistrationReview from './views/examinationManagement/examRegistrationReview.vue' // 考试报名审核 import examResults from './views/examinationManagement/examResults.vue' // 考试结果 import certificates from './views/examinationManagement/certificates.vue' // 证书管理 // 研修班管理 import offlineTraining from './views/trainingClassManagement/offlineTraining.vue' // 线下研修班介绍 import offlineRegistration from './views/trainingClassManagement/registration.vue' // 线下研修班 import student from './views/trainingClassManagement/student.vue' // 学员姓名 import studentPayment from './views/trainingClassManagement/studentPayment.vue' // 学员缴费 // 用户与消息管理 import myMessage from './views/userAndMessageManagement/myMessage.vue' // 我的消息 import customerServiceCenter from './views/userAndMessageManagement/customerServiceCenter.vue' // 客服中心 import userManagement from './views/userAndMessageManagement/userManagement.vue' // 用户管理 // 订单与财务管理 import orderManagement from './views/orderAndFinancialManagement/orderManagement.vue' // 订单管理 import electronicInvoiceRegistration from './views/orderAndFinancialManagement/electronicInvoiceRegistration.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: '/homeRecommended', component: Home, name: '首页推荐配置', iconCls: 'iconfont firerock-iconkehu', leaf: true, children: [ { path: '/homeRecommended', component: homeRecommended, name: '首页推荐配置' } ] }, { 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-registrationReview', component: examRegistrationReview, name: '考试报名审核' }, { path: '/exam-results', component: examResults, name: '考试结果管理' }, { path: '/certificates', component: certificates, 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: '/student', component: student, name: '学员名单表格' }, { path: '/student-payment', component: studentPayment, 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: '/user-management', component: userManagement, name: '用户管理' }, ] }, { path: '/', component: Home, name: '订单与财务管理', iconCls: 'iconfont firerock-iconsetting', leaf: false,//只有一个节点 children: [ { path: '/order-management', component: orderManagement, name: '订单管理' }, { path: '/wwwwww', component: electronicInvoiceRegistration, name: '电子发票登记表' }, ] }, { path: '/404', component: NotFound, name: '', hidden: true }, { path: '*', hidden: true, redirect: { path: '/404' } } ] export default new Router({ routes: allRouters })