diff --git a/src/components/Course/assess.vue b/src/components/Course/assess.vue index e7b8993c..a6535d91 100644 --- a/src/components/Course/assess.vue +++ b/src/components/Course/assess.vue @@ -60,22 +60,6 @@ content:{ type: Object, default: ()=>{} - }, - courseType:{ - type: String, - default: 0 - }, - totalContent:{ - type: Number, - default: 0 - }, - contentName:{ - type: String, - default: '' - }, - contentType:{ - type: String, - default: '' } }, data(){ @@ -175,19 +159,6 @@ this.$message.error(res.message); } }) - if(this.courseType == 20){ - let params = { - studyId: this.studyId, //学习id, - courseId: this.content.courseId, //课程id, - contentId: this.content.id, //内容id, - contentType: this.contentType, - contentName: this.contentName, //内容名称 - progress: 100, - status: 9, - contentTotal: this.totalContent - }; - apiCourseStudy.studyContent(params) - } } } } diff --git a/src/components/Course/exam.vue b/src/components/Course/exam.vue index f7ad31c1..2b743b04 100644 --- a/src/components/Course/exam.vue +++ b/src/components/Course/exam.vue @@ -152,22 +152,6 @@ export default { showTest:{ type:Boolean, default:false - }, - courseType:{ - type: String, - default:0 - }, - totalContent:{ - type: Number, - default:0 - }, - contentName:{ - type: String, - default: '' - }, - contentType:{ - type: String, - default: '' } }, data() { @@ -528,33 +512,6 @@ export default { }, submitTest(testScore){ //提交处理 //清空提示 - if(this.courseType == 20){ - if(testScore<80){ - const params = { - studyId: this.studyId, //学习id, - courseId: this.content.courseId, //课程id, - contentId: this.content.id, //内容id, - contentType: this.contentType, - contentName: this.contentName, //内容名称 - progress: 1, - status: 2, - contentTotal: this.totalContent - }; - apiStudy.studyContent(params) - }else{ - const params = { - studyId: this.studyId, //学习id, - courseId: this.content.courseId, //课程id, - contentId: this.content.id, //内容id, - contentType: this.contentType, - contentName: this.contentName, //内容名称 - progress: 100, - status: 9, - contentTotal: this.totalContent - }; - apiStudy.studyContent(params) - } - } if(this.timer){ window.clearInterval(this.timer); } diff --git a/src/views/study/coursenew.vue b/src/views/study/coursenew.vue index 43a785c8..271f6c07 100644 --- a/src/views/study/coursenew.vue +++ b/src/views/study/coursenew.vue @@ -102,10 +102,10 @@
- +
- +
@@ -320,7 +320,6 @@ }, data() { return { - courseType: 0, trueFalse: true, audiences:'', isCrowd:false, @@ -608,6 +607,7 @@ this.saveStudyDuration(); if (r.contentType == 10 || r.contentType == 20) { + this.trueFalse = true if (r.content.startsWith('\{')) { this.curriculumData = JSON.parse(r.content); } else { @@ -1191,8 +1191,6 @@ audiences:this.audiences }).then(rs => { if (rs.status == 200) { - this.courseType = rs.result.course.type - this.contentStudysLength = rs.result.contentStudys if(rs.result.contents.length==0){ $this.$message.error('课程内容已删除或课程已不再使用'); return;