提交为了发布

This commit is contained in:
daihh
2022-06-02 17:45:56 +08:00
44 changed files with 2247 additions and 1666 deletions

View File

@@ -594,19 +594,23 @@ export default {
}
if($this.coursewareInfo.content.contentType == 40) {
//console.log(con.content,'con.content');
if(con.content != '' && con.content.indexOf('.pdf') > -1) {
$this.coursewareInfo.content.content = con.content;
}else {
// if(con.content != '' && con.content.indexOf('.pdf') > -1) {
// $this.coursewareInfo.content.content = con.content;
// }else {
apiCourseFile.detail(con.contentRefId).then(cfrs => {
if (cfrs.status == 200) {
$this.curCFile=cfrs.result;
$this.converStatus = cfrs.result.converStatus;
$this.coursewareInfo.content.content = cfrs.result.previewFilePath;
if(cfrs.result.previewFilePath == '' && cfrs.result.filePath.indexOf('pdf') > -1) {
$this.coursewareInfo.content.content = cfrs.result.filePath;
} else {
$this.curCFile=cfrs.result;
$this.converStatus = cfrs.result.converStatus;
}
} else {
$this.$message.error('加载pdf课件文件失败');
}
});
}
// }
}
} else if (con.sortIndex == 2) {
$this.homeworkInfo = con;