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

课程考核bug修复

上级 31ef5683
...@@ -74,7 +74,7 @@ export default class CourseAction extends BaseACTION { ...@@ -74,7 +74,7 @@ export default class CourseAction extends BaseACTION {
: (_type === 2 ? _vIn.$t('action.courseAction.changeLearn') : (_type === 2 ? _vIn.$t('action.courseAction.changeLearn')
: (_type === 3 ? _vIn.$t('action.courseAction.repeatLearn') : '')) : (_type === 3 ? _vIn.$t('action.courseAction.repeatLearn') : ''))
const json = { const json = {
course_type: cur.course_type, course_check_type: cur.course_check_type,
headerInfo: { headerInfo: {
isStart: !!cur.selected, // 是否为开始学习按钮 或者 选课按钮 isStart: !!cur.selected, // 是否为开始学习按钮 或者 选课按钮
id: cur.course_id, id: cur.course_id,
......
...@@ -51,7 +51,7 @@ export default { ...@@ -51,7 +51,7 @@ export default {
}, },
computed: { computed: {
checkList() { checkList() {
return this.data.course_check.filter(item => item.percent) return this.data.course_check.filter(item => parseInt(item.percent))
}, },
option() { option() {
const data = this.checkList.map(item => { const data = this.checkList.map(item => {
......
...@@ -49,7 +49,7 @@ export default { ...@@ -49,7 +49,7 @@ export default {
}, },
computed: { computed: {
checkList() { checkList() {
return this.data.course_check.filter(item => item.percent) return this.data.course_check.filter(item => parseInt(item.percent))
}, },
option() { option() {
const data = this.checkList.map(item => { const data = this.checkList.map(item => {
......
...@@ -179,7 +179,7 @@ ...@@ -179,7 +179,7 @@
{{ $t('pages.learn.courseDetail.Courseassessmentstandard') }} {{ $t('pages.learn.courseDetail.Courseassessmentstandard') }}
</div> </div>
</div> </div>
<course-assessment-cn :data="courseAssessment" v-if="courseType === 1"></course-assessment-cn> <course-assessment-cn :data="courseAssessment" v-if="courseCheckType === 1"></course-assessment-cn>
<course-assessment-en :data="courseAssessment" v-else></course-assessment-en> <course-assessment-en :data="courseAssessment" v-else></course-assessment-en>
<!-- <div class="detail"> <!-- <div class="detail">
<div class="detail-rich" v-html="tabs[3].richText"></div> <div class="detail-rich" v-html="tabs[3].richText"></div>
...@@ -449,7 +449,7 @@ export default { ...@@ -449,7 +449,7 @@ export default {
cloudClassUrls: {}, cloudClassUrls: {},
timeHeart: null, timeHeart: null,
firstVideo: {}, firstVideo: {},
courseType: 2, courseCheckType: 2,
courseAssessment: {} courseAssessment: {}
} }
}, },
...@@ -476,7 +476,7 @@ export default { ...@@ -476,7 +476,7 @@ export default {
} }
cAction.Course.getCourseDetail(this.cid, this.sid) cAction.Course.getCourseDetail(this.cid, this.sid)
.then(json => { .then(json => {
this.courseType = json.course_type this.courseCheckType = json.course_check_type
this.headerInfo = json.headerInfo this.headerInfo = json.headerInfo
this.tabs[0].content = json.tabs0Content this.tabs[0].content = json.tabs0Content
this.tabs[1].chapterList = json.tabs1ChapterList this.tabs[1].chapterList = json.tabs1ChapterList
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论