mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-13 04:46: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:''},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -370,7 +370,15 @@ export default {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
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