|
|
|
@ -619,28 +619,13 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
this.canvasData.isChange = true |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isSixShow = true
|
|
|
|
|
isSixbtn = true //控制想定作业编辑按钮
|
|
|
|
|
isxxx = true //控制查看编辑模式的编辑模式按钮
|
|
|
|
|
|
|
|
|
|
ngOnInit(): void { |
|
|
|
|
this.canvasData.gameMode = GameMode.Assignment |
|
|
|
|
if(this.router.url.indexOf("keyUnit/viewunitinfoplan") == -1 && this.router.url.indexOf("keyUnit/viewunitinfo") != -1 || this.router.url.indexOf("keyUnit/editplaninfo")!= -1){ |
|
|
|
|
this.isSixbtn = false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if(!this.isSixbtn && sessionStorage.getItem("six") == "edit"){ |
|
|
|
|
this.isSixShow = true |
|
|
|
|
} |
|
|
|
|
if(!this.isSixbtn && sessionStorage.getItem("six") == "look"){ |
|
|
|
|
this.canvasData.gameMode = GameMode.Assignment |
|
|
|
|
if (sessionStorage.getItem('editable') == "0") { //查看模式
|
|
|
|
|
this.isEditPattern = false |
|
|
|
|
this.isxxx = false |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
if (sessionStorage.getItem('editable') == "0") { |
|
|
|
|
this.isEditPattern = false |
|
|
|
|
this.isxxx = false |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.getAllLibrary('plan') //获取素材库
|
|
|
|
@ -655,18 +640,18 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
event.preventDefault(); |
|
|
|
|
}; |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.canvasData.getMessage().subscribe((message: any)=>{ |
|
|
|
|
if(message == "send a message"){ |
|
|
|
|
this.refurbishTreeData() |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ngAfterViewInit(): void { |
|
|
|
|
|
|
|
|
|
this.getSitePlan() |
|
|
|
|
// 监听canvas组件选中素材事件
|
|
|
|
|
this.canvas.on("select",obj=>{ |
|
|
|
@ -2280,7 +2265,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
if(selectPanelPoint.Data){ |
|
|
|
|
for(let key in selectPanelPoint.Data.Stock){ //筛选数据 没有匹配全部放入到 其他 数组
|
|
|
|
|
let noMatch = this.allFireElements.find( every=> every.id===selectPanelPoint.Data.Stock[key].FireElementId ) |
|
|
|
|
if (!noMatch) { |
|
|
|
|
if (!noMatch && selectPanelPoint.Data.Stock[key].Id != "图例") { |
|
|
|
|
this.allFireElements[this.allFireElements.length-1].children.push(selectPanelPoint.Data.Stock[key]) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|