|
|
|
@ -44,8 +44,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
'#009688','#836fff','#ff8c00','#ee00ee','#ffa07a', |
|
|
|
|
'#00C500','#00ffff','#6495ed','#ffdAb9','#AA00FF'] |
|
|
|
|
selected = 'option1' //图标大小选择框
|
|
|
|
|
basicInfo:boolean = true //基本信息名称显隐
|
|
|
|
|
wantToWork:boolean = true //想定作业名称显隐
|
|
|
|
|
|
|
|
|
|
allBuildings //该单位所有建筑
|
|
|
|
|
beforeOneCheckedBuilding:any = {name:"总平面图"}; //当前点击选择的建筑
|
|
|
|
|
checkedBuildingIndex:number = -1 //当前点击选择的建筑index
|
|
|
|
@ -387,14 +386,18 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
this.isShowProperty = false |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
basicInfo:boolean = true //基本信息名称显隐
|
|
|
|
|
wantToWork:boolean = true //想定作业名称显隐
|
|
|
|
|
//点击基本信息名称
|
|
|
|
|
basicInfoClick(){ |
|
|
|
|
this.basicInfo = !this.basicInfo |
|
|
|
|
this.canvas.setNameVisible(this.basicInfo,0) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//点击想定作业名称
|
|
|
|
|
wantToWorkClick(){ |
|
|
|
|
this.wantToWork = !this.wantToWork |
|
|
|
|
this.canvas.setNameVisible(this.basicInfo,1) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//进入编辑模式
|
|
|
|
@ -417,7 +420,30 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
//保存平面图
|
|
|
|
|
saveSite(){ |
|
|
|
|
|
|
|
|
|
let SitePlanData = this.canvasData.originaleveryStoreyData |
|
|
|
|
let CompanyData = this.canvasData.originalcompanyBuildingData |
|
|
|
|
this.http.post("/api/CompanyAccount/SitePlanData",SitePlanData).subscribe(data => { |
|
|
|
|
let config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('平面图数据保存成功','确定',config); |
|
|
|
|
},err=>{ |
|
|
|
|
let config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('平面图数据保存失败','确定',config); |
|
|
|
|
}) |
|
|
|
|
this.http.post("/api/CompanyAccount/CompanyData",CompanyData).subscribe(data => { |
|
|
|
|
let config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('单位数据保存成功','确定',config); |
|
|
|
|
},err=>{ |
|
|
|
|
let config = new MatSnackBarConfig(); |
|
|
|
|
config.verticalPosition = 'top'; |
|
|
|
|
config.duration = 3000 |
|
|
|
|
this.snackBar.open('单位数据保存失败','确定',config); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//获得所有的建筑物
|
|
|
|
|