Commit ce0d4527 authored by xingyuji's avatar xingyuji

Merge branch 'develop' into 'master'

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

fix: 导出户型信息数据时 为空的项就为空 不用无替代

See merge request !43
parents 400e330e 5ceb86ef
...@@ -277,7 +277,7 @@ ...@@ -277,7 +277,7 @@
exportAsExcel({ exportAsExcel({
title: this.exportExcelSave.title, title: this.exportExcelSave.title,
dataJsonTwo: JSON.stringify(this.exportExcelSave.detilProductJsonDtoList), dataJsonTwo: JSON.stringify(this.exportExcelSave.detilProductJsonDtoList),
dataJson: JSON.stringify(this.productionProjectData) dataJson: this.unitDetailJsonExport
}).then(res => { }).then(res => {
if(res) { if(res) {
const title = this.exportExcelSave.title.replace(/;/g, '-') const title = this.exportExcelSave.title.replace(/;/g, '-')
...@@ -425,10 +425,10 @@ ...@@ -425,10 +425,10 @@
item.productionProperties.map(item2 => { item.productionProperties.map(item2 => {
Object.keys(tableDataType).forEach(key => { Object.keys(tableDataType).forEach(key => {
if(tableDataType[key] === 'string') { if(tableDataType[key] === 'string') {
item2[key] = item2[key] ? item2[key] : '' item2[key] = item2[key] ? item2[key] : '--'
} }
else if(tableDataType[key] === 'boolean') { else if(tableDataType[key] === 'boolean') {
item2[key] = item2[key] == 1 ? '是' : '否' item2[key] = item2[key] ? (item2[key] == 1 ? '是' : '否') : '--'
} else if(tableDataType[key] === 'img') { } else if(tableDataType[key] === 'img') {
item2[key] = item2[key] ? item2[key] : null item2[key] = item2[key] ? item2[key] : null
} }
...@@ -437,7 +437,6 @@ ...@@ -437,7 +437,6 @@
return item return item
} }
})) }))
console.log(dealArr, 'sadadsasdasd')
this.unitDetailJsonExport = JSON.stringify(dealArr) this.unitDetailJsonExport = JSON.stringify(dealArr)
}) })
exportExcelJson(temp).then(res => { exportExcelJson(temp).then(res => {
......
...@@ -177,8 +177,8 @@ ...@@ -177,8 +177,8 @@
:body-style="{ padding: '0' }"> :body-style="{ padding: '0' }">
<div class="imgContainer" > <div class="imgContainer" >
<el-image style="width: 150px;height: 150px" <el-image style="width: 150px;height: 150px"
:src="imgUrlHeader + item.url1 || imgUrlHeader + item.url2 || require('@assets/img/noPicture.png')" :src="item.url1 ? (imgUrlHeader + item.url1) : (item.url2 ? imgUrlHeader + item.url2 : require('@assets/img/noPicture.png'))"
alt="无法加载" alt="无法加载"
@click.stop="toPropertyDetail(item.businessId, true)"> @click.stop="toPropertyDetail(item.businessId, true)">
</el-image> </el-image>
</div> </div>
...@@ -201,7 +201,7 @@ ...@@ -201,7 +201,7 @@
<div v-else-if="showType === 'property'" class="dealWidth"> <div v-else-if="showType === 'property'" class="dealWidth">
<div class="searchDetailFlex" @click="toPropertyDetail(propertyDetailData.businessId)"> <div class="searchDetailFlex" @click="toPropertyDetail(propertyDetailData.businessId)">
<el-image style="cursor: pointer;height: 200px" <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> </el-image>
<p class="propertyName">{{propertyDetailData.name || '---'}}</p> <p class="propertyName">{{propertyDetailData.name || '---'}}</p>
<p class="propertyDetail" v-html="'<b>价格'+':</b>' + propertyDetailData.price + '元/m<sup>2</sup>'"></p> <p class="propertyDetail" v-html="'<b>价格'+':</b>' + propertyDetailData.price + '元/m<sup>2</sup>'"></p>
...@@ -738,6 +738,7 @@ ...@@ -738,6 +738,7 @@
this.dataType.property = resultData this.dataType.property = resultData
this.propertyDetailData = this.dataType.property[0] this.propertyDetailData = this.dataType.property[0]
this.detailShow = true 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