|
@@ -10,17 +10,16 @@ const teacher = [
|
|
|
{
|
|
|
path: '/recruit/teacher/studentList',
|
|
|
component: Layout,
|
|
|
- name: 'studentList',
|
|
|
+ name: '学生列表',
|
|
|
+ icon: 'mdi-account-school-outline',
|
|
|
meta: {
|
|
|
- title: '学生列表',
|
|
|
- enName: 'Student List',
|
|
|
- icon: 'mdi-account-school-outline'
|
|
|
+ enName: 'Student List'
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index',
|
|
|
+ name: '学生列表',
|
|
|
meta: {
|
|
|
- title: '学生列表',
|
|
|
enName: 'Student List',
|
|
|
},
|
|
|
show: true,
|
|
@@ -29,8 +28,8 @@ const teacher = [
|
|
|
{
|
|
|
path: 'detail/:id',
|
|
|
show: true,
|
|
|
+ name: '学生详情',
|
|
|
meta: {
|
|
|
- title: '学生详情',
|
|
|
enName: 'Student Details'
|
|
|
},
|
|
|
component: () => import('@/views/recruit/teacher/studentList/studentDetails.vue')
|
|
@@ -40,17 +39,16 @@ const teacher = [
|
|
|
{
|
|
|
path: '/recruit/teacher/internshipSituation',
|
|
|
component: Layout,
|
|
|
- name: 'internshipSituation',
|
|
|
+ name: '实习情况',
|
|
|
+ icon: 'mdi-town-hall',
|
|
|
meta: {
|
|
|
- title: '实习情况',
|
|
|
- enName: 'Internship Situation',
|
|
|
- icon: 'mdi-town-hall'
|
|
|
+ enName: 'Internship Situation'
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index',
|
|
|
+ name: '实习情况',
|
|
|
meta: {
|
|
|
- title: '实习情况',
|
|
|
enName: 'Internship Situation',
|
|
|
},
|
|
|
show: true,
|
|
@@ -61,17 +59,16 @@ const teacher = [
|
|
|
{
|
|
|
path: '/recruit/teacher/internshipReport',
|
|
|
component: Layout,
|
|
|
- name: 'internshipReport',
|
|
|
+ name: '实习报告',
|
|
|
+ icon: 'mdi-file-document-multiple-outline',
|
|
|
meta: {
|
|
|
- title: '实习报告',
|
|
|
- enName: 'Internship Report',
|
|
|
- icon: 'mdi-file-document-multiple-outline'
|
|
|
+ enName: 'Internship Report'
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index',
|
|
|
+ name: '实习报告',
|
|
|
meta: {
|
|
|
- title: '实习报告',
|
|
|
enName: 'Internship Report',
|
|
|
},
|
|
|
show: true,
|
|
@@ -103,17 +100,16 @@ const teacher = [
|
|
|
{
|
|
|
path: '/recruit/teacher/teacherCertification',
|
|
|
component: Layout,
|
|
|
- name: 'teacherCertification',
|
|
|
+ name: '账号信息',
|
|
|
+ icon: 'mdi-human-male-board',
|
|
|
meta: {
|
|
|
- title: '账号信息',
|
|
|
- enName: 'Teacher Certification',
|
|
|
- icon: 'mdi-human-male-board'
|
|
|
+ enName: 'Teacher Certification'
|
|
|
},
|
|
|
children: [
|
|
|
{
|
|
|
path: 'index',
|
|
|
+ name: '账号信息',
|
|
|
meta: {
|
|
|
- title: '账号信息',
|
|
|
enName: 'Teacher Certification',
|
|
|
},
|
|
|
show: true,
|
|
@@ -122,4 +118,15 @@ const teacher = [
|
|
|
]
|
|
|
},
|
|
|
]
|
|
|
+
|
|
|
+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
|