Commit 5ceb86ef authored by wangjiankun's avatar wangjiankun

fix: 板块详情与搜索时 无法展示楼盘默认图的问题

fix: 导出户型信息数据时 为空的项就为空 不用无替代
parent 16eaef72
......@@ -277,7 +277,7 @@
exportAsExcel({
title: this.exportExcelSave.title,
dataJsonTwo: JSON.stringify(this.exportExcelSave.detilProductJsonDtoList),
dataJson: JSON.stringify(this.productionProjectData)
dataJson: this.unitDetailJsonExport
}).then(res => {
if(res) {
const title = this.exportExcelSave.title.replace(/;/g, '-')
......@@ -425,10 +425,10 @@
item.productionProperties.map(item2 => {
Object.keys(tableDataType).forEach(key => {
if(tableDataType[key] === 'string') {
item2[key] = item2[key] ? item2[key] : ''
item2[key] = item2[key] ? item2[key] : '--'
}
else if(tableDataType[key] === 'boolean') {
item2[key] = item2[key] == 1 ? '是' : '否'
item2[key] = item2[key] ? (item2[key] == 1 ? '是' : '否') : '--'
} else if(tableDataType[key] === 'img') {
item2[key] = item2[key] ? item2[key] : null
}
......@@ -437,7 +437,6 @@
return item
}
}))
console.log(dealArr, 'sadadsasdasd')
this.unitDetailJsonExport = JSON.stringify(dealArr)
})
exportExcelJson(temp).then(res => {
......
......@@ -177,8 +177,8 @@
:body-style="{ padding: '0' }">
<div class="imgContainer" >
<el-image style="width: 150px;height: 150px"
:src="imgUrlHeader + item.url1 || imgUrlHeader + item.url2 || require('@assets/img/noPicture.png')"
alt="无法加载"
:src="item.url1 ? (imgUrlHeader + item.url1) : (item.url2 ? imgUrlHeader + item.url2 : require('@assets/img/noPicture.png'))"
alt="无法加载"
@click.stop="toPropertyDetail(item.businessId, true)">
</el-image>
</div>
......@@ -201,7 +201,7 @@
<div v-else-if="showType === 'property'" class="dealWidth">
<div class="searchDetailFlex" @click="toPropertyDetail(propertyDetailData.businessId)">
<el-image style="cursor: pointer;height: 200px"
:src="imgUrlHeader + propertyDetailData.url1 || imgUrlHeader + propertyDetailData.url2 || require('@assets/img/noPicture.png')" alt="加载失败" >
:src="propertyDetailData.url1 ? (imgUrlHeader + propertyDetailData.url1) : (propertyDetailData.url2 ? imgUrlHeader + propertyDetailData.url2 : require('@assets/img/noPicture.png'))">
</el-image>
<p class="propertyName">{{propertyDetailData.name || '---'}}</p>
<p class="propertyDetail" v-html="'<b>价格'+':</b>' + propertyDetailData.price + '元/m<sup>2</sup>'"></p>
......@@ -738,6 +738,7 @@
this.dataType.property = resultData
this.propertyDetailData = this.dataType.property[0]
this.detailShow = true
console.log(this.propertyDetailData)
}
})
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment