提交我的修改

This commit is contained in:
daihh
2022-06-02 17:24:00 +08:00
5 changed files with 51 additions and 39 deletions

View File

@@ -738,12 +738,17 @@
}else{
apiCourseFile.detail(this.cware.content.contentRefId).then(rs=>{
if(rs.status==200){
this.curCFile=rs.result;
this.converStatus = rs.result.converStatus;
this.courseFileShow = false;
this.cware.content.pdfPath=rs.result.previewFilePath;
this.cware.content.content=rs.result.previewFilePath;
if(rs.result.previewFilePath == '' && rs.result.filePath.indexOf('pdf') > -1) {
this.$forceUpdate();
this.cware.content.pdfPath = rs.result.filePath;
} else {
this.curCFile=rs.result;
this.converStatus = rs.result.converStatus;
}
this.$forceUpdate();
}
});
}
@@ -823,6 +828,9 @@
this.cware.content.duration=row.duration;//时长
this.cware.findShow=false;
if(this.cware.content.contentType==40){
if(row.filePath.indexOf('.pdf')==-1){
this.cware.content.content=row.previewFilePath;
}
this.loadPdfFile();
}
this.saveContent(1);