diff --git a/src/app/ui/collection-tools/collection-tools.component.ts b/src/app/ui/collection-tools/collection-tools.component.ts index 2bb3e4c..151a583 100644 --- a/src/app/ui/collection-tools/collection-tools.component.ts +++ b/src/app/ui/collection-tools/collection-tools.component.ts @@ -1381,9 +1381,27 @@ export class CollectionToolsComponent implements OnInit { this.canvasData.isChange = false if (isCompany===-1) { this.http.post("/api/CompanyAccount/CompanyData",newData).subscribe(data => {}) + //批量保存单位毗邻 + let CompanyAdjoins = this.canvasData.getCompanyAdjoinInfo() + this.http.post("/api/CompanyAccount/CompanyAdjoins/Batch",CompanyAdjoins).subscribe(data => {}) + //批量保存单位重点部位 + let CompanyImportantLocations = this.canvasData.getCompanyImportantLocations() + this.http.post("/api/CompanyAccount/CompanyImportantLocations/Batch",CompanyImportantLocations).subscribe(data => {}) + //批量保存单位消防设施素材 + let CompanyFacilityAssets = this.canvasData.getAllCompanyFacilityAssetInfo() + this.http.post("/api/CompanyAccount/CompanyFacilityAssets/Batch",CompanyFacilityAssets).subscribe(data => {}) this.getSitePlanStorey(this.selectingSitePlan) //获取 平面图 楼层数据 } else { this.http.post("/api/CompanyAccount/BuildingData",newData).subscribe(data => {}) + //批量保存建筑毗邻 + let buildingAdjoins = this.canvasData.getBuildingAdjoinInfo() + this.http.post(`/api/CompanyAccount/BuildingAdjoins/Batch?buildingId=${this.beforeOneCheckedBuilding.id}`,buildingAdjoins).subscribe(data => {}) + //批量保存建筑重点部位 + let buildingImportantLocations = this.canvasData.getBuildingImportantLocations() + this.http.post(`/api/CompanyAccount/BuildingImportantLocations/Batch?buildingId=${this.beforeOneCheckedBuilding.id}`,buildingImportantLocations).subscribe(data => {}) + //批量保存建筑消防设施素材 + let buildingFacilityAssets = this.canvasData.getAllBuildingFacilityAssetInfo() + this.http.post(`/api/CompanyAccount/BuildingFacilityAssets/Batch?buildingId=${this.beforeOneCheckedBuilding.id}`,buildingFacilityAssets).subscribe(data => {}) this.getBuildingStorey(this.selectingSitePlan) //获取 建筑 楼层数据 } }