|
@@ -270,7 +270,7 @@ export default {
|
|
this.getTreeselect();
|
|
this.getTreeselect();
|
|
this.deptId = Cookies.get("deptId");
|
|
this.deptId = Cookies.get("deptId");
|
|
// this.getSensorListByDeptIds()
|
|
// this.getSensorListByDeptIds()
|
|
- this.getMonitorDeviceAndDataLists();
|
|
|
|
|
|
+ this.getMonitorDeviceAndDataLists(this.deptId);
|
|
this.getDlblistBydeptIds(this.deptId);
|
|
this.getDlblistBydeptIds(this.deptId);
|
|
// this.chuanSet();
|
|
// this.chuanSet();
|
|
this.selectDeviceType(-1);
|
|
this.selectDeviceType(-1);
|
|
@@ -897,7 +897,7 @@ export default {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
} else if (that.localMark == "chuan") {
|
|
} else if (that.localMark == "chuan") {
|
|
- that.getSensorListByDeptId()
|
|
|
|
|
|
+ //that.getSensorListByDeptId()
|
|
that.getMonitorDeviceAndDataList(data.id);
|
|
that.getMonitorDeviceAndDataList(data.id);
|
|
} else if (that.localMark == "la") {
|
|
} else if (that.localMark == "la") {
|
|
that.getDlblistBydeptId(this.deptId);
|
|
that.getDlblistBydeptId(this.deptId);
|
|
@@ -930,7 +930,7 @@ export default {
|
|
this.placeholderMsg = "请输入传感器名称";
|
|
this.placeholderMsg = "请输入传感器名称";
|
|
this.deptId = Cookies.get("deptId");
|
|
this.deptId = Cookies.get("deptId");
|
|
let that = this;
|
|
let that = this;
|
|
- this.getMonitorDeviceAndDataList(null);
|
|
|
|
|
|
+ this.getMonitorDeviceAndDataList(this.deptId);
|
|
clearInterval(this.cgqTimer);
|
|
clearInterval(this.cgqTimer);
|
|
},
|
|
},
|
|
//传感器2
|
|
//传感器2
|
|
@@ -1287,6 +1287,13 @@ export default {
|
|
markersMap.lat = res.data.visuForestCloudCameraBOList[i].latitude;
|
|
markersMap.lat = res.data.visuForestCloudCameraBOList[i].latitude;
|
|
markersMap.radius =
|
|
markersMap.radius =
|
|
res.data.visuForestCloudCameraBOList[i].cameraRadius;
|
|
res.data.visuForestCloudCameraBOList[i].cameraRadius;
|
|
|
|
+ if (res.data.visuForestCloudCameraBOList[i].cameraUse == 1) {
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata-slmonitor";
|
|
|
|
+ } else if (res.data.visuForestCloudCameraBOList[i].cameraUse == 2) {
|
|
|
|
+ markersMap.icon = "camera";
|
|
|
|
+ }else if (res.data.visuForestCloudCameraBOList[i].cameraUse == 3) {
|
|
|
|
+ markersMap.icon = "sj-icon-map-centerdata-slmonitor-traffic";
|
|
|
|
+ }
|
|
markersMap.bindPopupHtml =
|
|
markersMap.bindPopupHtml =
|
|
'<div class="map-tip">' +
|
|
'<div class="map-tip">' +
|
|
"<span>" +
|
|
"<span>" +
|