Эх сурвалжийг харах

附件上传文件名回显

duy 2 жил өмнө
parent
commit
7d64297821

+ 3 - 3
src/views/tentative/detect/test.vue

@@ -560,17 +560,17 @@ const viewCurFile = (item) => {
     })
     if(tabTypeKey.value=='productionCertificate'&&item.productionCertificate.length>0){
         let arr=[]
-        arr.push({name:item.productionCertificate,url:item.productionCertificate})
+        arr.push({name:item.productionCertificateName,url:item.productionCertificate})
         fileListData.value =getArrValue(arr)
         listuploadref.value='1'
     }else if(tabTypeKey.value=='qualityInspectionReport'&&item.qualityInspectionReport.length>0){
          let arr=[]
-         arr.push({name:item.qualityInspectionReport,url:item.qualityInspectionReport})
+         arr.push({name:item.qualityInspectionReportName,url:item.qualityInspectionReport})
          fileListData.value =getArrValue(arr)
          listuploadref.value='2'
     }else if(tabTypeKey.value=='otherAccessories'&&item.otherAccessories.length>0){
           let arr=[]
-        arr.push({name:item.otherAccessories,url:item.otherAccessories})
+        arr.push({name:item.otherAccessoriesName,url:item.otherAccessories})
          fileListData.value =getArrValue(arr)
          listuploadref.value='3'
     }else{