|
@@ -32,7 +32,7 @@
|
|
|
<!-- -->
|
|
|
<div class="icon icon-dot"></div>
|
|
|
<div class="icon-text">
|
|
|
- <h6>{{ visuForestCloudMapDeviceBOList[0].deviceCount }}</h6>
|
|
|
+ <h6>{{ deviceCount }}</h6>
|
|
|
<h5>{{ visuForestCloudMapDeviceBOList[0].deviceName }}</h5>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -284,12 +284,13 @@ export default {
|
|
|
mounted() {
|
|
|
// 初始化地图数据
|
|
|
this.getSuperMapUrl();
|
|
|
- this.selectCameraByCoverage()
|
|
|
+
|
|
|
setTimeout(() => {
|
|
|
this.selectKeyAreaList();
|
|
|
this.bottomMenuList(); //获取底部公共组件消息和任务
|
|
|
this.getTreeselect();
|
|
|
this.deptId = parseInt(Cookies.get("deptId"));
|
|
|
+ this.selectCameraByCoverage(this.deptId)
|
|
|
this.getMonitorDeviceAndDataLists(this.deptId);
|
|
|
this.getDlblistBydeptIds();
|
|
|
this.selectDeviceType('',-2);
|
|
@@ -300,6 +301,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ deviceCount:0,
|
|
|
jkListIcon:'sj-icon-jkzx',
|
|
|
//摄像头名称
|
|
|
cgqData: [],
|
|
@@ -385,9 +387,9 @@ export default {
|
|
|
},
|
|
|
},
|
|
|
methods: {
|
|
|
- selectCameraByCoverage()
|
|
|
+ selectCameraByCoverage(deptId)
|
|
|
{
|
|
|
- selectCameraByCoverage(365).then(res=>{
|
|
|
+ selectCameraByCoverage(deptId).then(res=>{
|
|
|
this.CameraCoverageList=res.data
|
|
|
})
|
|
|
},
|
|
@@ -518,6 +520,7 @@ export default {
|
|
|
console.log("节点单击事件", data, that.localMark);
|
|
|
// this.findCameraByDept(data.id)
|
|
|
if (that.localMark == "she") {
|
|
|
+ this.selectCameraByCoverage(data.id)
|
|
|
that.selectCameraByDeptId(data.id);
|
|
|
getCamerasByDeptId(data.id).then((res) => {
|
|
|
that.$refs.TVWalls.showTVWall(res.data, {
|
|
@@ -1194,12 +1197,17 @@ export default {
|
|
|
//获取左侧动态感知设备
|
|
|
let that = this;
|
|
|
that.onCoverage=index
|
|
|
+
|
|
|
this.$refs.supermap.clearM()
|
|
|
this.$refs.supermap.clearMRadius()
|
|
|
selectDeviceType({deptId:this.deptId,cameraRadius:cameraRadius,type:8}).then((res) => {
|
|
|
that.cameraMarkersList = [];
|
|
|
that.visuForestCloudMapDeviceBOList =
|
|
|
res.data.visuForestCloudMapDeviceBOList;
|
|
|
+ if(index==-2)
|
|
|
+ {
|
|
|
+ this.deviceCount=res.data.visuForestCloudMapDeviceBOList[0].deviceCount
|
|
|
+ }
|
|
|
that.region = res.data.visuForestCloudTodaySjfbBOList;
|
|
|
|
|
|
if (
|