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
2c13f5f5
Commit
2c13f5f5
authored
Jul 31, 2021
by
耿迪迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
值班人员添加 gengdidi
parent
0175dd88
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
5 deletions
+20
-5
gaodeMapView.js
gassafety-web/src/utils/gaodeMapView.js
+11
-2
index.vue
gassafety-web/src/views/enterprise/mapView/index.vue
+9
-3
No files found.
gassafety-web/src/utils/gaodeMapView.js
View file @
2c13f5f5
...
...
@@ -18,7 +18,8 @@ export const DEVICE_TYPE = {
FLOWMETER
:
"4"
,
DUTYPERSON
:
"5"
,
WORKORDER
:
"6"
,
PRESSUREGAGE
:
"7"
PRESSUREGAGE
:
"7"
,
INSPECTOR
:
"8"
};
class
gaodeMap
{
// 所有线的数组
...
...
@@ -158,7 +159,7 @@ class gaodeMap {
offset
:
new
AMap
.
Pixel
(
0
,
5
)
});
this
.
setMarkerIcon
(
marker
);
if
(
DEVICE_TYPE
.
WORKORDER
!=
markerType
)
{
if
(
DEVICE_TYPE
.
WORKORDER
!=
markerType
&&
DEVICE_TYPE
.
INSPECTOR
!=
markerType
)
{
marker
.
content
=
this
.
getMarketContent
(
data
);
marker
.
on
(
"mouseover"
,
infoOpen
);
marker
.
on
(
"mouseout"
,
infoClose
);
...
...
@@ -389,6 +390,14 @@ class gaodeMap {
marker
.
setIcon
(
icon
);
break
;
}
case
DEVICE_TYPE
.
INSPECTOR
:
{
let
icon
=
new
AMap
.
Icon
({
//size: new AMap.Size(51, 23),
image
:
require
(
"../assets/images/zhibanrenyuan.png"
)
});
marker
.
setIcon
(
icon
);
break
;
}
}
}
...
...
gassafety-web/src/views/enterprise/mapView/index.vue
View file @
2c13f5f5
...
...
@@ -170,7 +170,7 @@ export default {
this
.
rightBototmData
.
push
(...
res
.
data
);
});
console
.
log
(
this
.
rightBototmData
);
},
},
mounted
()
{
this
.
initMap
();
},
...
...
@@ -375,7 +375,13 @@ export default {
});
},
getInspectionDataByInspector
(){
getInspectionDataByInspector
().
then
((
res
)
=>
{
this
.
gaoMap
.
addMarker
(
DEVICE_TYPE
.
INSPECTOR
,
{
longitude
:
114.525243
,
latitude
:
38.035002
}
);
/* getInspectionDataByInspector().then((res) =>{
if(res.code == 200){
console.log(res.data);
for(var i =0; i<res.data.length; i++){
...
...
@@ -386,7 +392,7 @@ export default {
);
}
}
});
});
*/
},
searchClear
()
{
this
.
iconClass
=
"icon-create"
;
...
...
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