zhangzengfei
2022-07-20 4a800a8fc83c6bd1f86a8e847b079a51a7532c09
src/pages/cameraAccess/index/VideoManage.vue
@@ -114,19 +114,22 @@
      }
    },
    "TreeDataPool.selectedNode": function (node) {
      console.log(this.TreeDataPool.selectedNode);
      if (this.activeName == "camera-info") {
        if (this.TreeDataPool.treeActiveName == "camera") {
          this.$refs.cameraInfo.selectCamera(node);
        }
      } else if (this.activeName === "separate-rule") {
        this.$refs.sepRule.Camera = {};
        this.$refs.sepRule.initCameraData(node.id);
        this.$refs.sepRule.initCameraData(node.id, node.cameraType);
      }
    },
    "TreeDataPool.selectedNodes": {
      handler(nodes) {
      handler() {
        if (this.activeName == "linkage-rule") {
          this.$refs.linkRule.initCameraData();
          this.$refs.linkRule.initCameraData(
            this.TreeDataPool.selectedNode.cameraType
          );
        }
      },
      deep: true,
@@ -139,6 +142,7 @@
        this.$nextTick(() => {
          if (this.activeName == "camera-info") {
            this.$refs.dataStackInfo.selectDir(node);
            this.$refs.dataStackInfo.getRule();
          } else if (this.activeName == "separate-rule" && node.length !== 0) {
            this.$refs.sepRule.initCameraData(node.id);
          }
@@ -220,15 +224,19 @@
          this.$refs.cameraInfo.selectCamera(this.TreeDataPool.selectedNode);
        } else if (this.TreeDataPool.treeActiveName == "dataStack") {
          this.$refs.dataStackInfo.selectDir(this.DataStackPool.selectedDir);
          this.$refs.dataStackInfo.getRule();
        }
      } else if (tab.name === "separate-rule") {
        if (this.TreeDataPool.treeActiveName == "camera") {
          this.$refs.sepRule.initCameraData(this.TreeDataPool.selectedNode.id);
          this.$refs.sepRule.initCameraData(
            this.TreeDataPool.selectedNode.id,
            this.TreeDataPool.selectedNode.cameraType
          );
        } else if (this.TreeDataPool.treeActiveName == "dataStack") {
          this.$refs.sepRule.initCameraData(this.DataStackPool.selectedDir.id);
        }
      } else if (this.activeName == "linkage-rule") {
        this.$refs.linkRule.initCameraData();
        //   this.$refs.linkRule.initCameraData();
      } else if (this.activeName == "poll-setting") {
        this.$nextTick(() => {
          this.$refs.pullSetting.initLineChart();