From c746783c4f570f9bdbe2d62b22bda22308b0dfba Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期一, 05 十二月 2022 15:27:35 +0800
Subject: [PATCH] 修复断流数据展示的内容

---
 src/views/hashrate/CameraManage/index.vue |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/src/views/hashrate/CameraManage/index.vue b/src/views/hashrate/CameraManage/index.vue
index d5ca7ec..697b9c2 100644
--- a/src/views/hashrate/CameraManage/index.vue
+++ b/src/views/hashrate/CameraManage/index.vue
@@ -51,7 +51,8 @@
       cluster: "",
       clusterData: [],
       intervalTimer: null,
-      screenHeight: 0
+      screenHeight: 0,
+      nodeDevId: ""
     }
   },
 
@@ -62,12 +63,13 @@
   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)
         }
       } else if (this.activeTab === "鍦烘櫙閰嶇疆") {
-        this.$refs.sepRule.initCameraData(node.id)
+        this.$refs.sepRule.initCameraData(node.id, node.devId)
         if (!this.TreeDataPool.multiple) {
           this.$refs.sepRule.showRules(node.id)
         }
@@ -108,7 +110,7 @@
           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)
           }
         })
       },
@@ -194,10 +196,10 @@
         }
       } 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)
         }
       }
     },

--
Gitblit v1.8.0