|
@@ -114,7 +114,7 @@
|
|
|
prefix-icon="el-icon-search"
|
|
|
style="margin-bottom: 20px"
|
|
|
/>
|
|
|
- <div class="d-l-con" v-for="(item,index) in visuForestCloudCameraBOListSearch"
|
|
|
+ <div class="d-l-con" v-for="(item,index) in visuForestCloudCameraBOList"
|
|
|
:class="{on:listCurrentIndex2 == index}"
|
|
|
v-on:click="dropLocation(item.latitude,item.longitude,index)">
|
|
|
<div class="d-l-l-text">
|
|
@@ -269,6 +269,14 @@ export default {
|
|
|
// 根据名称筛选部门树
|
|
|
deptName(val) {
|
|
|
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]);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
@@ -409,7 +417,6 @@ export default {
|
|
|
}
|
|
|
|
|
|
that.visuForestCloudCameraBOList = res.data.visuForestCloudCameraBOList
|
|
|
- that.visuForestCloudCameraBOListSearch = res.data.visuForestCloudCameraBOListSearch
|
|
|
if (res.data.visuForestCloudCameraBOList != null && res.data.visuForestCloudCameraBOList
|
|
|
.length > 0) {
|
|
|
for (let i = 0; i < res.data.visuForestCloudCameraBOList.length; i++) {
|
|
@@ -504,7 +511,6 @@ export default {
|
|
|
selectCameraByDeptId(depId).then(res => {
|
|
|
//根据设备类型查看列表
|
|
|
that.visuForestCloudCameraBOList = res.data
|
|
|
- that.visuForestCloudCameraBOListSearch = res.data
|
|
|
if (res.data != null && res.data.length > 0) {
|
|
|
for (let i = 0; i < res.data.length; i++) {
|
|
|
let markersMap = {
|