diff --git a/src/app/canvas-share-data.service.ts b/src/app/canvas-share-data.service.ts index fe62f82..aa7fc19 100644 --- a/src/app/canvas-share-data.service.ts +++ b/src/app/canvas-share-data.service.ts @@ -8,10 +8,11 @@ import { GameMode } from './working-area/model/gameMode'; export class CanvasShareDataService { constructor() { } private _sendMessage: ReplaySubject = new ReplaySubject(1); + GameMode: any; isChange = false; // 数据 是否改动 - selectTemplateData: any; // 选择当前 素材库模板数据 + selectTemplateData: any; // 选择当前 模板数据 // 总平面图/建筑 楼层 selectStorey: any = {area: '', details: ''}; // 选择当前 楼层 数据 @@ -28,7 +29,7 @@ export class CanvasShareDataService { /** * 游戏模式 */ - gameMode: GameMode = GameMode.Assignment; + gameMode: GameMode = GameMode.BasicInformation; facilityAssetsName = new Map([ [ '消防水池', '消防水池'], @@ -81,6 +82,23 @@ export class CanvasShareDataService { return returnData; } } + /** + * 更新建筑数据 + */ + public updateBuildingData() { + Object.keys(this.originaleveryStoreyData.data).forEach((key) => { + this.originalcompanyBuildingData.data[key] = this.originaleveryStoreyData.data[key]; + }); + } + /** + * 删除建筑数据中当前楼层的数据 + */ + public deleteBuildingDataByCurrentFloorData():void { + Object.keys(this.originaleveryStoreyData.data).forEach((key) => { + // 删除建筑数据 + delete this.originalcompanyBuildingData.data[key]; + }); + } /** * 获取单位毗邻信息 */ @@ -665,7 +683,7 @@ export class AssetData { /// /// 是否来自建筑 /// - public IsFromBuilding: boolean; + public IsFromBuilding: boolean; /// /// 渲染方式。 /// diff --git a/src/app/ui/collection-tools/collection-tools.component.html b/src/app/ui/collection-tools/collection-tools.component.html index f15e4cf..c0e72cd 100644 --- a/src/app/ui/collection-tools/collection-tools.component.html +++ b/src/app/ui/collection-tools/collection-tools.component.html @@ -38,15 +38,14 @@
-