|
|
|
@ -229,7 +229,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
targetNodeData.forEach(i => { |
|
|
|
|
idArr.push(i.id) |
|
|
|
|
}) |
|
|
|
|
console.log(6666666666666,event); |
|
|
|
|
// console.log(6666666666666,event);
|
|
|
|
|
if(this.pos == 0 && event.node.origin.children.length == 1){ |
|
|
|
|
console.log("移入,没有兄弟") |
|
|
|
|
let key = event.dragNode.key |
|
|
|
@ -633,7 +633,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
|
|
this.canvasData.gameMode = GameMode.Examinee |
|
|
|
|
this.getAllLibrary('plan') //获取素材库
|
|
|
|
|
this.getAllBuildings() //获取所有建筑
|
|
|
|
|
this.getAllFirePlan() //获取当前单位灾情
|
|
|
|
@ -662,6 +662,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
// 监听canvas组件选中素材事件
|
|
|
|
|
this.canvas.on("select",obj=>{ |
|
|
|
|
//选中素材属性注入函数
|
|
|
|
|
console.log(1111) |
|
|
|
|
this.setAssetsProperty(obj.assetData) |
|
|
|
|
}) |
|
|
|
|
// 监听canvas组件取消选中素材事件
|
|
|
|
@ -670,6 +671,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
}) |
|
|
|
|
// 监听canvas组件新增素材事件
|
|
|
|
|
this.canvas.on("createIcon",obj=>{ |
|
|
|
|
console.log(2222,this.canvasData.selectPanelPoint.Data) |
|
|
|
|
this.renovateTreeData(false) |
|
|
|
|
}) |
|
|
|
|
// 监听canvas组件删除素材事件
|
|
|
|
@ -902,7 +904,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
this.storeyData = storeyData |
|
|
|
|
let data = JSON.parse(JSON.stringify(this.allFireElements)) //所有消防要素模板
|
|
|
|
|
|
|
|
|
|
console.log(889,this.storeyData) |
|
|
|
|
// console.log(889,this.storeyData)
|
|
|
|
|
let treeData = [] //tree型 处理完成后的数据
|
|
|
|
|
this.allFireElements.forEach(element => { |
|
|
|
|
element.key = element.id |
|
|
|
|