123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152 |
- // 教师路由信息
- import Layout from '@/layout/teacher.vue'
- const teacher = [
- {
- path: '/recruit/teacher',
- show: true,
- redirect: '/recruit/teacher/studentList/index',
- },
- {
- path: '/recruit/teacher/studentList',
- component: Layout,
- name: '学生列表',
- icon: 'mdi-account-school-outline',
- meta: {
- enName: 'Student List'
- },
- children: [
- {
- path: 'index',
- name: '学生列表',
- meta: {
- enName: 'Student List',
- },
- show: true,
- component: () => import('@/views/recruit/teacher/studentList/index.vue')
- },
- {
- path: 'detail/:id',
- show: true,
- name: '学生详情',
- meta: {
- enName: 'Student Details'
- },
- component: () => import('@/views/recruit/teacher/studentList/studentDetails.vue')
- },
- ]
- },
- {
- path: '/recruit/teacher/internshipSituation',
- component: Layout,
- name: '实习情况',
- icon: 'mdi-town-hall',
- meta: {
- enName: 'Internship Situation'
- },
- children: [
- {
- path: 'index',
- name: '实习情况',
- meta: {
- enName: 'Internship Situation',
- },
- show: true,
- component: () => import('@/views/recruit/teacher/internshipSituation/index.vue')
- },
- ]
- },
- {
- path: '/recruit/teacher/internshipReport',
- component: Layout,
- name: '实习报告',
- icon: 'mdi-file-document-multiple-outline',
- meta: {
- enName: 'Internship Report'
- },
- children: [
- {
- path: 'index',
- name: '实习报告',
- meta: {
- enName: 'Internship Report',
- },
- show: true,
- component: () => import('@/views/recruit/teacher/internshipReport/index.vue')
- },
- ]
- },
- // {
- // path: '/recruit/teacher/internshipCompany',
- // component: Layout,
- // name: 'internshipCompany',
- // meta: {
- // title: '实习企业',
- // enName: 'Internship Company',
- // icon: 'mdi-home-city-outline'
- // },
- // children: [
- // {
- // path: 'index',
- // meta: {
- // title: '实习企业',
- // enName: 'Internship Company',
- // },
- // show: true,
- // component: () => import('@/views/recruit/teacher/internshipCompany/index.vue')
- // },
- // ]
- // },
- {
- path: '/recruit/teacher/teacherCertification',
- component: Layout,
- name: '账号信息',
- icon: 'mdi-human-male-board',
- meta: {
- enName: 'Teacher Certification'
- },
- children: [
- {
- path: 'index',
- name: '账号信息',
- meta: {
- enName: 'Teacher Certification',
- },
- show: true,
- component: () => import('@/views/recruit/teacher/teacherCertification/index.vue')
- },
- ]
- },
- {
- path: '/recruit/teacher/organization',
- component: Layout,
- name: '学校机构',
- icon: 'mdi-file-tree-outline',
- meta: {
- enName: 'Teacher Organization'
- },
- children: [
- {
- path: 'index',
- name: '学校机构',
- meta: {
- enName: 'Teacher Organization',
- },
- show: true,
- component: () => import('@/views/recruit/teacher/organization/index.vue')
- },
- ]
- },
- ]
- function traverse(list, type) {
- list.forEach(e => {
- if (!e.type) e.type = type
- if (!e.meta) e.meta = {}
- if (!e.meta.title) e.meta.title = e.name
- if (e.children?.length) traverse(e.children, 2)
- })
- }
- traverse(teacher, 1)
- export default teacher
|