import Vue from "vue"; import VueRouter from "vue-router"; const studySystemChoice = () => import("../views/studySystemChoice.vue"); const itemSet = () => import("../views/itemSet.vue"); const areaOperateDaily = () => import("../views/areaOperateDaily.vue"); const schoolSetting = () => import("../views/schoolSetting.vue"); const subjectManForZy = () => import("../views/subjectManForZy.vue"); const classManage = () => import("../views/classManage.vue"); const electiveClassManage = () => import("../views/electiveClassManage.vue"); const electiveClassManageDetail = () => import("../views/electiveClassManageDetail.vue"); const ChristianityDetail = () => import("../views/classManage/ChristianityDetail.vue"); const subjectSetzhi = () => import("../views/subjectSetzhi.vue"); const teacherManage = () => import("../views/teacherManage.vue"); const studentManage = () => import("../views/studentManage.vue"); const historySearch = () => import("../views/historySearch.vue"); const historySearchDetail = () => import("../views/historySearchDetail.vue"); const studentYDManage = () => import("../views/studentYDManage.vue"); const zhuanruinfo = () => import("../views/zhuanruinfo.vue"); const zhuanruinfostu = () => import("../views/zhuanruinfostu.vue"); const dailySearch = () => import("../views/dailySearch.vue"); Vue.use(VueRouter); const routes = [ { path: "/", name: "studySystemChoice", component: studySystemChoice, meta: { title: "学制选择", modId: 1, icon: "icon-shezhi" } }, { path: '/itemSet', name: "itemSet", component: itemSet, meta:{title:"时段设置",modId:2,icon: "icon-shezhi"} }, { path: '/areaOperateDaily', name: "areaOperateDaily", component: areaOperateDaily, meta:{title:"区域操作日志",modId:3,icon: "icon-chaxun"} }, { path: '/schoolSetting', name: "schoolSetting", component: schoolSetting, meta:{title:"学校设置",modId:4,icon: "icon-cshxd"} }, { path: '/subjectManForZy', name: "subjectManForZy", component: subjectManForZy, meta:{title:"课程设置",modId:5,icon: "icon-xuekeshezhi"} }, { path: '/subjectSetzhi', name: "subjectSetzhi", component: subjectSetzhi, meta:{title:"学科管理",modId:6,icon: "icon-xuekeshezhi"} }, { path: '/classManage', name: "classManage", component: classManage, meta:{title:"班级管理",modId:7,icon: "icon-banji"} }, { path: "/ChristianityDetail", name: "ChristianityDetail", component: ChristianityDetail, meta: { title: "班级管理", modId: 7,parentPath:"/classManage" } }, { path: '/electiveClassManage', name: "electiveClassManage", component: electiveClassManage, meta:{title:"选修班管理",modId:8,icon: "icon-banji"} }, { path: "/electiveClassManageDetail", name: "electiveClassManageDetail", component: electiveClassManageDetail, meta: { title: "选修班管理", modId: 8,parentPath:"/electiveClassManage" } }, { path: '/teacherManage', name: "teacherManage", component: teacherManage, meta:{title:"教师管理",modId:9,icon: "icon-jiaoshi"} }, { path: '/studentManage', name: "studentManage", component: studentManage, meta:{title:"学生管理",modId:10,icon: "icon-xuesheng"} }, { path: '/historySearch', name: "historySearch", component: historySearch, meta:{title:"历史查询",modId:11,icon: "icon-chaxun"} }, { path: "/historySearchDetail", name: "historySearchDetail", component: historySearchDetail, meta: { title: "历史查询", modId: 11,parentPath:"/historySearch" } }, { path: '/studentYDManage', name: "studentYDManage", component: studentYDManage, meta:{title:"学生异动管理",modId:12,icon: "icon-xuesheng"} }, { path: '/zhuanruinfo', name: "zhuanruinfo", component: zhuanruinfo, meta:{title:"教师转入管理",modId:13,icon: "icon-jiaoshi"} }, { path: '/zhuanruinfostu', name: "zhuanruinfostu", component: zhuanruinfostu, meta:{title:"学生转入管理",modId:14,icon: "icon-xuesheng"} }, { path: '/dailySearch', name: "dailySearch", component: dailySearch, meta:{title:"日志管理",modId:15,icon: "icon-chaxun"} }, ]; const router = new VueRouter({ base: process.env.BASE_URL, routes }); export default router;