Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pudong-elevator-map
Project
Project
Details
Activity
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
郭铭瑶
pudong-elevator-map
Commits
d6578e88
Commit
d6578e88
authored
Apr 22, 2020
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增潍坊楼栋数据
parent
2bf545a7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27151 additions
and
124 deletions
+27151
-124
index.js
src/mock/index.js
+2
-0
weifang-building.js
src/mock/weifang-building.js
+27138
-0
weifang.js
src/mock/weifang.js
+9
-122
main.vue
src/views/main.vue
+2
-2
No files found.
src/mock/index.js
View file @
d6578e88
...
@@ -24,6 +24,7 @@ import tangzhen from './tangzhen'
...
@@ -24,6 +24,7 @@ import tangzhen from './tangzhen'
import
tangzhenBuilding
from
'./tangzhen-building'
import
tangzhenBuilding
from
'./tangzhen-building'
import
wanxiang
from
'./wanxiang'
import
wanxiang
from
'./wanxiang'
import
weifang
from
'./weifang'
import
weifang
from
'./weifang'
import
weifangBuilding
from
'./weifang-building'
import
xinchang
from
'./xinchang'
import
xinchang
from
'./xinchang'
import
xinchangBuilding
from
'./xinchang-building'
import
xinchangBuilding
from
'./xinchang-building'
import
xuanqiao
from
'./xuanqiao'
import
xuanqiao
from
'./xuanqiao'
...
@@ -111,4 +112,5 @@ export const mockBuilding = {
...
@@ -111,4 +112,5 @@ export const mockBuilding = {
tangzhenBuilding
,
tangzhenBuilding
,
xinchangBuilding
,
xinchangBuilding
,
xuanqiaoBuilding
,
xuanqiaoBuilding
,
weifangBuilding
,
}
}
src/mock/weifang-building.js
0 → 100644
View file @
d6578e88
This diff is collapsed.
Click to expand it.
src/mock/weifang.js
View file @
d6578e88
...
@@ -15,47 +15,7 @@ export default {
...
@@ -15,47 +15,7 @@ export default {
[
121.513639
,
31.218483
],
[
121.513639
,
31.218483
],
],
],
'community'
:
[{
'community'
:
[{
'name'
:
'源竹小区'
,
name
:
'崂山路551弄'
,
'address'
:
'潍坊路355弄2-23号'
,
'level'
:
3
,
'location'
:
[
121.533809
,
31.230157
],
'path'
:
[
[
121.534326
,
31.229939
],
[
121.534669
,
31.230118
],
[
121.535012
,
31.230276
],
[
121.535761
,
31.229082
],
[
121.535783
,
31.228994
],
[
121.535766
,
31.228925
],
[
121.535719
,
31.22888
],
[
121.535088
,
31.228668
],
[
121.534849
,
31.228602
],
[
121.534081
,
31.228379
],
[
121.533773
,
31.229096
],
[
121.533634
,
31.229402
],
[
121.533551
,
31.229408
],
[
121.533447
,
31.229355
],
[
121.533157
,
31.229154
],
[
121.532934
,
31.229043
],
[
121.532722
,
31.22896
],
[
121.532384
,
31.229781
],
[
121.533172
,
31.230042
],
[
121.532912
,
31.230637
],
[
121.532434
,
31.230524
],
[
121.53229
,
31.230722
],
[
121.532187
,
31.230812
],
[
121.53204
,
31.230911
],
[
121.531966
,
31.230906
],
[
121.531989
,
31.231568
],
[
121.532535
,
31.231565
],
[
121.532728
,
31.231597
],
[
121.533013
,
31.231684
],
[
121.533916
,
31.231967
],
[
121.534745
,
31.230665
],
[
121.534082
,
31.230359
],
[
121.534326
,
31.229939
]
]
},
{
name
:
'泉东(二)小区'
,
address
:
'崂山路551弄34-37号'
,
address
:
'崂山路551弄34-37号'
,
level
:
1
,
level
:
1
,
location
:
[
121.522343
,
31.22704
],
location
:
[
121.522343
,
31.22704
],
...
@@ -130,7 +90,7 @@ export default {
...
@@ -130,7 +90,7 @@ export default {
[
121.526167
,
31.21587
]
[
121.526167
,
31.21587
]
]
]
},
{
},
{
name
:
'东明
苑(东明路)
'
,
name
:
'东明
(一)
'
,
address
:
'东明路383弄之1-35号'
,
address
:
'东明路383弄之1-35号'
,
level
:
1
,
level
:
1
,
location
:
[
121.510785
,
31.18252
],
location
:
[
121.510785
,
31.18252
],
...
@@ -165,7 +125,7 @@ export default {
...
@@ -165,7 +125,7 @@ export default {
[
121.510691
,
31.181325
]
[
121.510691
,
31.181325
]
]
]
},
{
},
{
'name'
:
'
滨江大楼
'
,
'name'
:
'
浦电路29弄小区
'
,
'address'
:
'浦电路29弄之1-35号'
,
'address'
:
'浦电路29弄之1-35号'
,
'level'
:
1
,
'level'
:
1
,
'location'
:
[
121.514992
,
31.216893
],
'location'
:
[
121.514992
,
31.216893
],
...
@@ -234,7 +194,7 @@ export default {
...
@@ -234,7 +194,7 @@ export default {
[
121.521327
,
31.221895
]
[
121.521327
,
31.221895
]
]
]
},
{
},
{
name
:
'潍坊十村
一小区
'
,
name
:
'潍坊十村'
,
address
:
'潍坊路154弄1-33号'
,
address
:
'潍坊路154弄1-33号'
,
level
:
1
,
level
:
1
,
location
:
[
121.525473
,
31.224755
],
location
:
[
121.525473
,
31.224755
],
...
@@ -256,7 +216,7 @@ export default {
...
@@ -256,7 +216,7 @@ export default {
[
121.524223
,
31.225003
]
[
121.524223
,
31.225003
]
]
]
},
{
},
{
name
:
'
潍坊
六村'
,
name
:
'六村'
,
address
:
'南泉路东100米'
,
address
:
'南泉路东100米'
,
level
:
1
,
level
:
1
,
location
:
[
121.522414
,
31.222188
],
location
:
[
121.522414
,
31.222188
],
...
@@ -280,7 +240,7 @@ export default {
...
@@ -280,7 +240,7 @@ export default {
[
121.522557
,
31.222682
]
[
121.522557
,
31.222682
]
]
]
},
{
},
{
name
:
'
潍坊
七村'
,
name
:
'七村'
,
address
:
'潍坊路716号'
,
address
:
'潍坊路716号'
,
level
:
1
,
level
:
1
,
location
:
[
121.52202
,
31.223705
],
location
:
[
121.52202
,
31.223705
],
...
@@ -414,7 +374,7 @@ export default {
...
@@ -414,7 +374,7 @@ export default {
[
121.52647
,
31.222904
]
[
121.52647
,
31.222904
]
]
]
},
{
},
{
name
:
'竹园
新村
'
,
name
:
'竹园
(一)小区
'
,
address
:
'潍坊路335弄潍坊路375弄源深路600弄1支弄2支弄'
,
address
:
'潍坊路335弄潍坊路375弄源深路600弄1支弄2支弄'
,
level
:
1
,
level
:
1
,
location
:
[
121.531411
,
31.228451
],
location
:
[
121.531411
,
31.228451
],
...
@@ -439,7 +399,7 @@ export default {
...
@@ -439,7 +399,7 @@ export default {
[
121.531077
,
31.227349
]
[
121.531077
,
31.227349
]
]
]
},
{
},
{
name
:
'竹园小区
-南区
'
,
name
:
'竹园小区
(二)
'
,
address
:
'潍坊路252弄1-5号'
,
address
:
'潍坊路252弄1-5号'
,
level
:
1
,
level
:
1
,
location
:
[
121.532421
,
31.22743
],
location
:
[
121.532421
,
31.22743
],
...
@@ -455,7 +415,7 @@ export default {
...
@@ -455,7 +415,7 @@ export default {
[
121.531509
,
31.22737
]
[
121.531509
,
31.22737
]
]
]
},
{
},
{
name
:
'
王家宅
小区'
,
name
:
'
北张家浜188弄
小区'
,
address
:
'北张家浜路188弄之1-18号'
,
address
:
'北张家浜路188弄之1-18号'
,
level
:
1
,
level
:
1
,
location
:
[
121.525754
,
31.216764
],
location
:
[
121.525754
,
31.216764
],
...
@@ -488,66 +448,6 @@ export default {
...
@@ -488,66 +448,6 @@ export default {
[
121.526057
,
31.217342
],
[
121.526057
,
31.217342
],
[
121.526215
,
31.217108
]
[
121.526215
,
31.217108
]
]
]
},
{
'name'
:
'兰园小区(张杨路)'
,
'address'
:
'张杨路310弄1-47号'
,
'level'
:
3
,
'location'
:
[
121.513383
,
31.224824
],
'path'
:
[
[
121.512939
,
31.223976
],
[
121.512731
,
31.224427
],
[
121.513314
,
31.224671
],
[
121.512826
,
31.225643
],
[
121.513267
,
31.225798
],
[
121.513335
,
31.225808
],
[
121.513396
,
31.225792
],
[
121.514088
,
31.224411
],
[
121.514109
,
31.224362
],
[
121.512939
,
31.223976
]
]
},
{
'name'
:
'东南新村(张杨路)'
,
'address'
:
'浦东南路1288号'
,
'level'
:
3
,
'location'
:
[
121.516394
,
31.225222
],
'path'
:
[
[
121.515943
,
31.226391
],
[
121.516117
,
31.226453
],
[
121.516179
,
31.226445
],
[
121.516453
,
31.226531
],
[
121.516914
,
31.225396
],
[
121.517474
,
31.2236
],
[
121.51706
,
31.223502
],
[
121.517005
,
31.223682
],
[
121.516938
,
31.223718
],
[
121.516858
,
31.223946
],
[
121.516509
,
31.223866
],
[
121.516075
,
31.224861
],
[
121.51602
,
31.224841
],
[
121.515659
,
31.225561
],
[
121.515205
,
31.226433
],
[
121.515201
,
31.226484
],
[
121.515784
,
31.226698
],
[
121.515943
,
31.226391
]
]
},
{
'name'
:
'泉东(二)小区'
,
'address'
:
'崂山路551弄34-37号'
,
'level'
:
3
,
'location'
:
[
121.522343
,
31.22704
],
'path'
:
[
[
121.521916
,
31.226658
],
[
121.521722
,
31.227085
],
[
121.522793
,
31.22742
],
[
121.522955
,
31.226998
],
[
121.521916
,
31.226658
]
]
},
{
'name'
:
'潍坊路89弄小区'
,
'address'
:
'潍坊路89弄小区'
,
'level'
:
3
,
'location'
:
[
121.519821
,
31.223889
],
'path'
:
[],
},
{
},
{
'name'
:
'潍坊四村'
,
'name'
:
'潍坊四村'
,
'address'
:
'浦电路221号临附近'
,
'address'
:
'浦电路221号临附近'
,
...
@@ -621,19 +521,6 @@ export default {
...
@@ -621,19 +521,6 @@ export default {
[
121.521689
,
31.218695
],
[
121.521689
,
31.218695
],
[
121.521842
,
31.218259
]
[
121.521842
,
31.218259
]
]
]
},
{
name
:
'浦东南路1780弄小区'
,
address
:
'浦东南路1780弄1-5号'
,
level
:
3
,
location
:
[
121.518502
,
31.21658
],
path
:
[
[
121.518381
,
31.216368
],
[
121.518506
,
31.216314
],
[
121.518591
,
31.216313
],
[
121.518633
,
31.216816
],
[
121.518397
,
31.216828
],
[
121.518381
,
31.216368
]
]
},
{
},
{
'name'
:
'众盛公寓'
,
'name'
:
'众盛公寓'
,
'address'
:
'浦电路53弄之1-16号'
,
'address'
:
'浦电路53弄之1-16号'
,
...
...
src/views/main.vue
View file @
d6578e88
...
@@ -254,7 +254,7 @@ export default {
...
@@ -254,7 +254,7 @@ export default {
if
(
!
buildingList
)
return
if
(
!
buildingList
)
return
// this.detailData = buildingList.building.filter(item => item.name.indexOf(name) >= 0)
// this.detailData = buildingList.building.filter(item => item.name.indexOf(name) >= 0)
this
.
detailData
=
buildingList
.
building
.
filter
(
item
=>
{
this
.
detailData
=
buildingList
.
building
.
filter
(
item
=>
{
const
buildingName
=
item
.
name
&&
item
.
name
.
replace
(
'(补)'
,
''
).
replace
(
'(补)'
,
''
)
const
buildingName
=
item
.
name
&&
(
item
.
name
+
''
)
.
replace
(
'(补)'
,
''
).
replace
(
'(补)'
,
''
)
return
buildingName
.
indexOf
(
name
)
>=
0
||
(
item
.
buildingNo
+
''
).
indexOf
(
name
)
>=
0
return
buildingName
.
indexOf
(
name
)
>=
0
||
(
item
.
buildingNo
+
''
).
indexOf
(
name
)
>=
0
})
})
this
.
detailModal
=
true
this
.
detailModal
=
true
...
@@ -368,7 +368,7 @@ export default {
...
@@ -368,7 +368,7 @@ export default {
}
}
const
markerList
=
[]
const
markerList
=
[]
this
.
buildingList
[
`
${
this
.
curStreet
}
Building`
].
building
.
forEach
(
item
=>
{
this
.
buildingList
[
`
${
this
.
curStreet
}
Building`
].
building
.
forEach
(
item
=>
{
const
buildingName
=
item
.
name
&&
item
.
name
.
replace
(
'(补)'
,
''
).
replace
(
'(补)'
,
''
)
const
buildingName
=
item
.
name
&&
(
item
.
name
+
''
)
.
replace
(
'(补)'
,
''
).
replace
(
'(补)'
,
''
)
if
(
buildingName
.
indexOf
(
name
)
<
0
&&
(
item
.
buildingNo
+
''
).
indexOf
(
name
)
<
0
)
return
if
(
buildingName
.
indexOf
(
name
)
<
0
&&
(
item
.
buildingNo
+
''
).
indexOf
(
name
)
<
0
)
return
if
(
item
.
lon
&&
item
.
lat
&&
item
.
intention
)
{
if
(
item
.
lon
&&
item
.
lat
&&
item
.
intention
)
{
const
image
=
whichImage
(
item
.
intention
)
const
image
=
whichImage
(
item
.
intention
)
...
...
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