Commit 2deb4bc3 authored by wangjiankun's avatar wangjiankun

fix:板块供求数据---板块产品分析默认筛选条件从热门搜索改回为默认第一个区域中的第一个板块 产品类型改为默认第一个

parent 859e8240
......@@ -456,13 +456,21 @@
if(!this.plateMap[item.adminRegionId]) {
this.plateMap[item.adminRegionId] = item.resultRegionDTOS
}
if(item.adminRegionId === '86fab0c4cf485c649ba4ee3df23b4fc6') {
if(item.resultRegionDTOS && item.resultRegionDTOS.length > 0 && !this.regionVal && !this.plateVal) {
this.plateOptions = item.resultRegionDTOS
this.regionVal = item.adminRegionId
this.plateVal = item.resultRegionDTOS.find(item => { return item.regionId === 'e569ab6db18756eb04192f8cde95b25d' }).regionId
this.plateVal = item.resultRegionDTOS[0].regionId
this.timeVal = new Date().getFullYear()
this.areaInterval = '0-70'
}
// if(item.adminRegionId === '86fab0c4cf485c649ba4ee3df23b4fc6') {
// this.plateOptions = item.resultRegionDTOS
// this.regionVal = item.adminRegionId
// this.plateVal = item.resultRegionDTOS.find(item => { return item.regionId === 'e569ab6db18756eb04192f8cde95b25d' }).regionId
// this.timeVal = new Date().getFullYear()
// this.areaInterval = '0-70'
// }
})
}
if(callback) {
......@@ -480,10 +488,12 @@
if(product_type) {
this.houseTypeVal = product_type
} else {
this.houseTypeVal = res.data.find(item => { return item.name === '洋房' }).businessId
this.houseTypeVal = res.data[0] ? res.data[0].businessId : ''
// this.houseTypeVal = res.data.find(item => { return item.name === '洋房' }).businessId
}
} else {
this.houseTypeVal = res.data.find(item => { return item.name === '洋房' }).businessId
this.houseTypeVal = res.data[0] ? res.data[0].businessId : ''
// this.houseTypeVal = res.data.find(item => { return item.name === '洋房' }).businessId
}
if(callback) {
callback()
......
......@@ -312,10 +312,10 @@
if(!this.plateMap[item.adminRegionName]) {
this.plateMap[item.adminRegionName] = item.resultRegionDTOS
}
if(item.adminRegionId === '86fab0c4cf485c649ba4ee3df23b4fc6') {
if(item.resultRegionDTOS && item.resultRegionDTOS.length > 0 && !this.regionVal && !this.plateVal) {
this.plateOptions = item.resultRegionDTOS
this.regionVal = item.adminRegionName
this.plateVal = item.resultRegionDTOS.find(item => { return item.regionId === 'e569ab6db18756eb04192f8cde95b25d' }).regionName
this.plateVal = item.resultRegionDTOS[0].regionName
this.timeVal = new Date().getFullYear()
}
})
......
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