|
@@ -476,7 +476,7 @@ export default {
|
|
};
|
|
};
|
|
if (item.deviceType == 1) {
|
|
if (item.deviceType == 1) {
|
|
// 水质传感器
|
|
// 水质传感器
|
|
- markersMap.icon = "sj-icon-map-centerdata_water_quality_sensor";
|
|
|
|
|
|
+ item.workingStatus == '0' ? markersMap.icon = "sj-icon-map-centerdata_water_quality_sensor" : markersMap.icon = "sj-icon-map-not-centerdata_water_quality_sensor"
|
|
markersMap.bindPopupHtml +=
|
|
markersMap.bindPopupHtml +=
|
|
'<div class="map-tip">' +
|
|
'<div class="map-tip">' +
|
|
"<span>" +
|
|
"<span>" +
|
|
@@ -550,8 +550,7 @@ export default {
|
|
"sj-icon-map-centerdata_hydrological_monitoring_equipment";
|
|
"sj-icon-map-centerdata_hydrological_monitoring_equipment";
|
|
} else if (item.deviceType == 2) {
|
|
} else if (item.deviceType == 2) {
|
|
// 土壤监测设备
|
|
// 土壤监测设备
|
|
- markersMap.icon =
|
|
|
|
- "sj-icon-map-centerdata_soil_monitoring_equipment";
|
|
|
|
|
|
+ item.workingStatus == '0' ? markersMap.icon = "sj-icon-map-centerdata_soil_monitoring_equipment": markersMap.icon = "sj-icon-map-not-centerdata_soil_monitoring_equipment"
|
|
markersMap.bindPopupHtml +=
|
|
markersMap.bindPopupHtml +=
|
|
'<div class="map-tip">' +
|
|
'<div class="map-tip">' +
|
|
"<span>" +
|
|
"<span>" +
|
|
@@ -624,11 +623,10 @@ export default {
|
|
"</div>";
|
|
"</div>";
|
|
} else if (item.deviceType == 4) {
|
|
} else if (item.deviceType == 4) {
|
|
// 病虫害监测站
|
|
// 病虫害监测站
|
|
- markersMap.icon =
|
|
|
|
- "sj-icon-map-centerdata_pest_and_disease_monitoring_station";
|
|
|
|
|
|
+ item.workingStatus == '0' ? markersMap.icon = "sj-icon-map-centerdata_pest_and_disease_monitoring_station" : markersMap.icon = "sj-icon-map-not-centerdata_pest_and_disease_monitoring_station"
|
|
} else if (item.deviceType == 5) {
|
|
} else if (item.deviceType == 5) {
|
|
// 大气传感器
|
|
// 大气传感器
|
|
- markersMap.icon = "sj-icon-map-centerdata_atmospheric_sensor";
|
|
|
|
|
|
+ item.workingStatus == '0' ? markersMap.icon = "sj-icon-map-centerdata_atmospheric_sensor" : markersMap.icon = "sj-icon-map-not-centerdata_atmospheric_sensor"
|
|
if(item.data != null){
|
|
if(item.data != null){
|
|
markersMap.bindPopupHtml +=
|
|
markersMap.bindPopupHtml +=
|
|
'<div class="map-tip">' +
|
|
'<div class="map-tip">' +
|
|
@@ -709,7 +707,7 @@ export default {
|
|
}
|
|
}
|
|
} else if (item.deviceType == 6) {
|
|
} else if (item.deviceType == 6) {
|
|
// 水压传感器
|
|
// 水压传感器
|
|
- markersMap.icon = "sj-icon-map-centerdata_water_pressure_sensor";
|
|
|
|
|
|
+ item.workingStatus == '0' ? markersMap.icon = "sj-icon-map-centerdata_water_pressure_sensor" : markersMap.icon = "sj-icon-map-not-centerdata_water_pressure_sensor"
|
|
markersMap.bindPopupHtml +=
|
|
markersMap.bindPopupHtml +=
|
|
'<div class="map-tip">' +
|
|
'<div class="map-tip">' +
|
|
"<span>" +
|
|
"<span>" +
|
|
@@ -770,7 +768,7 @@ export default {
|
|
"</div>";
|
|
"</div>";
|
|
} else if (item.deviceType == 7) {
|
|
} else if (item.deviceType == 7) {
|
|
//水流速传感器
|
|
//水流速传感器
|
|
- markersMap.icon = "sj-icon-map-centerdata_water_flow_rate";
|
|
|
|
|
|
+ item.workingStatus == '0' ? markersMap.icon = "sj-icon-map-centerdata_water_flow_rate" : markersMap.icon = "sj-icon-map-not-centerdata_water_flow_rate"
|
|
markersMap.bindPopupHtml +=
|
|
markersMap.bindPopupHtml +=
|
|
'<div class="map-tip">' +
|
|
'<div class="map-tip">' +
|
|
"<span>" +
|
|
"<span>" +
|