提交 c9cbd86f authored 作者: 王鹏飞's avatar 王鹏飞

chore: 隐藏课程评估

上级 83c0a94f
......@@ -72,10 +72,10 @@ export default {
return
}
// 课程大作业
if (data.id === 'course_work' && !this.data.survey) {
this.$message(this.$t('viewerMain.teachingEvaluationTips'))
return
}
// if (data.id === 'course_work' && !this.data.survey) {
// this.$message(this.$t('viewerMain.teachingEvaluationTips'))
// return
// }
// 教学评估
if (data.id === 'teach_evaluation') {
const { sid, cid } = this.$route.params
......
......@@ -107,8 +107,8 @@ export default {
const customeChapter = {
name: this.$t('viewerMain.workData'),
children: [
{ name: this.$t('viewerMain.courseData'), id: 'course_info', type: 100 },
{ name: this.$t('viewerMain.teachingEvaluation'), id: 'teach_evaluation', type: 102 }
{ name: this.$t('viewerMain.courseData'), id: 'course_info', type: 100 }
// { name: this.$t('viewerMain.teachingEvaluation'), id: 'teach_evaluation', type: 102 }
]
}
// 课程大作业
......
......@@ -47,8 +47,8 @@ export default {
chapters() {
const chapters = this.course.chapters || []
const customeChapter = [
{ name: this.$t('viewerMain.courseData'), id: 'course_info', type: 100 },
{ name: this.$t('viewerMain.teachingEvaluation'), id: 'teach_evaluation', type: 102 }
{ name: this.$t('viewerMain.courseData'), id: 'course_info', type: 100 }
// { name: this.$t('viewerMain.teachingEvaluation'), id: 'teach_evaluation', type: 102 }
]
// 课程大作业
if (this.course.curriculum && this.course.curriculum.curriculum_essay) {
......@@ -75,10 +75,10 @@ export default {
return
}
// 课程大作业
if (data.id === 'course_work' && !this.course.survey) {
this.$message(this.$t('viewerMain.teachingEvaluationTips'))
return
}
// if (data.id === 'course_work' && !this.course.survey) {
// this.$message(this.$t('viewerMain.teachingEvaluationTips'))
// return
// }
// 教学评估
if (data.id === 'teach_evaluation') {
const { sid, cid } = this.$route.params
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论