|
@@ -220,8 +220,8 @@ export default {
|
|
|
this.bottomMenuList() //获取底部公共组件消息和任务
|
|
|
this.getTreeselect()
|
|
|
this.deptId = Cookies.get("deptId")
|
|
|
- this.getSensorListByDeptId()
|
|
|
- this.getDlblistBydeptId()
|
|
|
+ this.getSensorListByDeptIds()
|
|
|
+ this.getDlblistBydeptIds()
|
|
|
this.selectDeviceType()
|
|
|
},
|
|
|
data() {
|
|
@@ -387,11 +387,13 @@ export default {
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
that.$refs.supermap.clearM();
|
|
|
+ that.$refs.supermap.clearMRadius();
|
|
|
that.$refs.supermap.setMarkers(markersList);
|
|
|
}, 3000);
|
|
|
} else {
|
|
|
setTimeout(() => {
|
|
|
that.$refs.supermap.clearM();
|
|
|
+ that.$refs.supermap.clearMRadius();
|
|
|
}, 3000);
|
|
|
}
|
|
|
})
|
|
@@ -400,7 +402,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 大喇叭
|
|
|
- getDlblistBydeptId() {
|
|
|
+ getDlblistBydeptIds() {
|
|
|
let that = this;
|
|
|
let markersList = [];
|
|
|
getDlblistBydeptId(that.deptId).then(function (res) {
|
|
@@ -412,7 +414,7 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
// 传感器
|
|
|
- getSensorListByDeptId() {
|
|
|
+ getSensorListByDeptIds() {
|
|
|
let that = this;
|
|
|
let markersList = [];
|
|
|
getSensorListByDeptId(that.deptId).then(function (res) {
|
|
@@ -473,11 +475,13 @@ export default {
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
that.$refs.supermap.clearM();
|
|
|
+ that.$refs.supermap.clearMRadius();
|
|
|
that.$refs.supermap.setMarkers(markersList);
|
|
|
}, 3000);
|
|
|
} else {
|
|
|
setTimeout(() => {
|
|
|
that.$refs.supermap.clearM();
|
|
|
+ that.$refs.supermap.clearMRadius();
|
|
|
}, 3000);
|
|
|
}
|
|
|
})
|
|
@@ -681,11 +685,13 @@ export default {
|
|
|
// longitude: "125.3333"
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
+ that.$refs.supermap.clearM();
|
|
|
that.$refs.supermap.clearMRadius()
|
|
|
that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
|
|
|
}, 3000)
|
|
|
}else{
|
|
|
setTimeout(() => {
|
|
|
+ that.$refs.supermap.clearM();
|
|
|
that.$refs.supermap.clearMRadius()
|
|
|
}, 1000)
|
|
|
}
|
|
@@ -780,11 +786,13 @@ export default {
|
|
|
// longitude: "125.3333"
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
+ that.$refs.supermap.clearM();
|
|
|
that.$refs.supermap.clearMRadius()
|
|
|
that.$refs.supermap.setMarkersRadius(this.cameraMarkersList)
|
|
|
}, 3000)
|
|
|
}else{
|
|
|
setTimeout(() => {
|
|
|
+ that.$refs.supermap.clearM();
|
|
|
that.$refs.supermap.clearMRadius()
|
|
|
}, 3000)
|
|
|
}
|