|
@@ -763,114 +763,7 @@ export default {
|
|
|
},
|
|
|
teacherMenu() {
|
|
|
let data = [
|
|
|
- // 个人研修
|
|
|
- {
|
|
|
- icon: 'iconfont icon-train',
|
|
|
- name: this.$t('system.menu.train'),
|
|
|
- router: '',
|
|
|
- role: 'teacher|admin',
|
|
|
- permission: '',
|
|
|
- subName: 'privTrain',
|
|
|
- // isShow: process.env.NODE_ENV == 'development',
|
|
|
- isShow: this.$store.state.config.srvAdr == 'China',
|
|
|
- // isShow: true,
|
|
|
- child: [{
|
|
|
- icon: 'iconfont icon-data1',
|
|
|
- name: this.$t('system.menu.trainCount'),
|
|
|
- router: '/home/jyHome',
|
|
|
- tag: '',
|
|
|
- role: 'teacher|admin',
|
|
|
- permission: '',
|
|
|
- menuName: 'jyHome',
|
|
|
- isShow: true
|
|
|
- },
|
|
|
- {
|
|
|
- icon: 'iconfont icon-online',
|
|
|
- name: this.$t('system.menu.onlineTrain'),
|
|
|
- router: '/home/online',
|
|
|
- tag: '',
|
|
|
- role: 'teacher|admin',
|
|
|
- permission: '',
|
|
|
- menuName: 'online',
|
|
|
- isShow: true
|
|
|
- },
|
|
|
- {
|
|
|
- icon: 'iconfont icon-offline',
|
|
|
- name: this.$t('system.menu.scTrain'),
|
|
|
- router: '/home/offline',
|
|
|
- tag: '',
|
|
|
- role: 'teacher|admin',
|
|
|
- permission: '',
|
|
|
- menuName: 'offline',
|
|
|
- isShow: true
|
|
|
- },
|
|
|
- {
|
|
|
- icon: 'iconfont icon-material',
|
|
|
- name: this.$t('system.menu.appAssassment'),
|
|
|
- router: '/home/application',
|
|
|
- tag: '',
|
|
|
- role: 'teacher|admin',
|
|
|
- permission: '',
|
|
|
- menuName: 'application',
|
|
|
- isShow: true
|
|
|
- },
|
|
|
- {
|
|
|
- icon: 'iconfont icon-course-videos',
|
|
|
- name: this.$t('system.menu.classRecord'),
|
|
|
- router: '/home/classMemoir',
|
|
|
- tag: '',
|
|
|
- role: 'teacher|admin',
|
|
|
- permission: '',
|
|
|
- menuName: 'classmemoir',
|
|
|
- isShow: true
|
|
|
- },
|
|
|
- {
|
|
|
- icon: 'iconfont icon-discuss',
|
|
|
- name: this.$t('system.menu.discuss'),
|
|
|
- router: '/home/discuss',
|
|
|
- tag: '',
|
|
|
- role: 'teacher|admin',
|
|
|
- permission: '',
|
|
|
- menuName: 'discuss',
|
|
|
- isShow: true
|
|
|
- },
|
|
|
- // 研修的投票和问卷隐藏
|
|
|
- /* {
|
|
|
- icon: 'iconfont icon-vote',
|
|
|
- name: this.$t('system.menu.scVote'),
|
|
|
- router: '/home/privateVote',
|
|
|
- tag: '',
|
|
|
- role: 'admin|teacher',
|
|
|
- permission: '',
|
|
|
- child: [],
|
|
|
- menuName: 'privateVote',
|
|
|
- isShow: true
|
|
|
- },
|
|
|
- {
|
|
|
- icon: 'iconfont icon-questionnaire',
|
|
|
- name: this.$t('system.menu.scQu'),
|
|
|
- router: '/home/privateQuestionnaire',
|
|
|
- tag: '',
|
|
|
- role: 'admin|teacher',
|
|
|
- permission: '',
|
|
|
- child: [],
|
|
|
- menuName: 'privateQuestionnaire',
|
|
|
- isShow: true
|
|
|
- }, */
|
|
|
- ]
|
|
|
- },
|
|
|
- // 我的班级
|
|
|
- {
|
|
|
- icon: 'iconfont icon-class-self',
|
|
|
- name: this.$t('system.menu.myClass'),
|
|
|
- router: '/home/classmgt',
|
|
|
- tag: '',
|
|
|
- role: 'teacher',
|
|
|
- permission: '',
|
|
|
- child: [],
|
|
|
- menuName: 'classmgt',
|
|
|
- isShow: this.$store.state.userInfo.hasSchool && this.isHeadmaster && this.IES5Menu
|
|
|
- },
|
|
|
+
|
|
|
// 我的课程
|
|
|
{
|
|
|
icon: 'iconfont icon-course-self',
|
|
@@ -886,18 +779,17 @@ export default {
|
|
|
isShow: this.IES5Menu,
|
|
|
info: this.$t('tip.myCus')
|
|
|
},
|
|
|
- // 苏格拉底
|
|
|
+ // 我的班级
|
|
|
{
|
|
|
- icon: 'iconfont icon-course-videos',
|
|
|
- name: this.$t('system.menu.toSokrates'),
|
|
|
- router: '#',
|
|
|
+ icon: 'iconfont icon-class-self',
|
|
|
+ name: this.$t('system.menu.myClass'),
|
|
|
+ router: '/home/classmgt',
|
|
|
tag: '',
|
|
|
- role: 'admin|teacher',
|
|
|
- child: [],
|
|
|
+ role: 'teacher',
|
|
|
permission: '',
|
|
|
- menuName: 'privSokrate',
|
|
|
- isShow: this.IES5Menu,
|
|
|
- to: 'privSokrate'
|
|
|
+ child: [],
|
|
|
+ menuName: 'classmgt',
|
|
|
+ isShow: this.$store.state.userInfo.hasSchool && this.isHeadmaster && this.IES5Menu
|
|
|
},
|
|
|
// 我的资源
|
|
|
{
|
|
@@ -1025,7 +917,116 @@ export default {
|
|
|
menuName: 'taskList',
|
|
|
isShow: this.$store.state.userInfo.hasSchool && this.IES5Menu,
|
|
|
info: this.$t('tip.task')
|
|
|
- }
|
|
|
+ },
|
|
|
+ // 个人研修
|
|
|
+ {
|
|
|
+ icon: 'iconfont icon-train',
|
|
|
+ name: this.$t('system.menu.train'),
|
|
|
+ router: '',
|
|
|
+ role: 'teacher|admin',
|
|
|
+ permission: '',
|
|
|
+ subName: 'privTrain',
|
|
|
+ // isShow: process.env.NODE_ENV == 'development',
|
|
|
+ isShow: this.$store.state.config.srvAdr == 'China',
|
|
|
+ // isShow: true,
|
|
|
+ child: [{
|
|
|
+ icon: 'iconfont icon-data1',
|
|
|
+ name: this.$t('system.menu.trainCount'),
|
|
|
+ router: '/home/jyHome',
|
|
|
+ tag: '',
|
|
|
+ role: 'teacher|admin',
|
|
|
+ permission: '',
|
|
|
+ menuName: 'jyHome',
|
|
|
+ isShow: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: 'iconfont icon-online',
|
|
|
+ name: this.$t('system.menu.onlineTrain'),
|
|
|
+ router: '/home/online',
|
|
|
+ tag: '',
|
|
|
+ role: 'teacher|admin',
|
|
|
+ permission: '',
|
|
|
+ menuName: 'online',
|
|
|
+ isShow: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: 'iconfont icon-offline',
|
|
|
+ name: this.$t('system.menu.scTrain'),
|
|
|
+ router: '/home/offline',
|
|
|
+ tag: '',
|
|
|
+ role: 'teacher|admin',
|
|
|
+ permission: '',
|
|
|
+ menuName: 'offline',
|
|
|
+ isShow: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: 'iconfont icon-material',
|
|
|
+ name: this.$t('system.menu.appAssassment'),
|
|
|
+ router: '/home/application',
|
|
|
+ tag: '',
|
|
|
+ role: 'teacher|admin',
|
|
|
+ permission: '',
|
|
|
+ menuName: 'application',
|
|
|
+ isShow: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: 'iconfont icon-course-videos',
|
|
|
+ name: this.$t('system.menu.classRecord'),
|
|
|
+ router: '/home/classMemoir',
|
|
|
+ tag: '',
|
|
|
+ role: 'teacher|admin',
|
|
|
+ permission: '',
|
|
|
+ menuName: 'classmemoir',
|
|
|
+ isShow: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: 'iconfont icon-discuss',
|
|
|
+ name: this.$t('system.menu.discuss'),
|
|
|
+ router: '/home/discuss',
|
|
|
+ tag: '',
|
|
|
+ role: 'teacher|admin',
|
|
|
+ permission: '',
|
|
|
+ menuName: 'discuss',
|
|
|
+ isShow: true
|
|
|
+ },
|
|
|
+ // 研修的投票和问卷隐藏
|
|
|
+ /* {
|
|
|
+ icon: 'iconfont icon-vote',
|
|
|
+ name: this.$t('system.menu.scVote'),
|
|
|
+ router: '/home/privateVote',
|
|
|
+ tag: '',
|
|
|
+ role: 'admin|teacher',
|
|
|
+ permission: '',
|
|
|
+ child: [],
|
|
|
+ menuName: 'privateVote',
|
|
|
+ isShow: true
|
|
|
+ },
|
|
|
+ {
|
|
|
+ icon: 'iconfont icon-questionnaire',
|
|
|
+ name: this.$t('system.menu.scQu'),
|
|
|
+ router: '/home/privateQuestionnaire',
|
|
|
+ tag: '',
|
|
|
+ role: 'admin|teacher',
|
|
|
+ permission: '',
|
|
|
+ child: [],
|
|
|
+ menuName: 'privateQuestionnaire',
|
|
|
+ isShow: true
|
|
|
+ }, */
|
|
|
+ ]
|
|
|
+ },
|
|
|
+ // 苏格拉底
|
|
|
+ {
|
|
|
+ icon: 'iconfont icon-course-videos',
|
|
|
+ name: this.$t('system.menu.toSokrates'),
|
|
|
+ router: '#',
|
|
|
+ tag: '',
|
|
|
+ role: 'admin|teacher',
|
|
|
+ child: [],
|
|
|
+ permission: '',
|
|
|
+ menuName: 'privSokrate',
|
|
|
+ isShow: this.IES5Menu,
|
|
|
+ to: 'privSokrate'
|
|
|
+ },
|
|
|
]
|
|
|
return data
|
|
|
}
|