ZZJ
2022-06-10 58bf48cea61c6c5b4381a4b8ff5b4a39eb4671eb
src/pages/cameraAccess/index/VideoManage.vue
@@ -120,13 +120,15 @@
        }
      } 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,
@@ -223,12 +225,15 @@
        }
      } 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();