From db5872786c1e1697a59af41386136ee002bb68ad Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期五, 30 六月 2023 17:17:12 +0800
Subject: [PATCH] 修改为汇丰默认图标,修改处理率计算方式

---
 src/views/hashrate/CameraManage/index.vue |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/src/views/hashrate/CameraManage/index.vue b/src/views/hashrate/CameraManage/index.vue
index 19f4137..697b9c2 100644
--- a/src/views/hashrate/CameraManage/index.vue
+++ b/src/views/hashrate/CameraManage/index.vue
@@ -9,7 +9,7 @@
     <div class="content">
       <div class="column-left" ref="left">
         <div class="resize-line" @mousedown="TextWidthChange"></div>
-        <CameraLeft :appName="'Camera'" ref="left"></CameraLeft>
+        <CameraLeft :appName="'Camera'" ref="left" style="padding-right:10px"></CameraLeft>
       </div>
       <div class="right">
         <div class="tabs">
@@ -51,8 +51,8 @@
       cluster: "",
       clusterData: [],
       intervalTimer: null,
-      leftWith: 0,
-      screenHeight: 0
+      screenHeight: 0,
+      nodeDevId: ""
     }
   },
 
@@ -63,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)
         }
@@ -109,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)
           }
         })
       },
@@ -145,7 +146,6 @@
   },
   methods: {
     TextWidthChange(e) {
-      console.log(1212)
       let odivParent = e.currentTarget.parentNode //鑾峰彇鐩爣鐖跺厓绱�
       let dx = e.clientX //褰撲綘绗竴娆″崟鍑荤殑鏃跺�欙紝瀛樺偍x杞寸殑鍧愭爣銆�
       let dw = odivParent.offsetWidth //瀛樺偍榛樿鐨刣iv鐨勫搴︺��
@@ -161,6 +161,7 @@
           odivParent.style.width = this.pdfWidth - odivParent.offsetLeft + "px"
         }
       }
+
       document.onmouseup = (e) => {
         document.onmousemove = null
         document.onmouseup = null
@@ -195,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)
         }
       }
     },
@@ -315,7 +316,7 @@
     .column-left {
       position: relative;
       margin-right: 24px;
-      height: 233vh;
+      height: 160vh;
       overflow: auto;
       background-color: #fff;
     }

--
Gitblit v1.8.0