From 5c0c6ad7ac6f28e970532af9936de638830f1161 Mon Sep 17 00:00:00 2001
From: ZZJ <10913410+zzj2100@user.noreply.gitee.com>
Date: 星期四, 28 七月 2022 10:20:51 +0800
Subject: [PATCH] bugxiufu
---
src/Pool/TreeData.ts | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/src/Pool/TreeData.ts b/src/Pool/TreeData.ts
index 8b93a3d..7156994 100644
--- a/src/Pool/TreeData.ts
+++ b/src/Pool/TreeData.ts
@@ -392,21 +392,21 @@
}
async fetchGbTree() {
- // 鍚庨棬
- // const rsp: any = await getGB28181CameraTree({
- // searchType: this.searchCamType,
- // cameraName: this.searchInput
- // })
+ const rsp: any = await getGB28181CameraTree({
+ parentId: "",
+ searchType: this.searchCamType,
+ cameraName: this.searchInput
+ })
- // if (rsp && rsp.success) {
- // this.gb28181Data = rsp.data ? rsp.data : []
- // if (this.gb28181Data && this.gb28181Data.length > 0) {
- // this.sortTreeData(this.gb28181Data)
- // }
+ if (rsp && rsp.success) {
+ this.gb28181Data = rsp.data.treeMenu ? rsp.data.treeMenu : []
+ if (this.gb28181Data && this.gb28181Data.length > 0) {
+ this.sortTreeData(this.gb28181Data)
+ }
- // this.gb28181DataPure = JSON.parse(JSON.stringify(this.gb28181Data))
- // this.isFold(this.gb28181Data)
- // }
+ this.gb28181DataPure = JSON.parse(JSON.stringify(this.gb28181Data))
+ this.isFold(this.gb28181Data)
+ }
}
async fetchTreeData() {
--
Gitblit v1.8.0