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 = []
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)
}
//打开消防设施考题设定

Loading…
Cancel
Save