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

国际化项目增加课程考试

上级 44a1528d
......@@ -210,33 +210,33 @@ export default class CourseAction extends BaseACTION {
// cid: cid,
// type: 102
// })
// if (cur.course_examination) {
// let courseExamChildren = []
// if (data.exist_examination && data.exist_examination.length > 1) {
// courseExamChildren = data.exist_examination.map((item, index) => {
// const map = ['一', '二', '三']
// return {
// name: `第${map[index]}次考试`,
// id: 'course_exam',
// offset: index,
// sid: sid,
// cid: cid,
// examId: cur.course_examination,
// type: 101
// }
// })
// }
// json.tabs1ChapterList.course.push({
// title: _vIn.$t('action.courseAction.courseExam'),
// isUp: true,
// chapters: courseExamChildren,
// id: 'course_exam',
// sid: sid,
// cid: cid,
// examId: cur.course_examination,
// type: 101
// })
// }
if (cur.course_examination) {
let courseExamChildren = []
if (data.exist_examination && data.exist_examination.length > 1) {
courseExamChildren = data.exist_examination.map((item, index) => {
const map = ['一', '二', '三']
return {
name: `第${map[index]}次考试`,
id: 'course_exam',
offset: index,
sid: sid,
cid: cid,
examId: cur.course_examination,
type: 101
}
})
}
json.tabs1ChapterList.course.push({
title: _vIn.$t('action.courseAction.courseExam'),
isUp: true,
chapters: courseExamChildren,
id: 'course_exam',
sid: sid,
cid: cid,
examId: cur.course_examination,
type: 101
})
}
/* 课程考核 考核标准文案读取 */
json.tabs3richTest = cur.course_evaluation
// callback(json) // 可以不使用callback 因为使用then
......
......@@ -53,7 +53,7 @@
</div>
</template>
<template v-else-if="detail.created_time">
<p class="help">{{ $t('viewerWork.deadline', { time: detail.created_time }) }}</p>
<p class="help">{{ $t('viewerWork.submitted', { time: detail.created_time }) }}</p>
<template v-if="detail.updated_time && detail.updated_time !== detail.created_time">
<p class="help">{{ $t('viewerWork.submitDateTime') }} {{ detail.updated_time }}</p>
</template>
......
......@@ -116,13 +116,13 @@ export default {
]
}
// 课程考试
// if (this.detail.course_examination) {
// customeChapter.children.push({
// name: this.$t('viewerMain.courseExam'),
// id: 'course_exam',
// type: 101
// })
// }
if (this.detail.course_examination) {
customeChapter.children.push({
name: this.$t('viewerMain.courseExam'),
id: 'course_exam',
type: 101
})
}
chapters.push(customeChapter)
return chapters
},
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论