mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
在线课study回滚
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user