From a75952451bb376a4c5624e62c744930f91f4401b Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@iotlink.com>
Date: 星期二, 03 十一月 2020 18:15:07 +0800
Subject: [PATCH] 添加多页面ico配置
---
src/Pool/TreeData.ts | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/Pool/TreeData.ts b/src/Pool/TreeData.ts
index 02a52ec..98708da 100644
--- a/src/Pool/TreeData.ts
+++ b/src/Pool/TreeData.ts
@@ -296,13 +296,12 @@
}
async fetchLocalTree() {
- let params:any = {
+ let params: any = {
searchType: this.searchCamType,
cameraName: this.searchInput,
//isPlatform: 1
};
- debugger
- if(this.searchFrom == 'cluster'){
+ if (this.searchFrom == 'cluster') {
params.isPlatform = 1
}
const rsp: any = await getLocalCameraTree(params);
@@ -320,15 +319,15 @@
}
}
- async fetchClusterTree (){
+ async fetchClusterTree() {
const rsp: any = await getClusterTree({
searchType: this.searchCamType,
cameraName: this.searchInput
});
- if(rsp && rsp.success){
+ if (rsp && rsp.success) {
console.log(rsp.data);
this.clusterData = rsp.data ? rsp.data : []
- if(this.clusterData && this.clusterData.length > 0){
+ if (this.clusterData && this.clusterData.length > 0) {
this.sortTreeData(this.clusterData)
}
this.clusterDataPure = JSON.parse(JSON.stringify(this.clusterData));
--
Gitblit v1.8.0