|
|
@@ -135,7 +135,7 @@
|
|
|
uid: uidGenerator(),
|
|
|
name: getFileName(arr[a]),
|
|
|
status: 'done',
|
|
|
- url: arr[a].indexOf("http") !=-1 ? arr[a] :imgerver+ arr[a] ,
|
|
|
+ url:this.getAvatarView(arr[a]),
|
|
|
})
|
|
|
}
|
|
|
this.fileList = fileList
|
|
|
@@ -143,7 +143,13 @@
|
|
|
handleCancel() {
|
|
|
this.close()
|
|
|
},
|
|
|
-
|
|
|
+ getAvatarView(idcardPicture) {
|
|
|
+ if( idcardPicture.indexOf("http")!=-1){
|
|
|
+ return idcardPicture
|
|
|
+ }else{
|
|
|
+ return this.model.isImport==1?this.url.hpWorkImgerver+idcardPicture:this.url.imgerver+idcardPicture
|
|
|
+ }
|
|
|
+ },
|
|
|
}
|
|
|
}
|
|
|
</script>
|