|
@@ -114,7 +114,7 @@
|
|
|
</div>
|
|
|
<div class="i-list-con h-25">
|
|
|
<div class="d-l-con" v-for="(item, index) in keyAreaList" :class="{ on: listCurrentIndex3 == index }"
|
|
|
- @click="getRegionalFlag(item.id)">
|
|
|
+ @click="getRegionalFlag(item.id,index)">
|
|
|
<div class="d-l-l-text">
|
|
|
<i class="i-small"></i>
|
|
|
<h4>{{ item.areaName }}</h4>
|
|
@@ -221,7 +221,7 @@
|
|
|
// this.getMonitorDeviceAndDataList()
|
|
|
// }, 5 * 60 * 1000)
|
|
|
this.getDlblistBydeptIds(-1);
|
|
|
- this.selectDeviceType(-1);
|
|
|
+ this.selectDeviceType();
|
|
|
},
|
|
|
beforeDestroy() {
|
|
|
clearInterval(this.cgqTimer); //关闭
|
|
@@ -366,7 +366,7 @@
|
|
|
//传感器2
|
|
|
getMonitorDeviceAndDataLists() {
|
|
|
let that = this;
|
|
|
- getMonitorDeviceAndDataList().then((res) => {
|
|
|
+ getMonitorDeviceAndDataList(this.deptId).then((res) => {
|
|
|
that.sensorNum = res.data.length;
|
|
|
});
|
|
|
},
|
|
@@ -467,7 +467,6 @@
|
|
|
this.onChuan = true;
|
|
|
this.localMark = "chuan";
|
|
|
this.placeholderMsg = "请输入传感器名称";
|
|
|
- this.deptId = null;
|
|
|
this.getMonitorDeviceAndDataList();
|
|
|
clearInterval(this.cgqTimer);
|
|
|
this.cgqTimer = setInterval(() => {
|
|
@@ -1244,9 +1243,9 @@
|
|
|
that.keyAreaList = res.data;
|
|
|
});
|
|
|
},
|
|
|
- getRegionalFlag(id) {
|
|
|
+ getRegionalFlag(id,index) {
|
|
|
//获取重点区域
|
|
|
- this.listCurrentIndex3 = id;
|
|
|
+ this.listCurrentIndex3 = index;
|
|
|
let that = this;
|
|
|
getRegionalFlag(id).then((res) => {
|
|
|
that.graphicsList = [];
|
|
@@ -1438,7 +1437,7 @@
|
|
|
this.iconCurrentIndex1 = index;
|
|
|
//获取左侧动态感知设备
|
|
|
let that = this;
|
|
|
- selectDeviceType().then((res) => {
|
|
|
+ selectDeviceType(that.deptId).then((res) => {
|
|
|
that.cameraMarkersList = [];
|
|
|
that.visuForestCloudMapDeviceBOList =
|
|
|
res.data.visuForestCloudMapDeviceBOList;
|
|
@@ -1967,4 +1966,4 @@
|
|
|
height: 600px;
|
|
|
border: 1px solid red;
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|