Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform-ui
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
youjj
cloud-platform-ui
Commits
a3ec92dd
Commit
a3ec92dd
authored
May 08, 2019
by
lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图优化
parent
af0cbcce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
companyMap.vue
src/views/baseInfo/companyInfo/companyMap.vue
+5
-4
index.vue
src/views/baseInfo/companyInfo/index.vue
+7
-0
No files found.
src/views/baseInfo/companyInfo/companyMap.vue
View file @
a3ec92dd
...
...
@@ -29,6 +29,7 @@
},
// 经纬度
zoom
:
4
,
// 地图展示级别
pointList
:
[],
map
:
null
,
pickPoint
:
null
,
listQuery
:
{
page
:
1
,
...
...
@@ -43,10 +44,10 @@
},
watch
:
{
provinceName
(
newValue
,
oldValue
)
{
console
.
log
(
this
.
toSonData
);
console
.
log
(
this
.
provinceName
);
// var map = new BMap.Map("map"); //创建Map实例
// map.centerAndZoom(this.provinceName,6);
if
(
this
.
map
){
this
.
map
.
centerAndZoom
(
this
.
provinceName
,
6
);
}
},
},
methods
:
{
...
...
@@ -74,6 +75,7 @@
})
},
handler
({
map
})
{
this
.
map
=
map
;
let
list
=
this
.
toSonData
;
// 定位
this
.
geolocation
(
map
);
...
...
@@ -105,7 +107,6 @@
},
addressDetail
(
point
){
//获取地理位置
let
mydata
=
getSonRegionByCodes
(
1
);
console
.
log
(
mydata
);
var
self
=
this
;
var
myGeo
=
new
BMap
.
Geocoder
();
myGeo
.
getLocation
(
new
BMap
.
Point
(
point
.
lng
,
point
.
lat
),
function
(
result
){
...
...
src/views/baseInfo/companyInfo/index.vue
View file @
a3ec92dd
...
...
@@ -283,7 +283,14 @@
this
.
getList
();
},
getValue
(
e
){
let
that
=
this
;
this
.
listQuery
.
addrCity
=
undefined
;
this
.
provinceRegions
.
map
(
function
(
item
){
if
(
item
.
id
==
that
.
listQuery
.
addrProvince
){
that
.
provinceName
=
item
.
name
;
}
});
this
.
getList
();
},
headCall
:
function
(
msg
)
{
//回调方法,接收子组件传的参数
this
.
listQuery
.
addrProvince
=
msg
;
...
...
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