|
|
|
@ -802,38 +802,38 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
checkedBuilding(item,index){ |
|
|
|
|
if (this.checkedBuildingIndex!=index) { |
|
|
|
|
|
|
|
|
|
if (this.canvasData.isChange) { //true 数据被改动
|
|
|
|
|
let isTrue = confirm('是否保存当前编辑数据') |
|
|
|
|
if (isTrue) { //先保存数据 在切换
|
|
|
|
|
let isSuccess = this.saveSite()//true的时候 先保存数据
|
|
|
|
|
if (isSuccess != false) { |
|
|
|
|
this.beforeOneCheckedBuilding = item |
|
|
|
|
this.checkedBuildingIndex = index |
|
|
|
|
if (index==-1) { //总平面图数据
|
|
|
|
|
this.getSitePlan() |
|
|
|
|
} else { //建筑楼层/区域数据
|
|
|
|
|
this.getBuildingSitePlan(item) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { |
|
|
|
|
this.beforeOneCheckedBuilding = item |
|
|
|
|
this.checkedBuildingIndex = index |
|
|
|
|
if (index==-1) { //总平面图数据
|
|
|
|
|
this.getSitePlan() |
|
|
|
|
} else { //建筑楼层/区域数据
|
|
|
|
|
this.getBuildingSitePlan(item) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { //flase 数据未被改动
|
|
|
|
|
this.beforeOneCheckedBuilding = item |
|
|
|
|
this.checkedBuildingIndex = index |
|
|
|
|
if (index==-1) { //总平面图数据
|
|
|
|
|
this.getSitePlan() |
|
|
|
|
} else { //建筑楼层/区域数据
|
|
|
|
|
this.getBuildingSitePlan(item) |
|
|
|
|
} |
|
|
|
|
} //if
|
|
|
|
|
|
|
|
|
|
// if (this.canvasData.isChange) { //true 数据被改动
|
|
|
|
|
// let isTrue = confirm('是否保存当前编辑数据')
|
|
|
|
|
// if (isTrue) { //先保存数据 在切换
|
|
|
|
|
// let isSuccess = this.saveSite()//true的时候 先保存数据
|
|
|
|
|
// if (isSuccess != false) {
|
|
|
|
|
// this.beforeOneCheckedBuilding = item
|
|
|
|
|
// this.checkedBuildingIndex = index
|
|
|
|
|
// if (index==-1) { //总平面图数据
|
|
|
|
|
// this.getSitePlan()
|
|
|
|
|
// } else { //建筑楼层/区域数据
|
|
|
|
|
// this.getBuildingSitePlan(item)
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// this.beforeOneCheckedBuilding = item
|
|
|
|
|
// this.checkedBuildingIndex = index
|
|
|
|
|
// if (index==-1) { //总平面图数据
|
|
|
|
|
// this.getSitePlan()
|
|
|
|
|
// } else { //建筑楼层/区域数据
|
|
|
|
|
// this.getBuildingSitePlan(item)
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// } else { //flase 数据未被改动
|
|
|
|
|
|
|
|
|
|
// } //if
|
|
|
|
|
this.beforeOneCheckedBuilding = item |
|
|
|
|
this.checkedBuildingIndex = index |
|
|
|
|
if (index==-1) { //总平面图数据
|
|
|
|
|
this.getSitePlan() |
|
|
|
|
} else { //建筑楼层/区域数据
|
|
|
|
|
this.getBuildingSitePlan(item) |
|
|
|
|
} |
|
|
|
|
} //if
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1106,9 +1106,10 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
//封装 刷新 tree 数据
|
|
|
|
|
async renovateTreeData (isRefresh:boolean = true) { |
|
|
|
|
|
|
|
|
|
this.allFireElements[this.allFireElements.length-1].children = [] |
|
|
|
|
this.beforeOneCheckedBuildingIsShow = false |
|
|
|
|
isRefresh? await this.canvas.refresh() : null |
|
|
|
|
// isRefresh? await this.canvas.refresh() : null
|
|
|
|
|
this.canvas.setNameVisible(this.basicInfo,0) |
|
|
|
|
this.canvas.setNameVisible(this.wantToWork,1) |
|
|
|
|
isRefresh? this.canvasData.isChange = false : null //服务中 数据是否改动 改为false
|
|
|
|
@ -1128,9 +1129,6 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.handleTreeData(storeyData) //处理tree数据结构
|
|
|
|
|
this.canvas.onExaminerClickFloor() |
|
|
|
|
// 隐藏基本信息图形
|
|
|
|
|
this.canvas.setNameVisible(false, 0); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -1255,6 +1253,9 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
this.canvasData.originaleveryStoreyData.version? null : this.canvasData.originaleveryStoreyData.version = "2.0" |
|
|
|
|
this.canvasData.originaleveryStoreyData.sitePlanId? null : this.canvasData.originaleveryStoreyData.sitePlanId = e.id || null |
|
|
|
|
this.renovateTreeData() |
|
|
|
|
this.canvas.onExaminerClickFloor() |
|
|
|
|
// 隐藏基本信息图形
|
|
|
|
|
this.canvas.setNameVisible(false, 0); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1280,6 +1281,9 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
this.canvasData.originaleveryStoreyData.version? null : this.canvasData.originaleveryStoreyData.version = "2.0" |
|
|
|
|
this.canvasData.originaleveryStoreyData.buildingAreaId? null : this.canvasData.originaleveryStoreyData.buildingAreaId = e.id || null |
|
|
|
|
this.renovateTreeData() |
|
|
|
|
this.canvas.onExaminerClickFloor() |
|
|
|
|
// 隐藏基本信息图形
|
|
|
|
|
this.canvas.setNameVisible(false, 0); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -1288,45 +1292,45 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
if (this.selectSitePlanIndex != index) { |
|
|
|
|
this.canvasData.selectPanelPoint = new DisposalNodeData(); |
|
|
|
|
if (this.canvasData.isChange) { //true 数据被改动
|
|
|
|
|
let isTrue = confirm('是否保存当前编辑数据') |
|
|
|
|
if (isTrue) { //先保存数据 在切换
|
|
|
|
|
let isSuccess = this.saveSite()//true的时候 先保存数据
|
|
|
|
|
if (isSuccess != false) { |
|
|
|
|
this.selectingSitePlan = item |
|
|
|
|
this.selectSitePlanIndex = index |
|
|
|
|
this.canvasData.selectStorey = item //服务中 存一份数据
|
|
|
|
|
if (this.checkedBuildingIndex==-1) { //总平面图时
|
|
|
|
|
this.getSitePlanStorey(item) //获取 平面图 楼层数据
|
|
|
|
|
} else { //楼层/区域时
|
|
|
|
|
this.getBuildingStorey(item) //获取 建筑 楼层数据
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} else { //不保存数据 直接切换
|
|
|
|
|
this.selectingSitePlan = item |
|
|
|
|
this.selectSitePlanIndex = index |
|
|
|
|
this.canvasData.selectStorey = item //服务中 存一份数据
|
|
|
|
|
if (this.checkedBuildingIndex==-1) { //总平面图时
|
|
|
|
|
this.getSitePlanStorey(item) //获取 平面图 楼层数据
|
|
|
|
|
this.getSitePlanCompanyData() |
|
|
|
|
} else { //楼层/区域时
|
|
|
|
|
this.getBuildingStorey(item) //获取 建筑 楼层数据
|
|
|
|
|
let params = { buildingId: this.beforeOneCheckedBuilding.id } |
|
|
|
|
this.getBuildingData(params) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
// if (this.canvasData.isChange) { //true 数据被改动
|
|
|
|
|
// let isTrue = confirm('是否保存当前编辑数据')
|
|
|
|
|
// if (isTrue) { //先保存数据 在切换
|
|
|
|
|
// let isSuccess = this.saveSite()//true的时候 先保存数据
|
|
|
|
|
// if (isSuccess != false) {
|
|
|
|
|
// this.selectingSitePlan = item
|
|
|
|
|
// this.selectSitePlanIndex = index
|
|
|
|
|
// this.canvasData.selectStorey = item //服务中 存一份数据
|
|
|
|
|
// if (this.checkedBuildingIndex==-1) { //总平面图时
|
|
|
|
|
// this.getSitePlanStorey(item) //获取 平面图 楼层数据
|
|
|
|
|
// } else { //楼层/区域时
|
|
|
|
|
// this.getBuildingStorey(item) //获取 建筑 楼层数据
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// } else { //不保存数据 直接切换
|
|
|
|
|
// this.selectingSitePlan = item
|
|
|
|
|
// this.selectSitePlanIndex = index
|
|
|
|
|
// this.canvasData.selectStorey = item //服务中 存一份数据
|
|
|
|
|
// if (this.checkedBuildingIndex==-1) { //总平面图时
|
|
|
|
|
// this.getSitePlanStorey(item) //获取 平面图 楼层数据
|
|
|
|
|
// this.getSitePlanCompanyData()
|
|
|
|
|
// } else { //楼层/区域时
|
|
|
|
|
// this.getBuildingStorey(item) //获取 建筑 楼层数据
|
|
|
|
|
// let params = { buildingId: this.beforeOneCheckedBuilding.id }
|
|
|
|
|
// this.getBuildingData(params)
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
} else { //false 数据没被改动
|
|
|
|
|
this.selectingSitePlan = item |
|
|
|
|
this.selectSitePlanIndex = index |
|
|
|
|
this.canvasData.selectStorey = item //服务中 存一份数据
|
|
|
|
|
if (this.checkedBuildingIndex==-1) { //总平面图时
|
|
|
|
|
this.getSitePlanStorey(item) //获取 平面图 楼层数据
|
|
|
|
|
} else { //楼层/区域时
|
|
|
|
|
this.getBuildingStorey(item) //获取 建筑 楼层数据
|
|
|
|
|
} |
|
|
|
|
} //if
|
|
|
|
|
|
|
|
|
|
// } else { //false 数据没被改动
|
|
|
|
|
|
|
|
|
|
// } //if
|
|
|
|
|
this.selectingSitePlan = item |
|
|
|
|
this.selectSitePlanIndex = index |
|
|
|
|
this.canvasData.selectStorey = item //服务中 存一份数据
|
|
|
|
|
if (this.checkedBuildingIndex==-1) { //总平面图时
|
|
|
|
|
this.getSitePlanStorey(item) //获取 平面图 楼层数据
|
|
|
|
|
} else { //楼层/区域时
|
|
|
|
|
this.getBuildingStorey(item) //获取 建筑 楼层数据
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|