Browse Source

[新增] 显示处置预案图标

develop
徐振升 4 years ago
parent
commit
01637033cd
  1. 24
      src/app/working-area/working-area.component.ts

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

@ -429,7 +429,7 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
const floorData = this.canvasData.originaleveryStoreyData.data;
const buildingData = this.canvasData.originalcompanyBuildingData.data;
const floor = this.canvasData.selectStorey;
console.log(JSON.stringify(buildingData));
// console.log(JSON.stringify(buildingData));
// // key=>属性名 data[key]=>属性值
Object.keys(floorData).forEach((key) => {
switch (floorData[key].InteractiveMode) {
@ -459,6 +459,28 @@ export class WorkingAreaComponent extends EventEmitter implements OnInit, AfterV
}
}
});
const nodeData = this.canvasData.selectPanelPoint?.data;
if (nodeData !== undefined) {
Object.keys(nodeData).forEach((key) => {
// console.log(nodeData[key]);
Object.keys(nodeData[key]).forEach((tempKey) => {
console.log(nodeData[key][tempKey]);
switch (nodeData[key][tempKey].InteractiveMode) {
case 0:
const singleIcon = new SinglePointIcon(nodeData[key][tempKey], this);
break;
case 1:
const icon = new MultipointIcon(nodeData[key][tempKey], this);
break;
case 2:
const polygonIcon = new PolygonIcon(nodeData[key][tempKey], this);
break;
}
});
});
console.log(this.canvasData.selectPanelPoint);
}
}
/**
*

Loading…
Cancel
Save