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
e742a3e7
Commit
e742a3e7
authored
Jul 09, 2020
by
wangjiankun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 地图坐标转换 --- 高德=>百度 样式细节优化
feat: 新增暂无数据、暂无图片样式、搜索框样式
parent
619dee82
Changes
11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
286 additions
and
155 deletions
+286
-155
houseNoData.svg
src/assets/icons/svg/houseNoData.svg
+1
-0
noData.svg
src/assets/icons/svg/noData.svg
+1
-0
noPicture.png
src/assets/img/noPicture.png
+0
-0
index.vue
src/components/Layout/index.vue
+5
-4
index.vue
src/components/mapOverlay/index.vue
+8
-5
index.vue
src/components/multilHeaderTable/index.vue
+7
-1
index.js
src/router/index.js
+2
-2
index.vue
src/views/ProductAnalysis/index.vue
+93
-56
index.vue
src/views/RegionalPlate/index.vue
+160
-82
index.vue
src/views/plateSupplyData/index.vue
+2
-2
index.vue
src/views/propertiesDetail/index.vue
+7
-3
No files found.
src/assets/icons/svg/houseNoData.svg
0 → 100644
View file @
e742a3e7
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
class=
"icon"
width=
"200px"
height=
"200.00px"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
><path
d=
"M514.880452 630.557515L289.843802 383.742193 136.830494 675.585807v80.406889h760.044122c-96.798118-86.070212-300.939144-270.210711-300.939143-270.21071l-81.055021 144.775529z m264.237779-185.757214c42.224941 0 76.426541-35.236442 76.426541-78.768489 0-43.485064-34.202805-78.790174-76.426541-78.790174-42.108085 0-76.332574 35.305111-76.332575 78.790174-0.001205 43.532047 34.224489 78.768489 76.332575 78.768489zM18.070588 97.581176v831.066353h986.895059V97.581176H18.070588z m937.343097 778.223135H71.00416l-0.042165-722.048904H900.120094v0.046984h55.292386l0.001205 722.00192z"
/></svg>
\ No newline at end of file
src/assets/icons/svg/noData.svg
0 → 100644
View file @
e742a3e7
This diff is collapsed.
Click to expand it.
src/assets/img/noPicture.png
0 → 100644
View file @
e742a3e7
5.39 KB
src/components/Layout/index.vue
View file @
e742a3e7
...
...
@@ -30,7 +30,9 @@
class=
"hamburger-container"
/>
<breadcrumb
/>
<div
style=
"width: 100%"
>
<async-search
class=
"main-search"
></async-search>
</div>
<el-dropdown
class=
"avatar-container"
trigger=
"click"
>
<div
class=
"avatar-wrapper"
>
<img
v-if=
"avatar"
:src=
"avatar"
class=
"user-avatar"
/>
...
...
@@ -177,8 +179,7 @@ export default {
.avatar-container {
height: 50px;
display: inline-block;
position: absolute;
right: 35px;
margin: 0 15px
.avatar-wrapper {
cursor: pointer;
margin-top: 5px;
...
...
@@ -195,7 +196,7 @@ export default {
}
.el-icon-caret-bottom {
position: absolute;
right: -
2
0px;
right: -
1
0px;
top: 25px;
font-size: 12px;
}
...
...
src/components/mapOverlay/index.vue
View file @
e742a3e7
...
...
@@ -48,13 +48,16 @@
const
lng
=
this
.
position
.
lng
const
lat
=
this
.
position
.
lat
const
pixel
=
map
.
pointToOverlayPixel
(
new
BMap
.
Point
(
lng
,
lat
))
el
.
style
.
left
=
pixel
.
x
-
this
.
w
idth
/
2
+
'px'
el
.
style
.
top
=
pixel
.
y
-
this
.
height
/
2
+
'px'
el
.
style
.
left
=
pixel
.
x
-
this
.
overlyW
idth
/
2
+
'px'
el
.
style
.
top
=
pixel
.
y
-
this
.
overlyHeigth
/
2
+
'px'
}
},
computed
:
{
style
()
{
return
overlyWidth
()
{
return
this
.
width
||
100
},
overlyHeigth
()
{
return
this
.
height
||
20
}
}
}
...
...
src/components/multilHeaderTable/index.vue
View file @
e742a3e7
...
...
@@ -25,7 +25,7 @@
</el-row>
</div>
<div
class=
"table_body"
v-if=
"tableData instanceof Array"
:style=
"
{ width: bodyWidth + '%'}">
<div
class=
"productionName"
>
<div
class=
"productionName"
v-if=
"tableData.length > 0"
>
<el-col
:span=
"24 / tableData.length"
v-for=
"(item,index) in tableData"
:key=
"index"
style=
"min-width: 200px"
>
<el-row
:class=
"
{'dataCell':true, 'prodName': index
<
2
}"
>
{{
item
.
productionName
}}
</el-row>
<el-col
class=
"productionDetail"
:span=
"24 / item.productionProperties.length"
v-for=
"(item2,index) in item.productionProperties"
:key=
"index"
>
...
...
@@ -41,6 +41,12 @@
</el-col>
</el-col>
</div>
<div
v-else
style=
"height: 100%;display: flex;align-items: center;"
>
<div
style=
"width: 100%;text-align: center;margin: auto"
>
<svg-icon
icon-class=
"houseNoData"
style=
"width: 200px;height: 200px"
/>
<div>
暂无数据
</div>
</div>
</div>
</div>
<div
class=
"table_body"
v-else
:style=
"
{ width: bodyWidth + '%'}">
<el-col
:span=
"24"
style=
"min-width: 120px"
>
...
...
src/router/index.js
View file @
e742a3e7
...
...
@@ -30,14 +30,14 @@ let routes = [
{
path
:
'/regionalPlate'
,
hidden
:
false
,
meta
:
{
title
:
'
户型查询
'
,
icon
:
'el-icon-discover'
},
meta
:
{
title
:
'
板块&区域
'
,
icon
:
'el-icon-discover'
},
component
:
Layout
,
children
:
[
{
path
:
'/regionalPlate'
,
name
:
'regionalPlate'
,
hidden
:
false
,
meta
:
{
title
:
'
户型查询
'
},
meta
:
{
title
:
'
板块&区域
'
},
component
:
()
=>
import
(
'@/views/RegionalPlate/index.vue'
),
}
]
...
...
src/views/ProductAnalysis/index.vue
View file @
e742a3e7
...
...
@@ -63,7 +63,13 @@
</div>
</div>
<el-card
:body-style=
"
{padding: '0'}">
<div
class=
"supplyDealCharts"
v-if=
"showMode === 0"
>
<div
class=
"container"
v-if=
"showMode === 0"
>
<div
class=
"noData"
style=
"height: 500px;display: flex;align-items: center;justify-content: center"
v-if=
"pieData.rows.length === 0 && histogramData.rows.length === 0 &&productionProjectData.length === 0"
>
<svg-icon
icon-class=
"noData"
style=
"width: 250px;height: 250px"
></svg-icon>
</div>
<div
v-else
>
<div
class=
"supplyDealCharts"
>
<div
style=
"width: 50%"
>
<ve-pie
:data=
"pieData"
:legend=
"
{ bottom: 20 }" :colors="colorsArr" :settings="pieSettings">
</ve-pie>
<!-- 各产品 供应套数与详细信息表格-->
...
...
@@ -110,6 +116,8 @@
<div
class=
"supplyAnalysisTable"
v-if=
"showMode === 0"
>
<multi-header-table
:header-width=
"42"
:body-width=
"58"
:header-data=
"headerTable"
:table-data=
"productionProjectData"
></multi-header-table>
</div>
</div>
</div>
<div
v-if=
"showMode === 1"
class=
"supplyDealUnitType"
>
<div
class=
"mainUnit blueBorder"
v-for=
"(item, index) in unitHouseTypeData"
:key=
"index"
>
<h2
class=
"unitHeader"
style=
"padding: 0 15px"
>
{{
item
.
productGroupName
}}
</h2>
...
...
@@ -126,6 +134,12 @@
:total="item.children.length">
</el-pagination>
</div>
<div
v-if=
"unitHouseTypeData.length === 0"
style=
"height: 500px;display: flex;align-items: center"
>
<div
style=
"width: 50%;text-align: center;margin: auto"
>
<svg-icon
icon-class=
"houseNoData"
style=
"width: 200px;height: 200px"
/>
<div>
暂无数据
</div>
</div>
</div>
</div>
</el-card>
</section>
...
...
@@ -377,7 +391,7 @@
this
.
regionVal
=
plateAnalysisQuery
.
adminRegion
?
plateAnalysisQuery
.
adminRegion
:
''
this
.
plateVal
=
plateAnalysisQuery
.
regionId
?
plateAnalysisQuery
.
regionId
:
''
this
.
timeVal
=
plateAnalysisQuery
.
year
?
plateAnalysisQuery
.
year
:
new
Date
().
getFullYear
()
this
.
areaInterval
=
plateAnalysisQuery
.
unitArea
?
plateAnalysisQuery
.
unitArea
.
areaMin
+
'-'
+
plateAnalysisQuery
.
unitArea
.
areaMax
:
'0-70'
this
.
areaInterval
=
plateAnalysisQuery
.
areaVal
?
plateAnalysisQuery
.
areaVal
:
'0-70'
}
else
{
res
.
data
.
forEach
(
item
=>
{
if
(
!
this
.
plateMap
[
item
.
adminRegionId
])
{
...
...
@@ -388,6 +402,7 @@
this
.
regionVal
=
item
.
adminRegionId
this
.
plateVal
=
item
.
resultRegionDTOS
[
0
].
regionId
this
.
timeVal
=
new
Date
().
getFullYear
()
this
.
areaInterval
=
'0-70'
}
})
}
...
...
@@ -412,7 +427,9 @@
}
else
{
this
.
houseTypeVal
=
res
.
data
[
0
]
?
res
.
data
[
0
].
businessId
:
'0-70'
}
if
(
callback
)
{
callback
()
}
})
},
// 获取户型信息----产品户型图与图片
...
...
@@ -427,6 +444,20 @@
areaMax
:
this
.
areaInterval
.
split
(
'-'
)[
1
]
}
}
// 处理后的格式
// [
// {
// produtGroupName: '产品组名',
// children: [
// {
// unitHouse: '几室几厅几卫',
// unitName: '楼盘名',
// unitArea: "房屋面积",
// fileUrl: '户型图url'
// }
// ]
// }
// ]
plateAnalysisHouseImg
(
temp
).
then
(
res
=>
{
let
productionList
=
[]
let
pageList
=
[]
...
...
@@ -458,6 +489,13 @@
this
.
pageList
=
pageList
this
.
unitHouseTypeData
=
productionList
// 假分页
// 格式
// {
// '产品组名': {
// 'page1': Array(6)
// }
// }
// 注意截取数组不要用splice 要用slice
const
productionListCopy
=
JSON
.
parse
(
JSON
.
stringify
(
productionList
))
productionListCopy
.
forEach
(
item
=>
{
if
(
!
this
.
pageListMap
[
item
.
productGroupName
])
{
...
...
@@ -496,18 +534,17 @@
})
},
beforeDestroy
()
{
if
(
this
.
regionVal
&&
this
.
plateVal
)
{
sessionStorage
.
setItem
(
'plateAnalysisQuery'
,
JSON
.
stringify
({
adminRegion
:
this
.
regionVal
,
regionId
:
this
.
plateVal
,
year
:
this
.
timeVal
,
productType
:
this
.
houseTypeVal
,
unitArea
:
{
areaMin
:
this
.
areaInterval
.
split
(
'-'
)[
0
],
areaMax
:
this
.
areaInterval
.
split
(
'-'
)[
1
]
}
areaVal
:
this
.
areaInterval
}))
}
}
}
</
script
>
<
style
lang=
"stylus"
>
...
...
src/views/RegionalPlate/index.vue
View file @
e742a3e7
This diff is collapsed.
Click to expand it.
src/views/plateSupplyData/index.vue
View file @
e742a3e7
...
...
@@ -145,7 +145,7 @@
show
:
true
,
position
:
"top"
,
formatter
:
function
(
params
){
//标签内容
if
(
params
.
data
==
0
)
{
return
'
0
'
}
if
(
params
.
data
==
0
)
{
return
''
}
return
(
params
.
data
*
100
).
toFixed
(
0
)
+
'%'
}
}
...
...
@@ -160,7 +160,7 @@
position
:
"top"
,
formatter
:
function
(
params
){
//标签内容
console
.
log
(
params
.
data
,
'sssssssssssssssssss'
)
if
(
params
.
data
==
0
)
{
return
'
0
'
}
if
(
params
.
data
==
0
)
{
return
''
}
return
params
.
data
.
toFixed
(
2
)
}
}
...
...
src/views/propertiesDetail/index.vue
View file @
e742a3e7
...
...
@@ -279,7 +279,7 @@
show
:
true
,
position
:
"top"
,
formatter
:
function
(
params
){
//标签内容
if
(
params
.
data
==
0
)
{
return
'
0
'
}
if
(
params
.
data
==
0
)
{
return
''
}
return
params
.
data
.
toFixed
(
2
)
}
}
...
...
@@ -293,7 +293,7 @@
show
:
true
,
position
:
"top"
,
formatter
:
function
(
params
){
//标签内容
if
(
params
.
data
==
0
)
{
return
'
0
'
}
if
(
params
.
data
==
0
)
{
return
''
}
return
(
params
.
data
*
100
).
toFixed
(
0
)
+
'%'
}
}
...
...
@@ -453,7 +453,11 @@
queryAnalysisById
(
this
.
propertyId
).
then
(
res
=>
{
console
.
log
(
JSON
.
stringify
(
res
.
data
))
// 饼图图表数据
this
.
houseUnitCharts
.
rows
=
res
.
data
.
pieDetilDtoList
res
.
data
.
pieDetilDtoList
.
forEach
(
item
=>
{
if
(
item
.
supplication
&&
item
.
supplication
>
0
)
{
this
.
houseUnitCharts
.
rows
.
push
(
item
)
}
}
)
// 饼图表格数据
this
.
houseUnitTable
=
res
.
data
.
pieDetilTableList
this
.
houseWidthTable
=
res
.
data
.
barDetilDtoList
...
...
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