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

国际化项目增加课程考试

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