|
|
@ -1329,6 +1329,7 @@ export class CollectionToolsComponent implements OnInit { |
|
|
|
selectPanelPoint //传过来的处置素材
|
|
|
|
selectPanelPoint //传过来的处置素材
|
|
|
|
//处理 tree 数据结构
|
|
|
|
//处理 tree 数据结构
|
|
|
|
handleTreeData (storeyData,selectPanelPoint) { |
|
|
|
handleTreeData (storeyData,selectPanelPoint) { |
|
|
|
|
|
|
|
this.hideAllTreenode = true |
|
|
|
this.storeyData = storeyData |
|
|
|
this.storeyData = storeyData |
|
|
|
this.selectPanelPoint = selectPanelPoint |
|
|
|
this.selectPanelPoint = selectPanelPoint |
|
|
|
let data = this.allFireElements //所有消防要素模板
|
|
|
|
let data = this.allFireElements //所有消防要素模板
|
|
|
@ -1420,6 +1421,22 @@ export class CollectionToolsComponent implements OnInit { |
|
|
|
this.canvas.setHighlight(iconHighLightArr) |
|
|
|
this.canvas.setHighlight(iconHighLightArr) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
hideAllTreenode:boolean = true; //全部显示/隐藏tree节点
|
|
|
|
|
|
|
|
toggoleAllTreenode () { |
|
|
|
|
|
|
|
this.hideAllTreenode = !this.hideAllTreenode |
|
|
|
|
|
|
|
let list = [] |
|
|
|
|
|
|
|
this.allFireElements.forEach(element=>{ |
|
|
|
|
|
|
|
if (element.isTemplate) { this.hideAllTreenode? element.isLook = false : element.isLook = true } |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
this.treeControl.dataNodes.forEach(item=>{ |
|
|
|
|
|
|
|
this.hideAllTreenode? item.isLook = false : item.isLook = true |
|
|
|
|
|
|
|
item.level === 0 ? list.push(item) : null |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
list.forEach(item=>{ |
|
|
|
|
|
|
|
this.clickLookItem(item) |
|
|
|
|
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//点击数节点的显示隐藏icon
|
|
|
|
//点击数节点的显示隐藏icon
|
|
|
|
clickLookItem(node){ |
|
|
|
clickLookItem(node){ |
|
|
|
//修改真实素材islook属性
|
|
|
|
//修改真实素材islook属性
|
|
|
@ -1439,9 +1456,8 @@ export class CollectionToolsComponent implements OnInit { |
|
|
|
//所有消防要素模板变化islook值
|
|
|
|
//所有消防要素模板变化islook值
|
|
|
|
if(node.isTemplate){ |
|
|
|
if(node.isTemplate){ |
|
|
|
this.allFireElements.forEach(item=>{ |
|
|
|
this.allFireElements.forEach(item=>{ |
|
|
|
if(item.id == node.id || item.name == "其他"){ |
|
|
|
if ( item.id == node.id ) { item.isLook = !item.isLook } |
|
|
|
item.isLook = !item.isLook |
|
|
|
if (item.name == '其他' && node.name == '其他') { item.isLook = !item.isLook } |
|
|
|
} |
|
|
|
|
|
|
|
}) |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|