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
5ceb86ef
Commit
5ceb86ef
authored
Aug 10, 2020
by
wangjiankun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 板块详情与搜索时 无法展示楼盘默认图的问题
fix: 导出户型信息数据时 为空的项就为空 不用无替代
parent
16eaef72
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
index.vue
src/views/ProductAnalysis/index.vue
+3
-4
index.vue
src/views/RegionalPlate/index.vue
+4
-3
No files found.
src/views/ProductAnalysis/index.vue
View file @
5ceb86ef
...
...
@@ -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
=>
{
...
...
src/views/RegionalPlate/index.vue
View file @
5ceb86ef
...
...
@@ -177,8 +177,8 @@
:body-style=
"
{ padding: '0' }">
<div
class=
"imgContainer"
>
<el-image
style=
"width: 150px;height: 150px"
:src=
"i
mgUrlHeader + item.url1 || imgUrlHeader + item.url2 || require('@assets/img/noPicture.png'
)"
alt=
"无法加载"
:src=
"i
tem.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
)
}
})
}
...
...
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