Commit 2c13f5f5 authored by 耿迪迪's avatar 耿迪迪

值班人员添加 gengdidi

parent 0175dd88
...@@ -18,7 +18,8 @@ export const DEVICE_TYPE = { ...@@ -18,7 +18,8 @@ export const DEVICE_TYPE = {
FLOWMETER: "4", FLOWMETER: "4",
DUTYPERSON: "5", DUTYPERSON: "5",
WORKORDER: "6", WORKORDER: "6",
PRESSUREGAGE: "7" PRESSUREGAGE: "7",
INSPECTOR: "8"
}; };
class gaodeMap { class gaodeMap {
// 所有线的数组 // 所有线的数组
...@@ -158,7 +159,7 @@ class gaodeMap { ...@@ -158,7 +159,7 @@ class gaodeMap {
offset: new AMap.Pixel(0, 5) offset: new AMap.Pixel(0, 5)
}); });
this.setMarkerIcon(marker); this.setMarkerIcon(marker);
if (DEVICE_TYPE.WORKORDER != markerType) { if (DEVICE_TYPE.WORKORDER != markerType && DEVICE_TYPE.INSPECTOR != markerType) {
marker.content = this.getMarketContent(data); marker.content = this.getMarketContent(data);
marker.on("mouseover", infoOpen); marker.on("mouseover", infoOpen);
marker.on("mouseout", infoClose); marker.on("mouseout", infoClose);
...@@ -389,6 +390,14 @@ class gaodeMap { ...@@ -389,6 +390,14 @@ class gaodeMap {
marker.setIcon(icon); marker.setIcon(icon);
break; 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;
}
} }
} }
......
...@@ -170,7 +170,7 @@ export default { ...@@ -170,7 +170,7 @@ export default {
this.rightBototmData.push(...res.data); this.rightBototmData.push(...res.data);
}); });
console.log(this.rightBototmData); console.log(this.rightBototmData);
}, },
mounted() { mounted() {
this.initMap(); this.initMap();
}, },
...@@ -375,7 +375,13 @@ export default { ...@@ -375,7 +375,13 @@ export default {
}); });
}, },
getInspectionDataByInspector(){ getInspectionDataByInspector(){
getInspectionDataByInspector().then((res) =>{
this.gaoMap.addMarker(
DEVICE_TYPE.INSPECTOR,
{longitude:114.525243,latitude:38.035002}
);
/* getInspectionDataByInspector().then((res) =>{
if(res.code == 200){ if(res.code == 200){
console.log(res.data); console.log(res.data);
for(var i =0; i<res.data.length; i++){ for(var i =0; i<res.data.length; i++){
...@@ -386,7 +392,7 @@ export default { ...@@ -386,7 +392,7 @@ export default {
); );
} }
} }
}); });*/
}, },
searchClear() { searchClear() {
this.iconClass = "icon-create"; this.iconClass = "icon-create";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment