Merge branch 'hhl' of SH-Arbitrate/Arbitrate-Frontend into dev
This commit was merged in pull request #50.
This commit is contained in:
@@ -120,6 +120,7 @@
|
||||
:action="UploadUrl()"
|
||||
:on-success="handlSuccess"
|
||||
:on-remove="handleRemove"
|
||||
:on-preview="handlePreview"
|
||||
:before-remove="beforeRemove"
|
||||
:data="filedata"
|
||||
:headers="headers"
|
||||
@@ -801,6 +802,11 @@ export default {
|
||||
this.quiltArr.push(item.annexName);
|
||||
}
|
||||
});
|
||||
this.fileList = this.caseAttachList;
|
||||
this.fileList.forEach((item)=> {
|
||||
item["name"]=item.annexName;
|
||||
item["certificatePath"] = item.annexPath;
|
||||
})
|
||||
}, 1000);
|
||||
}
|
||||
if (this.flag == "2") {
|
||||
@@ -842,6 +848,17 @@ export default {
|
||||
UploadUrl() {
|
||||
return window.location.origin + "/API/evidence/upload";
|
||||
},
|
||||
handlePreview(file) {
|
||||
if (file.certificatePath) {
|
||||
window.open(
|
||||
window.location.origin + "/API" + file.certificatePath,
|
||||
"_blank"
|
||||
);
|
||||
} else {
|
||||
this.$message.warning("暂不支持预览");
|
||||
}
|
||||
},
|
||||
|
||||
// 文件上传成功
|
||||
handlSuccess(res, file) {
|
||||
this.caseAttachListArr.push({
|
||||
|
||||
Reference in New Issue
Block a user