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()"
|
:action="UploadUrl()"
|
||||||
:on-success="handlSuccess"
|
:on-success="handlSuccess"
|
||||||
:on-remove="handleRemove"
|
:on-remove="handleRemove"
|
||||||
|
:on-preview="handlePreview"
|
||||||
:before-remove="beforeRemove"
|
:before-remove="beforeRemove"
|
||||||
:data="filedata"
|
:data="filedata"
|
||||||
:headers="headers"
|
:headers="headers"
|
||||||
@@ -801,6 +802,11 @@ export default {
|
|||||||
this.quiltArr.push(item.annexName);
|
this.quiltArr.push(item.annexName);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
this.fileList = this.caseAttachList;
|
||||||
|
this.fileList.forEach((item)=> {
|
||||||
|
item["name"]=item.annexName;
|
||||||
|
item["certificatePath"] = item.annexPath;
|
||||||
|
})
|
||||||
}, 1000);
|
}, 1000);
|
||||||
}
|
}
|
||||||
if (this.flag == "2") {
|
if (this.flag == "2") {
|
||||||
@@ -842,6 +848,17 @@ export default {
|
|||||||
UploadUrl() {
|
UploadUrl() {
|
||||||
return window.location.origin + "/API/evidence/upload";
|
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) {
|
handlSuccess(res, file) {
|
||||||
this.caseAttachListArr.push({
|
this.caseAttachListArr.push({
|
||||||
|
|||||||
Reference in New Issue
Block a user