From 1e0aca1b29a92c37510a3feedee71f8a8be881cc Mon Sep 17 00:00:00 2001 From: hhl123456789 <3118891075@qq.com> Date: Sun, 1 Oct 2023 16:11:25 +0800 Subject: [PATCH] =?UTF-8?q?'=E6=A1=88=E4=BB=B6=E7=BC=96=E8=BE=91=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2=E6=96=87=E4=BB=B6=E9=A2=84=E8=A7=88=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/caseentryDialog.vue | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/src/views/caseManagement/components/caseentryDialog.vue b/src/views/caseManagement/components/caseentryDialog.vue index 99d71d4..e4f1768 100644 --- a/src/views/caseManagement/components/caseentryDialog.vue +++ b/src/views/caseManagement/components/caseentryDialog.vue @@ -794,22 +794,22 @@ export default { this.formData = this.form; this.fileList = []; if (this.flag == "1" || this.flag == "0") { - this.form2.paymentArr = this.initpaymentArr; - this.form3.paymentArr1 = this.initpaymentArr1; - console.log(this.caseAttachList, "caseAttachList"); - this.caseAttachList.forEach((item) => { - if (item.annexType == 2) { - this.applicateArr.push(item.annexName); - } - if (item.annexType == 6) { - this.quiltArr.push(item.annexName); - } - }); - this.fileList = this.caseAttachList; - this.fileList.forEach((item) => { - item["name"] = item.annexName; - item["certificatePath"] = item.annexPath; - }); + this.form2.paymentArr = this.initpaymentArr; + this.form3.paymentArr1 = this.initpaymentArr1; + console.log(this.caseAttachList, "caseAttachList"); + this.caseAttachList.forEach((item) => { + if (item.annexType == 2) { + this.applicateArr.push(item.annexName); + } + if (item.annexType == 6) { + this.quiltArr.push(item.annexName); + } + }); + this.fileList = this.caseAttachList; + this.fileList.forEach((item) => { + item["name"] = item.annexName; + item["certificatePath"] = item.annexPath; + }); } if (this.flag == "2") { this.form2.paymentArr = [ @@ -851,13 +851,16 @@ export default { return window.location.origin + "/API/evidence/upload"; }, handlePreview(file) { - if (file && file.response.data.annexName) { + if (this.flag == "2") { window.open( window.location.origin + "/API" + file.response.data.annexName, "_blank" ); - } else { - this.$message.warning("暂不支持预览"); + } else if (this.flag == "1") { + window.open( + window.location.origin + "/API" + file.certificatePath, + "_blank" + ); } },