|
@@ -40,6 +40,7 @@ export default {
|
|
|
return {
|
|
|
videoData:[],
|
|
|
expandedKeys:[],
|
|
|
+ videoIndex:0,
|
|
|
data: [{
|
|
|
id: 1,
|
|
|
label: '一级 1',
|
|
@@ -203,17 +204,24 @@ export default {
|
|
|
console.log(data);
|
|
|
console.log(node);
|
|
|
var arry = this.$refs.tree.getCheckedNodes()
|
|
|
- var pointArry = this.$refs.mapv.pointArry;
|
|
|
- console.log(pointArry);
|
|
|
+ // console.log(data.cameraIndexCode);
|
|
|
+ // var pointArry = this.$refs.mapv.pointArry;
|
|
|
+
|
|
|
if(data.lnglat != null){
|
|
|
if(node == false){
|
|
|
- this.$refs.mapv.removeLayer(data.id);
|
|
|
+ console.log(data.cameraIndexCode);
|
|
|
}else if(node == true){
|
|
|
- this.$refs.mapv.addMarker(data.lnglat.split(','),'监控 (2) 拷贝 20.png',0.2,data.id,data);
|
|
|
+ console.log(data.cameraIndexCode);
|
|
|
+ window.startPreview(data.cameraIndexCode,this.videoIndex);
|
|
|
+ if(this.videoIndex < 8){
|
|
|
+ this.videoIndex = this.videoIndex+1
|
|
|
+ }else{
|
|
|
+ this.videoIndex = 0
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
+ // window.startPreview(window.cameraid,-1);
|
|
|
// startPreview(code,0-8)
|
|
|
// for(var index in arry){
|
|
|
// var obj = arry[index]
|