案件编辑页面文件预览实现 #56

Merged
hhlxayunmei merged 1 commits from hhl into dev 2023-10-01 08:12:48 +00:00
@@ -851,13 +851,16 @@ export default {
return window.location.origin + "/API/evidence/upload"; return window.location.origin + "/API/evidence/upload";
}, },
handlePreview(file) { handlePreview(file) {
if (file && file.response.data.annexName) { if (this.flag == "2") {
window.open( window.open(
window.location.origin + "/API" + file.response.data.annexName, window.location.origin + "/API" + file.response.data.annexName,
"_blank" "_blank"
); );
} else { } else if (this.flag == "1") {
this.$message.warning("暂不支持预览"); window.open(
window.location.origin + "/API" + file.certificatePath,
"_blank"
);
} }
}, },