From 4b90690fc6715504b9df5f9e4d76a7aea849ed7d Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期日, 28 八月 2022 23:14:50 +0800
Subject: [PATCH] 添加排查标记. 修正饼图提示

---
 src/Pool/VideoPhotoData.ts |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts
index 9400544..82d42f5 100644
--- a/src/Pool/VideoPhotoData.ts
+++ b/src/Pool/VideoPhotoData.ts
@@ -84,9 +84,19 @@
       warningFlag: this.warningFlag,
       tabs: this.queryTabs,
       tasks: this.queryTasks,
-      treeNodes: this.treeNodes,
       dataSource: "camera"
     }
+
+    // 鏍规嵁鏉冮檺鎺у埗鎽勫儚鏈�
+    let userInfo = JSON.parse(sessionStorage.getItem("userInfo"))
+    // 鏈�夋嫨鎽勫儚鏈哄苟涓斾笉鏄鐞嗗憳
+    if (!this.treeNodes.length && userInfo.username != "Administrator") {
+      let checkedCameras = userInfo.email
+
+      this.treeNodes = checkedCameras.split(",")
+    }
+    param.treeNodes = this.treeNodes
+
     if (this.searchFrom == "cluster") {
       param.isAll = true
     }

--
Gitblit v1.8.0