|
@@ -272,8 +272,8 @@ export default {
|
|
this.bottomMenuList(); //获取底部公共组件消息和任务
|
|
this.bottomMenuList(); //获取底部公共组件消息和任务
|
|
this.getTreeselect();
|
|
this.getTreeselect();
|
|
this.deptId = Cookies.get("deptId");
|
|
this.deptId = Cookies.get("deptId");
|
|
- this.getMonitorDeviceAndDataLists(null);
|
|
|
|
- this.getDlblistBydeptIds(null);
|
|
|
|
|
|
+ this.getMonitorDeviceAndDataLists(this.deptId);
|
|
|
|
+ this.getDlblistBydeptIds();
|
|
this.selectDeviceType(-1);
|
|
this.selectDeviceType(-1);
|
|
}, 2000)
|
|
}, 2000)
|
|
},
|
|
},
|
|
@@ -530,10 +530,10 @@ export default {
|
|
this.localMark = "chuan";
|
|
this.localMark = "chuan";
|
|
this.placeholderMsg = "请输入传感器名称";
|
|
this.placeholderMsg = "请输入传感器名称";
|
|
this.deptId = null;
|
|
this.deptId = null;
|
|
- this.getMonitorDeviceAndDataList(null);
|
|
|
|
|
|
+ this.getMonitorDeviceAndDataList(this.deptId);
|
|
clearInterval(this.cgqTimer);
|
|
clearInterval(this.cgqTimer);
|
|
this.cgqTimer = setInterval(() => {
|
|
this.cgqTimer = setInterval(() => {
|
|
- this.getMonitorDeviceAndDataList();
|
|
|
|
|
|
+ this.getMonitorDeviceAndDataList(this.deptId);
|
|
}, 20000);
|
|
}, 20000);
|
|
},
|
|
},
|
|
//传感器2
|
|
//传感器2
|
|
@@ -1159,7 +1159,7 @@ export default {
|
|
selectDeviceType() {
|
|
selectDeviceType() {
|
|
//获取左侧动态感知设备
|
|
//获取左侧动态感知设备
|
|
let that = this;
|
|
let that = this;
|
|
- selectDeviceType().then((res) => {
|
|
|
|
|
|
+ selectDeviceType(this.deptId).then((res) => {
|
|
that.cameraMarkersList = [];
|
|
that.cameraMarkersList = [];
|
|
that.visuForestCloudMapDeviceBOList =
|
|
that.visuForestCloudMapDeviceBOList =
|
|
res.data.visuForestCloudMapDeviceBOList;
|
|
res.data.visuForestCloudMapDeviceBOList;
|
|
@@ -1220,6 +1220,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>" +
|