|
@@ -218,6 +218,7 @@
|
|
|
//摄像头名称
|
|
|
rightDeptName: undefined,
|
|
|
visuForestCloudCameraBOListSearch: [],
|
|
|
+ tempList: [],
|
|
|
// 部门名称
|
|
|
cgqData: [],
|
|
|
deptName: undefined,
|
|
@@ -284,10 +285,20 @@
|
|
|
this.$refs.tree.filter(val)
|
|
|
},
|
|
|
rightDeptName(val) {
|
|
|
- this.visuForestCloudCameraBOListSearch = [];
|
|
|
- for (let i in this.visuForestCloudCameraBOList) {
|
|
|
- if (this.visuForestCloudCameraBOList[i].cameraName.indexOf(val) != -1) {
|
|
|
- this.visuForestCloudCameraBOListSearch.push(this.visuForestCloudCameraBOList[i]);
|
|
|
+ if(['chuan','la'].includes(this.localMark)){
|
|
|
+ this.visuForestCloudCameraBOListSearch = [];
|
|
|
+ for (let i in this.tempList) {
|
|
|
+ if (this.tempList[i].cameraName.indexOf(val) != -1) {
|
|
|
+ this.visuForestCloudCameraBOListSearch.push(this.tempList[i]);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else{
|
|
|
+ this.visuForestCloudCameraBOListSearch = [];
|
|
|
+ for (let i in this.visuForestCloudCameraBOList) {
|
|
|
+ if (this.visuForestCloudCameraBOList[i].cameraName.indexOf(val) != -1) {
|
|
|
+ this.visuForestCloudCameraBOListSearch.push(this.visuForestCloudCameraBOList[i]);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -580,6 +591,7 @@
|
|
|
let markersList = [];
|
|
|
getMonitorDeviceAndDataList(this.deptId).then((res) => {
|
|
|
this.visuForestCloudCameraBOListSearch = []
|
|
|
+ this.tempList = []
|
|
|
list = res.data
|
|
|
//this.sensorNum = list.length
|
|
|
list.forEach(item => {
|
|
@@ -589,6 +601,7 @@
|
|
|
latitude: item.latitude,
|
|
|
}
|
|
|
this.visuForestCloudCameraBOListSearch.push(dat)
|
|
|
+ this.tempList = that.visuForestCloudCameraBOListSearch
|
|
|
let markersMap = {
|
|
|
lng: 124.59,
|
|
|
lat: 43.02,
|
|
@@ -1051,8 +1064,9 @@
|
|
|
let that = this
|
|
|
selectDeviceType().then(res => {
|
|
|
that.cameraMarkersList = []
|
|
|
+ that.tempList = []
|
|
|
that.visuForestCloudMapDeviceBOList = res.data.visuForestCloudMapDeviceBOList
|
|
|
-
|
|
|
+ that.tempList = res.data.visuForestCloudMapDeviceBOList
|
|
|
that.region = res.data.visuForestCloudTodaySjfbBOList
|
|
|
|
|
|
if (res.data.visuForestCloudTodaySjfbBOList != null && res.data.visuForestCloudTodaySjfbBOList
|