| | |
| | | cluster: "", |
| | | clusterData: [], |
| | | intervalTimer: null, |
| | | screenHeight: 0 |
| | | screenHeight: 0, |
| | | nodeDevId: "" |
| | | } |
| | | }, |
| | | |
| | |
| | | watch: { |
| | | "TreeDataPool.activeNode": function(node) { |
| | | sessionStorage.setItem("cameraDevId", node.devId) |
| | | this.nodeDevId = node.devId |
| | | if (this.activeTab == "信息维护") { |
| | | if (this.TreeDataPool.treeActiveName == "camera") { |
| | | this.$refs.cameraInfo.selectCamera(node) |
| | |
| | | if (this.activeTab == "信息维护") { |
| | | // this.$refs.dataStackInfo.selectDir(node); |
| | | } else if (this.activeTab == "场景配置" && node.length !== 0) { |
| | | this.$refs.sepRule.initCameraData(node.id) |
| | | this.$refs.sepRule.initCameraData(node.id, this.nodeDevId) |
| | | } |
| | | }) |
| | | }, |
| | |
| | | } |
| | | } else if (tab === "场景配置") { |
| | | if (this.TreeDataPool.treeActiveName == "camera") { |
| | | this.$refs.sepRule.initCameraData(this.TreeDataPool.selectedNode.id) |
| | | this.$refs.sepRule.initCameraData(this.TreeDataPool.selectedNode.id, this.nodeDevId) |
| | | this.$refs.sepRule.showRules(this.TreeDataPool.selectedNode.id) |
| | | } else if (this.TreeDataPool.treeActiveName == "dataStack") { |
| | | this.$refs.sepRule.initCameraData(this.DataStackPool.selectedDir.id) |
| | | this.$refs.sepRule.initCameraData(this.DataStackPool.selectedDir.id, this.nodeDevId) |
| | | } |
| | | } |
| | | }, |