提交修改

This commit is contained in:
daihh
2022-06-02 11:20:11 +08:00
parent bdc304a49e
commit b75b7f814e
3 changed files with 10 additions and 8 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
/node_modules
node_modules

View File

@@ -176,9 +176,9 @@
</div>
<div v-if="coursewareInfo.content.contentType == 52">
<div v-if="coursewareInfo.content.content!=''">
<!-- <hyper-link :content="coursewareInfo.content"></hyper-link> -->
<!-- <iframe :src="coursewareInfo.content.content" style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe> -->
</div>
<!-- <hyper-link :content="coursewareInfo.content"></hyper-link> -->
<!-- <iframe :src="coursewareInfo.content.content" style="width: 100%;border:0px;min-height: 473px;" frameborder="0"></iframe> -->
</div>
</div>
</el-tab-pane>
<el-tab-pane v-if="homeworkInfo.id" label="作业" name="homework">

View File

@@ -650,21 +650,23 @@ 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{
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.index('.pdf')>-1){
this.contentData.content=cfrs.result.filePath;
}
//console.log(r.content);
}else {
this.contentData.content="";
this.$message.error('加载pdf课件文件失败');
}
});
}
}
this.type = 0;
},