From 17e2cb23e7720ef1ba90d17456efae338eee4c4c Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期五, 02 九月 2022 03:28:07 +0800
Subject: [PATCH] 添加点位变更页面

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

diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts
index f6f7cab..82d42f5 100644
--- a/src/Pool/VideoPhotoData.ts
+++ b/src/Pool/VideoPhotoData.ts
@@ -47,6 +47,7 @@
   public scrollContainDom: any = ""
   public uploadDiaplay: boolean = false
   public uploadType: boolean = false
+  public warningFlag: number = 0
 
   constructor() {
     this.cards = []
@@ -80,11 +81,22 @@
       searchTime: this.searchTime,
       alarmlevel: this.queryAlarmlevel,
       inputValue: this.inputValue,
+      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