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
3da0c3a3
Commit
3da0c3a3
authored
Jul 28, 2021
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
地图问题修改 gengdidi
parent
c8b854a7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
19 deletions
+26
-19
gaodeMap.js
gassafety-web/src/utils/gaodeMap.js
+1
-1
index.vue
gassafety-web/src/views/enterprise/map/index.vue
+25
-18
No files found.
gassafety-web/src/utils/gaodeMap.js
View file @
3da0c3a3
...
...
@@ -172,7 +172,7 @@ class gaodeMap {
that
.
deleteMarker
(
markerType
,
data
.
deviceId
);
}
}
else
{
map
.
setZoomAndCenter
(
13
,
e
.
target
.
getPosition
());
//
map.setZoomAndCenter(13, e.target.getPosition());
let
infoWindow
=
new
AMap
.
InfoWindow
({
isCustom
:
true
,
offset
:
new
AMap
.
Pixel
(
24
,
-
38
),
...
...
gassafety-web/src/views/enterprise/map/index.vue
View file @
3da0c3a3
...
...
@@ -267,37 +267,44 @@ export default {
this
.
iconClass
=
"icon-create"
;
this
.
createValue
=
0
;
this
.
createLabel
=
"新建"
;
this
.
gaoMap
.
closeAddMarker
();
},
editDevice
()
{
this
.
targetNum
=
this
.
targetNum
!=
2
?
2
:
0
;
this
.
gaoMap
.
lineType
=
this
.
targetNum
;
console
.
log
(
this
.
gaoMap
.
lineType
);
if
(
this
.
targetNum
!=
2
)
{
this
.
gaoMap
.
linePolyEditorAllClose
();
this
.
gaoMap
.
removeMarkerDragg
();
this
.
gaoMap
.
mapOperateType
=
"normal"
;
}
else
{
// 如果正在新建线条,则清空
this
.
gaoMap
.
newLineReset
();
this
.
deviceType
=
false
;
this
.
gaoMap
.
mapOperateType
=
"edit"
;
this
.
gaoMap
.
addMarkerDragg
();
// this.gaoMap.placeSearch.clear();
this
.
gaoMap
.
closeAddMarker
();
}
this
.
createReset
();
// 如果正在新建线条,则清空
this
.
gaoMap
.
newLineReset
();
this
.
deviceType
=
false
;
this
.
gaoMap
.
mapOperateType
=
"edit"
;
this
.
gaoMap
.
addMarkerDragg
();
// this.gaoMap.placeSearch.clear();
this
.
gaoMap
.
closeAddMarker
();
},
deleteDevice
()
{
this
.
targetNum
=
this
.
targetNum
!=
3
?
3
:
0
;
this
.
gaoMap
.
lineType
=
this
.
targetNum
;
// 如果正在新建线条,则清空
this
.
gaoMap
.
newLineReset
();
// 清空所有正在编辑状态的线
this
.
gaoMap
.
linePolyEditorAllClose
();
if
(
this
.
targetNum
!=
3
)
{
this
.
gaoMap
.
removeMarkerDragg
();
this
.
gaoMap
.
mapOperateType
=
"normal"
;
}
else
{
// 如果正在新建线条,则清空
this
.
gaoMap
.
newLineReset
();
// 清空所有正在编辑状态的线
this
.
gaoMap
.
linePolyEditorAllClose
();
this
.
deviceType
=
false
;
this
.
gaoMap
.
mapOperateType
=
"delete"
;
this
.
gaoMap
.
removeMarkerDragg
();
//this.gaoMap.placeSearch.clear();
this
.
gaoMap
.
closeAddMarker
();
}
this
.
createReset
();
this
.
deviceType
=
false
;
this
.
gaoMap
.
mapOperateType
=
"delete"
;
this
.
gaoMap
.
removeMarkerDragg
();
//this.gaoMap.placeSearch.clear();
this
.
gaoMap
.
closeAddMarker
();
},
selectDeviceType
(
val
)
{
// if("add" == this.operationType){
...
...
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