Browse Source

[完善]保存前更新用于统计的数据

develop
邵佳豪 4 years ago
parent
commit
56df89c953
  1. 7
      src/app/ui/collection-tools/collection-tools.component.ts

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

@ -269,6 +269,7 @@ export class CollectionToolsComponent implements OnInit {
this.canvas.refreshIcon(this.canvasAssetObj.Id)
}
//查看图片详情
lookImg(){
const dialogRef = this.dialog.open(ViewDetails, {//调用open方法打开对话框并且携带参数过去
@ -509,8 +510,11 @@ export class CollectionToolsComponent implements OnInit {
//保存平面图
saveNum :any = []
saveSite(){
if (this.selectingSitePlan && this.selectingSitePlan.id) {
//更新用于统计的数据
this.canvasData.updateBuildingData()
if (this.selectingSitePlan && this.selectingSitePlan.id) {
this.saveNum = []
let SitePlanData = JSON.parse(JSON.stringify(this.canvasData.originaleveryStoreyData));
SitePlanData.data = JSON.stringify(SitePlanData.data)
@ -520,7 +524,6 @@ export class CollectionToolsComponent implements OnInit {
let object = this.canvasData.originaleveryStoreyData.data
let adjoinArr = [] //毗邻数组
// console.log(111,this.canvasData.originaleveryStoreyData)
for (const key in object) {
if (object[key].Name == "毗邻") {//如果是相同楼层,则筛选出毗邻

Loading…
Cancel
Save