Browse Source

[完善]注释创建楼层图形代码

master
邵佳豪 4 years ago
parent
commit
0deb134d78
  1. 27
      src/app/ui/collection-tools/collection-tools.component.ts
  2. 2
      src/app/working-area/working-area.component.ts

27
src/app/ui/collection-tools/collection-tools.component.ts

@ -1250,12 +1250,12 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.originaleveryStoreyData.version? null : this.canvasData.originaleveryStoreyData.version = "2.0"
this.canvasData.originaleveryStoreyData.sitePlanId? null : this.canvasData.originaleveryStoreyData.sitePlanId = e.id || null
this.renovateTreeData()
// this.canvas.onExaminerClickFloor()
this.canvas.createBackground(this.canvasData.selectStorey.imageUrl, this.canvasData.selectStorey.imageAngle);
this.canvas.createFloorShape(this.canvasData.originaleveryStoreyData.data);
this.canvas.createNodeShape(this.canvasData.selectPanelPoint.Data);
// 隐藏基本信息图形
this.canvas.setNameVisible(false, 0);
this.canvas.onExaminerClickFloor()
// this.canvas.createBackground(this.canvasData.selectStorey.imageUrl, this.canvasData.selectStorey.imageAngle);
// this.canvas.createFloorShape(this.canvasData.originaleveryStoreyData.data);
// this.canvas.createNodeShape(this.canvasData.selectPanelPoint.Data);
// // 隐藏基本信息图形
// this.canvas.setNameVisible(false, 0);
})
}
@ -1273,7 +1273,7 @@ export class CollectionToolsComponent implements OnInit {
}
//获取 建筑 楼层数据
getBuildingStorey (e) {
async getBuildingStorey (e) {
let params = {buildingAreaId: e.id}
this.http.get(`/api/BuildingAreaData`,{params}).subscribe((data:any)=>{
this.canvasData.originaleveryStoreyData = data || {} // 楼层原数据
@ -1281,12 +1281,13 @@ export class CollectionToolsComponent implements OnInit {
this.canvasData.originaleveryStoreyData.version? null : this.canvasData.originaleveryStoreyData.version = "2.0"
this.canvasData.originaleveryStoreyData.buildingAreaId? null : this.canvasData.originaleveryStoreyData.buildingAreaId = e.id || null
this.renovateTreeData()
// this.canvas.onExaminerClickFloor()
this.canvas.createBackground(this.canvasData.selectStorey.imageUrl, this.canvasData.selectStorey.imageAngle);
this.canvas.createFloorShape(this.canvasData.originaleveryStoreyData.data);
this.canvas.createNodeShape(this.canvasData.selectPanelPoint.Data);
// 隐藏基本信息图形
this.canvas.setNameVisible(false, 0);
this.canvas.onExaminerClickFloor()
// this.canvas.createBackground(this.canvasData.selectStorey.imageUrl, this.canvasData.selectStorey.imageAngle);
// await this.canvas.refreshBackgroundImage();
// this.canvas.createFloorShape(this.canvasData.originaleveryStoreyData.data);
// this.canvas.createNodeShape(this.canvasData.selectPanelPoint.Data);
// // 隐藏基本信息图形
// this.canvas.setNameVisible(false, 0);
})
}

2
src/app/working-area/working-area.component.ts

@ -1347,7 +1347,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
this.backgroundImage.getChildByName(item).destroy();
})
// 创建楼层图形
this.createFloorShape(this.canvasData.examOriginaleveryStoreyData.data);
// this.createFloorShape(this.canvasData.examOriginaleveryStoreyData.data);
// 创建楼层图形
this.createFloorShape(this.canvasData.originaleveryStoreyData.data);
// 创建处置预案图形

Loading…
Cancel
Save