From 857f30c11f92881ef3108880cb197c7c309aa337 Mon Sep 17 00:00:00 2001 From: zhouxueli <2841188632@qq.com> Date: Mon, 17 Mar 2025 17:02:08 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8C=E6=89=8B=E8=BD=A6=E4=BA=A4=E6=98=93?= =?UTF-8?q?=EF=BC=8C=E7=BC=93=E5=AD=98=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/secondHandCar/carSource.vue | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/views/secondHandCar/carSource.vue b/src/views/secondHandCar/carSource.vue index 18660cca..8804613a 100644 --- a/src/views/secondHandCar/carSource.vue +++ b/src/views/secondHandCar/carSource.vue @@ -236,8 +236,16 @@ export default { this.otherImgSrc=this.form.otherPhoto?.split(',') this.otherImgSrc?.map(item=>this.otherImgSrcList.push({url:item})) } - this.vehicleLicensePhotoList=[{url:this.form?.vehicleLicensePhoto}] - this.vehicleAnglePhotoList=[{url:this.form?.vehicleAnglePhoto}] + if(this.form.vehicleLicensePhoto){ + this.vehicleLicensePhotoList=[{url:this.form?.vehicleLicensePhoto}] + } + if(this.form.vehicleAnglePhoto){ + this.vehicleAnglePhotoList=[{url:this.form.vehicleAnglePhoto}] + } + if(this.otherImgSrc?.length>0){ + this.otherImgSrc?.map(item=>this.otherImgSrcList.push({url:item})) + } + // console.log(" this.vehicleLicensePhotoList", this.vehicleLicensePhotoList) /*this.vehicleLicensePhotoList=carSourceFormInfo.vehicleLicensePhotoList this.vehicleAnglePhotoList=carSourceFormInfo.vehicleAnglePhotoList this.otherImgSrcList=carSourceFormInfo.otherImgSrcList @@ -267,8 +275,6 @@ export default { this.$router.push({ name: "privacyComponent"}) }, confirmHandle(val){ - // let data=val.length - // this.form.areaCode=val[data - 1]?.code if(val[0].name.includes('市')){ this.areaName=val[0].name this.form.areaCode=val[0].code