Quellcode durchsuchen

'文件详情预览文件显示不符修复'

hhl123456789 vor 2 Jahren
Ursprung
Commit
42f6046d8a
1 geänderte Dateien mit 21 neuen und 7 gelöschten Zeilen
  1. 21
    7
      src/views/caseManagement/components/caseentryDialog.vue

+ 21
- 7
src/views/caseManagement/components/caseentryDialog.vue Datei anzeigen

@@ -148,7 +148,7 @@
148 148
             >
149 149
               <div v-for="(item, index) in applicateArr" :key="index">
150 150
                 <a href="#" @click="toFile(item, index)" style="color: blue">
151
-                  {{ item }}
151
+                  {{ item.annexName }}
152 152
                 </a>
153 153
               </div>
154 154
             </el-form-item>
@@ -163,8 +163,8 @@
163 163
               "
164 164
             >
165 165
               <div v-for="(item, index) in quiltArr" :key="index">
166
-                <a href="#" @click="toFile(item, index)" style="color: blue">
167
-                  {{ item }}
166
+                <a href="#" @click="toFile1(item, index)" style="color: blue">
167
+                  {{ item.annexName }}
168 168
                 </a>
169 169
               </div>
170 170
 
@@ -798,11 +798,18 @@ export default {
798 798
             this.form3.paymentArr1 = this.initpaymentArr1;
799 799
             console.log(this.caseAttachList, "caseAttachList");
800 800
             this.caseAttachList.forEach((item) => {
801
+              console.log(item, "iytem");
801 802
               if (item.annexType == 2) {
802
-                this.applicateArr.push(item.annexName);
803
+                this.applicateArr.push({
804
+                  annexName: item.annexName,
805
+                  annexPath: item.annexPath,
806
+                });
803 807
               }
804 808
               if (item.annexType == 6) {
805
-                this.quiltArr.push(item.annexName);
809
+                this.quiltArr.push({
810
+                  annexName: item.annexName,
811
+                  annexPath: item.annexPath,
812
+                });
806 813
               }
807 814
             });
808 815
             this.fileList = this.caseAttachList;
@@ -1006,10 +1013,17 @@ export default {
1006 1013
         }
1007 1014
       });
1008 1015
     },
1009
-    // 详情显示,展示案件文件
1016
+    // 详情显示,展示申请人案件文件
1010 1017
     toFile(item, index) {
1011 1018
       window.open(
1012
-        window.location.origin + "/API" + this.caseAttachList[index].annexPath,
1019
+        window.location.origin + "/API" + this.applicateArr[index].annexPath,
1020
+        "_black"
1021
+      );
1022
+    },
1023
+    // 被申请人文件
1024
+    toFile1(item, index) {
1025
+      window.open(
1026
+        window.location.origin + "/API" + this.quiltArr[index].annexPath,
1013 1027
         "_black"
1014 1028
       );
1015 1029
     },