添加参数

This commit is contained in:
zhangsir
2024-05-28 13:49:39 +08:00
parent 9b16fd3744
commit 1ea0e209fe
3 changed files with 35 additions and 11 deletions

View File

@@ -156,6 +156,18 @@ export default {
courseType:{
type: String,
default:0
},
totalContent:{
type: Number,
default:0
},
contentName:{
type: String,
default: ''
},
contentType:{
type: String,
default: ''
}
},
data() {
@@ -522,11 +534,11 @@ export default {
studyId: this.studyId, //学习id,
courseId: this.content.courseId, //课程id,
contentId: this.content.id, //内容id,
contentType: '',
contentName: '', //内容名称
contentType: this.contentType,
contentName: this.contentName, //内容名称
progress: 1,
status: 2,
contentTotal: ''
contentTotal: this.totalContent
};
apiStudy.studyContent(params)
}else{
@@ -534,11 +546,11 @@ export default {
studyId: this.studyId, //学习id,
courseId: this.content.courseId, //课程id,
contentId: this.content.id, //内容id,
contentType: '',
contentName: '', //内容名称
contentType: this.contentType,
contentName: this.contentName, //内容名称
progress: 100,
status: 9,
contentTotal: ''
contentTotal: this.totalContent
};
apiStudy.studyContent(params)
}