|
|
@@ -794,22 +794,22 @@ export default {
|
|
794
|
794
|
this.formData = this.form;
|
|
795
|
795
|
this.fileList = [];
|
|
796
|
796
|
if (this.flag == "1" || this.flag == "0") {
|
|
797
|
|
- this.form2.paymentArr = this.initpaymentArr;
|
|
798
|
|
- this.form3.paymentArr1 = this.initpaymentArr1;
|
|
799
|
|
- console.log(this.caseAttachList, "caseAttachList");
|
|
800
|
|
- this.caseAttachList.forEach((item) => {
|
|
801
|
|
- if (item.annexType == 2) {
|
|
802
|
|
- this.applicateArr.push(item.annexName);
|
|
803
|
|
- }
|
|
804
|
|
- if (item.annexType == 6) {
|
|
805
|
|
- this.quiltArr.push(item.annexName);
|
|
806
|
|
- }
|
|
807
|
|
- });
|
|
808
|
|
- this.fileList = this.caseAttachList;
|
|
809
|
|
- this.fileList.forEach((item) => {
|
|
810
|
|
- item["name"] = item.annexName;
|
|
811
|
|
- item["certificatePath"] = item.annexPath;
|
|
812
|
|
- });
|
|
|
797
|
+ this.form2.paymentArr = this.initpaymentArr;
|
|
|
798
|
+ this.form3.paymentArr1 = this.initpaymentArr1;
|
|
|
799
|
+ console.log(this.caseAttachList, "caseAttachList");
|
|
|
800
|
+ this.caseAttachList.forEach((item) => {
|
|
|
801
|
+ if (item.annexType == 2) {
|
|
|
802
|
+ this.applicateArr.push(item.annexName);
|
|
|
803
|
+ }
|
|
|
804
|
+ if (item.annexType == 6) {
|
|
|
805
|
+ this.quiltArr.push(item.annexName);
|
|
|
806
|
+ }
|
|
|
807
|
+ });
|
|
|
808
|
+ this.fileList = this.caseAttachList;
|
|
|
809
|
+ this.fileList.forEach((item) => {
|
|
|
810
|
+ item["name"] = item.annexName;
|
|
|
811
|
+ item["certificatePath"] = item.annexPath;
|
|
|
812
|
+ });
|
|
813
|
813
|
}
|
|
814
|
814
|
if (this.flag == "2") {
|
|
815
|
815
|
this.form2.paymentArr = [
|
|
|
@@ -851,13 +851,16 @@ export default {
|
|
851
|
851
|
return window.location.origin + "/API/evidence/upload";
|
|
852
|
852
|
},
|
|
853
|
853
|
handlePreview(file) {
|
|
854
|
|
- if (file && file.response.data.annexName) {
|
|
|
854
|
+ if (this.flag == "2") {
|
|
855
|
855
|
window.open(
|
|
856
|
856
|
window.location.origin + "/API" + file.response.data.annexName,
|
|
857
|
857
|
"_blank"
|
|
858
|
858
|
);
|
|
859
|
|
- } else {
|
|
860
|
|
- this.$message.warning("暂不支持预览");
|
|
|
859
|
+ } else if (this.flag == "1") {
|
|
|
860
|
+ window.open(
|
|
|
861
|
+ window.location.origin + "/API" + file.certificatePath,
|
|
|
862
|
+ "_blank"
|
|
|
863
|
+ );
|
|
861
|
864
|
}
|
|
862
|
865
|
},
|
|
863
|
866
|
|