From ba2c435355a217ad20e41be3d30eb7ab3eef49ba Mon Sep 17 00:00:00 2001 From: zhangzengfei <zhangzengfei@smartai.com> Date: 星期二, 11 十月 2022 17:24:22 +0800 Subject: [PATCH] 数据上报企业编码添加名称显示 --- src/Pool/VideoPhotoData.ts | 16 ++++++++++++++-- 1 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/Pool/VideoPhotoData.ts b/src/Pool/VideoPhotoData.ts index f6f7cab..1a9aad9 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 } @@ -295,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