提交修改

This commit is contained in:
daihh
2022-12-19 18:54:40 +08:00
parent 6201432d85
commit 8a982a695f
2 changed files with 46 additions and 9 deletions

View File

@@ -778,6 +778,12 @@
if(con.contentType==40){
//console.log('加载pdf文件内容');
$this.loadPdfFile();
}else if(con.contentType==50){
//console.log('加载pdf文件内容');
if(!this.scormUrl){
$this.loadScormFile();
}
}
if(con.contentType==52){
if(con.content.startsWith('\{')){
@@ -836,7 +842,10 @@
},
loadScormFile(){
//对于scorm课件内容需要再查一下
this.scormUrl='';
//this.scormUrl='';
if(this.scormUrl){
return;
}
apiCourseFile.detail(this.cware.content.contentRefId).then(rs=>{
if(rs.status==200){
this.curCFile=rs.result;
@@ -952,6 +961,7 @@
resetContent(index){
if(index==1){
this.cware.content.id='';
this.scormUrl='';
this.cware.content.contentRefId='';
this.cware.content.contentName='';
this.cware.content.content='';
@@ -1030,6 +1040,7 @@
});
if(!pass){
this.$message.error("试卷试题请填写完整,每个试题必须要有答案");
this.loading=false;
return;
}
this.exam.info.paperContent=JSON.stringify(this.exam.paperJson);
@@ -1139,11 +1150,11 @@
if(this.cware.content.contentType==40){
setTimeout(function(){
$this.loadPdfFile();
},2000);
},1000);
}else if(this.cware.content.contentType==50){
setTimeout(function(){
$this.loadScormFile();
},2000);
},500);
}
},
getCoursewareList() {