Explorar o código

订单合同回显拼接问题修改

ZhangWenQiang %!s(int64=4) %!d(string=hai) anos
pai
achega
053550a4bd
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      src/views/ordermanager/modules/HwOrderUploadContractModal.vue

+ 10 - 1
src/views/ordermanager/modules/HwOrderUploadContractModal.vue

@@ -335,12 +335,21 @@
             uid: uidGenerator(),
             name: getFileName(arr[a]),
             status: 'done',
-            url: this.url.imgerver +  arr[a],
+            url: this.getAvatarView(arr[a]),
             thUrl: arr[a]
           })
         }
         this.fileList = fileList
       },
+
+      getAvatarView(idcardPicture) {
+        if( idcardPicture.indexOf("http")!=-1){
+          return idcardPicture
+        }else{
+          return this.url.imgerver+idcardPicture
+        }
+      },
+
       handleDateChange1(time){
         this.getOneYearLaterTime(time)
       },