From c72156587ad51a022b2e3fced4701c8c9785302f Mon Sep 17 00:00:00 2001
From: mark <mark18340872469@163.com>
Date: 星期日, 09 十月 2022 16:31:30 +0800
Subject: [PATCH] 请求拦截器 小改
---
src/Pool/VideoPhotoData.ts | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts
index 9400544..1a9aad9 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
}
@@ -297,7 +307,7 @@
if (this.searchFrom == "cluster") {
params.isPlatform = 1
}
- console.log(params)
+ // console.log(params)
const rsp: any = await getTaskList(params)
if (rsp && rsp.success) {
// this.tasks.splice(0, this.tasks.length)
--
Gitblit v1.8.0