|
@@ -326,6 +326,7 @@ export default {
|
|
region: [],
|
|
region: [],
|
|
rightDeptName: undefined,
|
|
rightDeptName: undefined,
|
|
visuForestCloudCameraBOListSearch: [],
|
|
visuForestCloudCameraBOListSearch: [],
|
|
|
|
+ tempList: [],
|
|
//左右缩进
|
|
//左右缩进
|
|
indentStyle: "",
|
|
indentStyle: "",
|
|
indentleft: "",
|
|
indentleft: "",
|
|
@@ -350,12 +351,20 @@ export default {
|
|
this.$refs.tree.filter(val);
|
|
this.$refs.tree.filter(val);
|
|
},
|
|
},
|
|
rightDeptName(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]);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -396,6 +405,7 @@ export default {
|
|
let markersList = [];
|
|
let markersList = [];
|
|
getMonitorDeviceAndDataList(deptId).then((res) => {
|
|
getMonitorDeviceAndDataList(deptId).then((res) => {
|
|
this.visuForestCloudCameraBOListSearch = [];
|
|
this.visuForestCloudCameraBOListSearch = [];
|
|
|
|
+ this.tempList = []
|
|
list = res.data;
|
|
list = res.data;
|
|
//this.sensorNum = list.length
|
|
//this.sensorNum = list.length
|
|
list.forEach((item) => {
|
|
list.forEach((item) => {
|
|
@@ -405,6 +415,7 @@ export default {
|
|
latitude: item.latitude,
|
|
latitude: item.latitude,
|
|
};
|
|
};
|
|
this.visuForestCloudCameraBOListSearch.push(dat);
|
|
this.visuForestCloudCameraBOListSearch.push(dat);
|
|
|
|
+ this.tempList = this.visuForestCloudCameraBOListSearch;
|
|
let markersMap = {
|
|
let markersMap = {
|
|
lng: 124.59,
|
|
lng: 124.59,
|
|
lat: 43.02,
|
|
lat: 43.02,
|