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
5ef0a2b9
Commit
5ef0a2b9
authored
Jul 29, 2021
by
纪泽龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并jzl
parent
54bfdc33
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
228 additions
and
134 deletions
+228
-134
flowMeter.vue
gassafety-web/src/components/PopWindow/flowMeter.vue
+216
-131
gaodeMap.js
gassafety-web/src/utils/gaodeMap.js
+11
-3
index.vue
gassafety-web/src/views/enterprise/map/index.vue
+1
-0
No files found.
gassafety-web/src/components/PopWindow/flowMeter.vue
View file @
5ef0a2b9
This diff is collapsed.
Click to expand it.
gassafety-web/src/utils/gaodeMap.js
View file @
5ef0a2b9
...
...
@@ -684,14 +684,22 @@ class gaodeMap {
});
that
.
markerOverlays
.
push
(
e
.
obj
);
}
if
(
e
.
obj
&&
e
.
obj
.
getExtData
().
type
==
"newLine"
)
{
console
.
log
(
"挂上事件"
);
that
.
newLineAddEvent
(
e
.
obj
);
// 记录这条线
that
.
newLineObj
=
e
.
obj
;
// console.log(e.obj.getPath().length)
// 如果只有一个点,并没有连成线的时候就不close 大于一个点的时候才执行clse
console
.
log
(
that
.
lineType
)
if
(
e
.
obj
.
getPath
().
length
>
1
)
{
that
.
newLineObj
=
e
.
obj
;
that
.
mouseTool
.
close
();
}
else
{
// that.newLineObj = null;
}
// 关闭
that
.
mouseTool
.
close
();
// 创建一条新线,然后在点地图的时候删除原来的旧线
// that.createNewLine();
...
...
gassafety-web/src/views/enterprise/map/index.vue
View file @
5ef0a2b9
...
...
@@ -270,6 +270,7 @@ export default {
this
.
gaoMap
.
lineType
=
1
;
}
else
{
this
.
gaoMap
.
lineType
=
0
;
this
.
gaoMap
.
mouseTool
.
close
();
}
// 关闭当前线条的infowindow
this
.
gaoMap
.
closeLineInfoWindow
();
...
...
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