From 127eac97b190de95a6067a91f5e9a7c5603c9345 Mon Sep 17 00:00:00 2001 From: Jack <1638169491@qq.com> Date: Thu, 28 Jul 2022 18:24:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86(=E5=8A=B3?= =?UTF-8?q?=E5=8A=A1=E4=BA=BA=E5=91=98)=EF=BC=9A=E6=9B=B4=E6=94=B9=20handl?= =?UTF-8?q?eUpload=20=E5=9B=BE=E7=89=87=E7=BB=91=E5=AE=9A=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../laborManage/personModule/laborComponent.vue | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/views/projectFront/laborManage/personModule/laborComponent.vue b/src/views/projectFront/laborManage/personModule/laborComponent.vue index 43df6ce0..e3cddd39 100644 --- a/src/views/projectFront/laborManage/personModule/laborComponent.vue +++ b/src/views/projectFront/laborManage/personModule/laborComponent.vue @@ -1524,6 +1524,7 @@ * {{ $t('message.laborMange.IdCardHead') }} + { if (res.code == 200 || res.status == 'SUCCESS') { - const data = res.data - let obj = {} - for (let i in data) { - obj = { name: data[i].filename, url: data[i].imageUrl } - } - this.personForm.idCardBigPhotoUrl = obj.url - this.idCardUpPhotoFile = [obj] + const imgInfo = res.data[0] + this.personForm.idCardBigPhotoUrl = imgInfo.imageUrl + this.idCardUpPhotoFile = [ + { name: imgInfo.filename, url: imgInfo.imageUrl } + ] } }) })