Преглед на файлове

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

hhlxayunmei преди 2 години
родител
ревизия
a2ac8ee2c0
променени са 1 файла, в които са добавени 21 реда и са изтрити 7 реда
  1. 21
    7
      src/views/caseManagement/components/caseentryDialog.vue

+ 21
- 7
src/views/caseManagement/components/caseentryDialog.vue Целия файл

148
             >
148
             >
149
               <div v-for="(item, index) in applicateArr" :key="index">
149
               <div v-for="(item, index) in applicateArr" :key="index">
150
                 <a href="#" @click="toFile(item, index)" style="color: blue">
150
                 <a href="#" @click="toFile(item, index)" style="color: blue">
151
-                  {{ item }}
151
+                  {{ item.annexName }}
152
                 </a>
152
                 </a>
153
               </div>
153
               </div>
154
             </el-form-item>
154
             </el-form-item>
163
               "
163
               "
164
             >
164
             >
165
               <div v-for="(item, index) in quiltArr" :key="index">
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
                 </a>
168
                 </a>
169
               </div>
169
               </div>
170
 
170
 
798
             this.form3.paymentArr1 = this.initpaymentArr1;
798
             this.form3.paymentArr1 = this.initpaymentArr1;
799
             console.log(this.caseAttachList, "caseAttachList");
799
             console.log(this.caseAttachList, "caseAttachList");
800
             this.caseAttachList.forEach((item) => {
800
             this.caseAttachList.forEach((item) => {
801
+              console.log(item, "iytem");
801
               if (item.annexType == 2) {
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
               if (item.annexType == 6) {
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
             this.fileList = this.caseAttachList;
815
             this.fileList = this.caseAttachList;
1006
         }
1013
         }
1007
       });
1014
       });
1008
     },
1015
     },
1009
-    // 详情显示,展示案件文件
1016
+    // 详情显示,展示申请人案件文件
1010
     toFile(item, index) {
1017
     toFile(item, index) {
1011
       window.open(
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
         "_black"
1027
         "_black"
1014
       );
1028
       );
1015
     },
1029
     },