Browse Source

[完善] 服务中存储数据完善

develop
陈鹏飞 4 years ago
parent
commit
f6162fceb4
  1. 6
      src/app/canvas-share-data.service.ts
  2. 2
      src/app/ui/collection-tools/collection-tools.component.scss
  3. 6
      src/app/ui/collection-tools/collection-tools.component.ts

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

@ -7,7 +7,11 @@ export class CanvasShareDataService {
constructor() { }
selectStorey:any; //选择当前 楼层 数据
isChange:boolean = false; //数据 是否改动
selectStorey:any = {area: '', details: ''}; //选择当前 楼层 数据
selectTemplateData:any; //选择当前 模板数据
originalcompanyBuildingData:any; // 单位/建筑 数据
originaleveryStoreyData:any; // 总平面图/楼层/区域 楼层数据

2
src/app/ui/collection-tools/collection-tools.component.scss

@ -93,7 +93,7 @@
transition: margin-left 0.5s;
min-width: 150px;
border: 1px solid #E6EAEE;
width: 13%;
width: 230px;
left: 0;
}
.functionalDomainRight {

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

@ -690,6 +690,7 @@ export class CollectionToolsComponent implements OnInit {
//陈鹏飞↓↓↓
//陈鹏飞↓↓↓
allFireElements:any = []; //当前 单位/建筑 下的消防要素
isShowAttribute:boolean = true; //属性栏 是否显示 默认数据
toggleExpandPanel:boolean = false; //可展开面板展开或关闭
togglePlane:boolean = true; //可展开面板平面图 显隐
@ -764,6 +765,8 @@ export class CollectionToolsComponent implements OnInit {
this.http.get(`/api/CompanyAccount/SitePlanData`,{params}).subscribe((data:any)=>{
this.canvasData.originaleveryStoreyData = data || {} // 楼层原数据
this.canvasData.originaleveryStoreyData.data? this.canvasData.originaleveryStoreyData.data = JSON.parse(this.canvasData.originaleveryStoreyData.data) : this.canvasData.originaleveryStoreyData.data = {}
this.canvasData.isChange = false
this.isShowAttribute = true
this.renovateTreeData()
})
}
@ -782,6 +785,8 @@ export class CollectionToolsComponent implements OnInit {
this.http.get(`/api/CompanyAccount/BuildingAreaData`,{params}).subscribe((data:any)=>{
this.canvasData.originaleveryStoreyData = data || {} // 楼层原数据
this.canvasData.originaleveryStoreyData.data? this.canvasData.originaleveryStoreyData.data = JSON.parse(this.canvasData.originaleveryStoreyData.data) : this.canvasData.originaleveryStoreyData.data = {}
this.canvasData.isChange = false
this.isShowAttribute = true
this.renovateTreeData()
})
}
@ -1061,6 +1066,7 @@ export class CollectionToolsComponent implements OnInit {
this.selectLibrary = item.name
this.selectImage = items
this.selectImageIndex = index
this.canvasData.selectTemplateData = items
this.canvas.beginPaint(items)
}

Loading…
Cancel
Save