|
|
@ -625,29 +625,14 @@ export class CollectionToolsComponent implements OnInit { |
|
|
|
this.canvasData.isChange = true |
|
|
|
this.canvasData.isChange = true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isSixShow = true
|
|
|
|
isSixShow = true
|
|
|
|
isSixbtn = true //控制想定作业编辑按钮
|
|
|
|
isSixbtn = true //控制想定作业编辑按钮
|
|
|
|
isxxx = true //控制查看编辑模式的编辑模式按钮
|
|
|
|
isxxx = true //控制查看编辑模式的编辑模式按钮
|
|
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
ngOnInit(): void { |
|
|
|
|
|
|
|
sessionStorage.setItem('companyId','5fa2512ef8eb762cb03c65fb') |
|
|
|
if(this.router.url.indexOf("keyUnit/viewunitinfoplan") == -1 && this.router.url.indexOf("keyUnit/viewunitinfo") != -1 || this.router.url.indexOf("keyUnit/editplaninfo")!= -1){ |
|
|
|
sessionStorage.setItem('planId','5fa8b0b8f8eb762cb03c6c30') |
|
|
|
this.isSixbtn = false |
|
|
|
sessionStorage.setItem('buildingTypeId','5e7c9018a3050b1a840ed4b7') |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(!this.isSixbtn && sessionStorage.getItem("six") == "edit"){ |
|
|
|
|
|
|
|
this.isSixShow = true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if(!this.isSixbtn && sessionStorage.getItem("six") == "look"){ |
|
|
|
|
|
|
|
this.isEditPattern = false |
|
|
|
|
|
|
|
this.isxxx = false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (sessionStorage.getItem('editable') == "0") { |
|
|
|
|
|
|
|
this.isEditPattern = false |
|
|
|
|
|
|
|
this.isxxx = false |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.getAllLibrary() //获取素材库
|
|
|
|
this.getAllLibrary() //获取素材库
|
|
|
|
this.getAllBuildings() //获取所有建筑
|
|
|
|
this.getAllBuildings() //获取所有建筑
|
|
|
@ -661,18 +646,19 @@ export class CollectionToolsComponent implements OnInit { |
|
|
|
event.preventDefault(); |
|
|
|
event.preventDefault(); |
|
|
|
}; |
|
|
|
}; |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
this.canvasData.getMessage().subscribe((message: any)=>{ |
|
|
|
this.canvasData.getMessage().subscribe((message: any)=>{ |
|
|
|
if(message == "send a message"){ |
|
|
|
if(message == "send a message"){ |
|
|
|
this.refurbishTreeData() |
|
|
|
this.refurbishTreeData() |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngAfterViewInit(): void { |
|
|
|
ngAfterViewInit(): void { |
|
|
|
|
|
|
|
|
|
|
|
this.getSitePlan() |
|
|
|
this.getSitePlan() |
|
|
|
// 监听canvas组件选中素材事件
|
|
|
|
// 监听canvas组件选中素材事件
|
|
|
|
this.canvas.on("select",obj=>{ |
|
|
|
this.canvas.on("select",obj=>{ |
|
|
|