二手车交易,直辖市的显示问题
This commit is contained in:
@ -212,7 +212,9 @@ export default {
|
||||
this.form.emissionStandard=res.data.emissionStandard?.code
|
||||
this.auditRemark=res.data?.auditRemark
|
||||
this.status=res.data?.status?.code
|
||||
this.areaName=res.data?.areaName
|
||||
const municipalities = ['北京市', '天津市', '上海市', '重庆市'];
|
||||
const isMunicipality = municipalities.some(city => res.data.areaName.includes(city));
|
||||
this.areaName= isMunicipality ? res.data.areaName?.substring(0, 3) : res.data.areaName;
|
||||
this.supplierName=res.data?.supplierName
|
||||
this.supplierCode=res.data?.supplierCode
|
||||
if(res.data?.otherPhoto){
|
||||
|
@ -130,11 +130,13 @@ export default {
|
||||
queryType:this.queryType ,
|
||||
})
|
||||
this.detailInfo=res?.data
|
||||
const municipalities = ['北京市', '天津市', '上海市', '重庆市'];
|
||||
const isMunicipality = municipalities.some(city => res.data.areaName.includes(city));
|
||||
this.detailInfo.areaName= isMunicipality ? res.data.areaName?.substring(0, 3) : res.data.areaName;
|
||||
if(res.data.otherPhoto){
|
||||
this.imgSrcList=res.data.otherPhoto.split(',') || []
|
||||
}
|
||||
this.imgSrcList.unshift(res?.data?.vehicleAnglePhoto)
|
||||
// console.log("this.imgSrcList",this.imgSrcList)
|
||||
}
|
||||
},
|
||||
destroyed() {
|
||||
|
Reference in New Issue
Block a user