mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 12:26:44 +08:00
Merge branch 'zcwy_0723_hotforum' into dev0515
This commit is contained in:
BIN
src/assets/images/hotforum/003.png
Normal file
BIN
src/assets/images/hotforum/003.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 212 KiB |
@@ -217,13 +217,16 @@ export default {
|
|||||||
if(delIdx>-1){
|
if(delIdx>-1){
|
||||||
fileList.splice(delIdx,1);
|
fileList.splice(delIdx,1);
|
||||||
}
|
}
|
||||||
|
this.$emit("success", res);
|
||||||
} else {
|
} else {
|
||||||
this.isLoading = false;
|
this.isLoading = false;
|
||||||
//this.fileList = [];
|
if(this.limit == 1){
|
||||||
|
this.fileList = [];
|
||||||
|
}
|
||||||
this.$message({message:"上传失败",type:'error',offset:100});
|
this.$message({message:"上传失败",type:'error',offset:100});
|
||||||
}
|
}
|
||||||
|
|
||||||
this.$emit("success", res);
|
// this.$emit("success", res);
|
||||||
},
|
},
|
||||||
// 删除文件
|
// 删除文件
|
||||||
handleDelete(index) {
|
handleDelete(index) {
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
imgData:[
|
imgData:[
|
||||||
{img:'01',url:'1265897142383042560'},
|
{img:'01',url:'1265897142383042560'},
|
||||||
{img:'02',url:'1265697724606210048'},
|
{img:'02',url:'1265697724606210048'},
|
||||||
{img:'03',url:''},
|
{img:'003',url:'1280185851054231552'},
|
||||||
{img:'4',url:''},
|
{img:'4',url:''},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -360,17 +360,25 @@ export default {
|
|||||||
}
|
}
|
||||||
} else if(r.contentType == 40) {
|
} else if(r.contentType == 40) {
|
||||||
//let url = this.fileBaseUrl + r.content;
|
//let url = this.fileBaseUrl + r.content;
|
||||||
if(r.content!='' && r.content.indexOf('.pdf')==-1){
|
if(r.content!='' && r.content.indexOf('.pdf')==-1){
|
||||||
apiCourseFile.detail(r.contentRefId).then(cfrs=>{
|
apiCourseFile.detail(r.contentRefId).then(cfrs=>{
|
||||||
if(cfrs.status==200){
|
if(cfrs.status==200){
|
||||||
r.content=cfrs.result.previewFilePath;
|
r.content=cfrs.result.previewFilePath;
|
||||||
//console.log(r.content);
|
//console.log(r.content);
|
||||||
}else{
|
}else{
|
||||||
$this.$message.error('加载pdf课件文件失败');
|
$this.$message.error('加载pdf课件文件失败');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
if(r.content==''){
|
||||||
|
apiCourseFile.detail(r.contentRefId).then(cfrs=>{
|
||||||
|
if(cfrs.status==200){
|
||||||
|
r.content=cfrs.result.previewFilePath;
|
||||||
|
}else{
|
||||||
|
$this.$message.error('加载pdf课件文件失败');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.contentData = r;
|
this.contentData = r;
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user