Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gassafety
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
耿迪迪
gassafety
Commits
fc10f4fc
Commit
fc10f4fc
authored
Jul 29, 2021
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
z
parent
d5c4d564
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
gaodeMap.js
gassafety-web/src/utils/gaodeMap.js
+8
-8
index.vue
gassafety-web/src/views/enterprise/map/index.vue
+1
-1
No files found.
gassafety-web/src/utils/gaodeMap.js
View file @
fc10f4fc
...
@@ -850,18 +850,18 @@ class gaodeMap {
...
@@ -850,18 +850,18 @@ class gaodeMap {
let
that
=
this
;
let
that
=
this
;
AMap
.
plugin
([
"AMap.AutoComplete"
,
"AMap.PlaceSearch"
],
function
()
{
AMap
.
plugin
([
"AMap.AutoComplete"
,
"AMap.PlaceSearch"
],
function
()
{
//输入提示
//输入提示
var
autoOptions
=
{
//
var autoOptions = {
input
:
inputId
//
input: inputId
};
//
};
let
auto
=
new
AMap
.
AutoComplete
(
autoOptions
);
//
let auto = new AMap.AutoComplete(autoOptions);
that
.
placeSearch
=
new
AMap
.
PlaceSearch
({
that
.
placeSearch
=
new
AMap
.
PlaceSearch
({
map
:
map
map
:
map
});
});
//构造地点查询类
//构造地点查询类
auto
.
on
(
"select"
,
function
(
e
)
{
//
auto.on("select", function(e) {
that
.
searchSelectAdcode
=
e
.
poi
.
adcode
;
//
that.searchSelectAdcode = e.poi.adcode;
that
.
searchSelectName
=
e
.
poi
.
name
;
//
that.searchSelectName = e.poi.name;
});
//
});
});
});
}
}
...
...
gassafety-web/src/views/enterprise/map/index.vue
View file @
fc10f4fc
...
@@ -360,7 +360,7 @@ export default {
...
@@ -360,7 +360,7 @@ export default {
this
.
gaoMap
.
closeAddMarker
();
this
.
gaoMap
.
closeAddMarker
();
this
.
gaoMap
.
removeMarkerDragg
();
this
.
gaoMap
.
removeMarkerDragg
();
this
.
gaoMap
.
mapOperateType
=
"normal"
;
this
.
gaoMap
.
mapOperateType
=
"normal"
;
map
.
remove
(
this
.
gaodeMap
.
markerOverlays
);
//
map.remove(this.gaodeMap.markerOverlays);
},
},
search
()
{
search
()
{
this
.
searchClear
();
this
.
searchClear
();
...
...
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