Browse Source

完善更新逻辑

develop
徐振升 4 years ago
parent
commit
4390a14211
  1. 7
      src/app/canvas-share-data.service.ts

7
src/app/canvas-share-data.service.ts

@ -86,6 +86,13 @@ export class CanvasShareDataService {
*
*/
public updateBuildingData() {
// 删除建筑数据中当前层数据
Object.keys(this.originalcompanyBuildingData.data).forEach((key) => {
if (this.originalcompanyBuildingData.data[key].FloorId === this.selectStorey.id) {
delete this.originalcompanyBuildingData.data[key];
}
});
// 新增当前层数据到建筑数据
Object.keys(this.originaleveryStoreyData.data).forEach((key) => {
this.originalcompanyBuildingData.data[key] = this.originaleveryStoreyData.data[key];
});

Loading…
Cancel
Save