案件申请文件回显

This commit is contained in:
Your Name
2023-09-27 22:55:33 +08:00
parent 109594aa2d
commit f719561256
@@ -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({