This commit is contained in:
zhaofang
2022-06-02 16:37:13 +08:00
parent 81826d855b
commit 83c7394f61
5 changed files with 45 additions and 21 deletions

View File

@@ -650,21 +650,25 @@ export default {
}
} else if(r.contentType == 40) {
this.contentData.content="";
if (r.content != '' && r.content.indexOf('.pdf') > -1) {
this.contentData.content = cfrs.result.previewFilePath;
}else{
// if (r.content != '' && r.content.indexOf('.pdf') > -1) {
// // this.contentData.content = cfrs.result.previewFilePath;
// }else{
apiCourseFile.detail(r.contentRefId).then(cfrs => {
if (cfrs.status == 200) {
this.curCFile=cfrs.result;
this.converStatus = cfrs.result.converStatus;
this.contentData.content = cfrs.result.previewFilePath;
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) {
this.contentData.content = cfrs.result.filePath;
} else {
this.converStatus = cfrs.result.converStatus;
this.curCFile=cfrs.result;
}
//console.log(r.content);
}else {
this.contentData.content="";
this.$message.error('加载pdf课件文件失败');
}
});
}
// }
}
this.type = 0;
},