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

值班人员添加 gengdidi

parent 0175dd88
......@@ -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;
}
}
}
......
......@@ -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";
......
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