From 7c9056729f55473f03c60702e59845403567fa4e Mon Sep 17 00:00:00 2001 From: SHAOJIAHAO <55341701@qq.com> Date: Mon, 4 Jan 2021 16:33:47 +0800 Subject: [PATCH] =?UTF-8?q?[=E6=96=B0=E5=A2=9E]=E8=B0=83=E7=94=A8setIconVi?= =?UTF-8?q?sible=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../collection-tools.component.ts | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/app/ui/collection-tools-read/collection-tools.component.ts b/src/app/ui/collection-tools-read/collection-tools.component.ts index 0a27984..d789f44 100644 --- a/src/app/ui/collection-tools-read/collection-tools.component.ts +++ b/src/app/ui/collection-tools-read/collection-tools.component.ts @@ -416,17 +416,17 @@ export class CollectionToolsReadComponent implements OnInit { let iconVisibleArr:any = [] console.log(this.renderData) this.renderData.forEach(item =>{ - if(item.Id && item.isLook == false){ + if(item.Id && item.isLook == true){ iconVisibleArr.push(item.Id) }else{ if(item.children && item.children.length != 0){ item.children.forEach(i => { - if(i.Id && i.isLook == false){ + if(i.Id && i.isLook == true){ iconVisibleArr.push(i.Id) }else{ if(i.children && i.children.length != 0){ i.children.forEach(element => { - if(element.Id && element.isLook == false){ + if(element.Id && element.isLook == true){ iconVisibleArr.push(element.Id) } }) @@ -438,12 +438,12 @@ export class CollectionToolsReadComponent implements OnInit { }) console.log(iconVisibleArr) - this.canvasData.originaleveryStoreyData = JSON.parse(JSON.stringify(this.originaleveryStoreyData)) - this.canvasData.originaleveryStoreyData.data? this.canvasData.originaleveryStoreyData.data = JSON.parse(this.canvasData.originaleveryStoreyData.data) : this.canvasData.originaleveryStoreyData.data = {} - this.canvasData.originaleveryStoreyData.version? null : this.canvasData.originaleveryStoreyData.version = "2.0" - this.canvasData.hiddenBasicInfoFacilities = iconVisibleArr - this.canvas.onExamineeClickFloor() - + // this.canvasData.originaleveryStoreyData = JSON.parse(JSON.stringify(this.originaleveryStoreyData)) + // this.canvasData.originaleveryStoreyData.data? this.canvasData.originaleveryStoreyData.data = JSON.parse(this.canvasData.originaleveryStoreyData.data) : this.canvasData.originaleveryStoreyData.data = {} + // this.canvasData.originaleveryStoreyData.version? null : this.canvasData.originaleveryStoreyData.version = "2.0" + // this.canvasData.hiddenBasicInfoFacilities = iconVisibleArr + // this.canvas.onExamineeClickFloor() + this.canvas.setIconVisible(iconVisibleArr,true) } //打开消防设施考题设定