案件申请文件回显 #50

Merged
hhlxayunmei merged 1 commits from hhl into dev 2023-09-27 14:56:07 +00:00
@@ -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({