Преглед изворни кода

Merge branch 'hhl' of SH-Arbitrate/Arbitrate-Frontend into dev

hhlxayunmei пре 2 година
родитељ
комит
dc29624661
1 измењених фајлова са 22 додато и 19 уклоњено
  1. 22
    19
      src/views/caseManagement/components/caseentryDialog.vue

+ 22
- 19
src/views/caseManagement/components/caseentryDialog.vue Прегледај датотеку

794
           this.formData = this.form;
794
           this.formData = this.form;
795
           this.fileList = [];
795
           this.fileList = [];
796
           if (this.flag == "1" || this.flag == "0") {
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
           if (this.flag == "2") {
814
           if (this.flag == "2") {
815
             this.form2.paymentArr = [
815
             this.form2.paymentArr = [
851
       return window.location.origin + "/API/evidence/upload";
851
       return window.location.origin + "/API/evidence/upload";
852
     },
852
     },
853
     handlePreview(file) {
853
     handlePreview(file) {
854
-      if (file && file.response.data.annexName) {
854
+      if (this.flag == "2") {
855
         window.open(
855
         window.open(
856
           window.location.origin + "/API" + file.response.data.annexName,
856
           window.location.origin + "/API" + file.response.data.annexName,
857
           "_blank"
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