案件编辑页面文件预览实现 #56
@@ -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"
|
||||
);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user