Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
house-type
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
xingyuji
house-type
Commits
2deb4bc3
Commit
2deb4bc3
authored
Jul 31, 2020
by
wangjiankun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:板块供求数据---板块产品分析默认筛选条件从热门搜索改回为默认第一个区域中的第一个板块 产品类型改为默认第一个
parent
859e8240
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
+16
-6
index.vue
src/views/ProductAnalysis/index.vue
+14
-4
index.vue
src/views/plateSupplyData/index.vue
+2
-2
No files found.
src/views/ProductAnalysis/index.vue
View file @
2deb4bc3
...
...
@@ -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
()
...
...
src/views/plateSupplyData/index.vue
View file @
2deb4bc3
...
...
@@ -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
()
}
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment