From 07d14cf6edbef9436aa5909bcb6b2329ecc6f9a2 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期五, 15 七月 2022 14:44:44 +0800
Subject: [PATCH] 禅道bug

---
 src/Pool/TreeData.ts |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/Pool/TreeData.ts b/src/Pool/TreeData.ts
index 8c9ad4c..8b93a3d 100644
--- a/src/Pool/TreeData.ts
+++ b/src/Pool/TreeData.ts
@@ -128,6 +128,7 @@
     function nodeFilter(node: any) {
       if (node.type === '4' && node.selected) {
         _selected.push(node.id)
+        sessionStorage.setItem('cameraDevId',node.devId)
       }
       if (node.children) {
         node.children.forEach((n: any) => {
@@ -170,6 +171,7 @@
 
     function nodeFilter(node: any) {
       if (node.type === '4' && (node.selected || node.checked)) {
+      sessionStorage.setItem("cameraDevId", node.devId);
         _this.selectedNodes.push(node.id)
       }
       if (node.children) {
@@ -496,10 +498,9 @@
       this.setDropDisable(this.treeData)
       this.isFold(this.treeData)
 
-      this.activeTreeData = this.treeData
-
-      this.gb28181CheckedCount = 0;
+      this.gb28181CheckedCount = 0
       this.gb28181ChildNodeCount = this.countChildrenNodes(this.treeData)
+      this.activeTreeData = this.treeData
     }
   }
 

--
Gitblit v1.8.0