Browse Source

[新增]调用setIconVisible方法

master
邵佳豪 4 years ago
parent
commit
7c9056729f
  1. 18
      src/app/ui/collection-tools-read/collection-tools.component.ts

18
src/app/ui/collection-tools-read/collection-tools.component.ts

@ -416,17 +416,17 @@ export class CollectionToolsReadComponent implements OnInit {
let iconVisibleArr:any = [] let iconVisibleArr:any = []
console.log(this.renderData) console.log(this.renderData)
this.renderData.forEach(item =>{ this.renderData.forEach(item =>{
if(item.Id && item.isLook == false){ if(item.Id && item.isLook == true){
iconVisibleArr.push(item.Id) iconVisibleArr.push(item.Id)
}else{ }else{
if(item.children && item.children.length != 0){ if(item.children && item.children.length != 0){
item.children.forEach(i => { item.children.forEach(i => {
if(i.Id && i.isLook == false){ if(i.Id && i.isLook == true){
iconVisibleArr.push(i.Id) iconVisibleArr.push(i.Id)
}else{ }else{
if(i.children && i.children.length != 0){ if(i.children && i.children.length != 0){
i.children.forEach(element => { i.children.forEach(element => {
if(element.Id && element.isLook == false){ if(element.Id && element.isLook == true){
iconVisibleArr.push(element.Id) iconVisibleArr.push(element.Id)
} }
}) })
@ -438,12 +438,12 @@ export class CollectionToolsReadComponent implements OnInit {
}) })
console.log(iconVisibleArr) console.log(iconVisibleArr)
this.canvasData.originaleveryStoreyData = JSON.parse(JSON.stringify(this.originaleveryStoreyData)) // 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.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.originaleveryStoreyData.version? null : this.canvasData.originaleveryStoreyData.version = "2.0"
this.canvasData.hiddenBasicInfoFacilities = iconVisibleArr // this.canvasData.hiddenBasicInfoFacilities = iconVisibleArr
this.canvas.onExamineeClickFloor() // this.canvas.onExamineeClickFloor()
this.canvas.setIconVisible(iconVisibleArr,true)
} }
//打开消防设施考题设定 //打开消防设施考题设定

Loading…
Cancel
Save