|
|
|
@ -694,11 +694,11 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//封装 刷新 tree 数据
|
|
|
|
|
renovateTreeData () { |
|
|
|
|
this.canvas.refresh() |
|
|
|
|
this.canvasData.isChange = false //服务中 数据是否改动 改为false
|
|
|
|
|
this.isShowProperty = true |
|
|
|
|
this.isShowAttribute = true |
|
|
|
|
renovateTreeData (isRefresh:boolean = true) { |
|
|
|
|
isRefresh? this.canvas.refresh() :
|
|
|
|
|
isRefresh? this.canvasData.isChange = false : //服务中 数据是否改动 改为false
|
|
|
|
|
isRefresh? this.isShowProperty = true : |
|
|
|
|
isRefresh? this.isShowAttribute = true : |
|
|
|
|
this.allFireElements[this.allFireElements.length-1].children = [] |
|
|
|
|
|
|
|
|
|
let beforeOneId = this.selectingSitePlan.id || '' //当前 选中 平面图 楼层/区域 id
|
|
|
|
@ -859,18 +859,17 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
|
|
|
|
|
if (this.canvasData.isChange) { //true 数据被改动
|
|
|
|
|
let isTrue = confirm('是否保存当前编辑数据') |
|
|
|
|
if (isTrue) { //保存一遍数据, 再刷新数据
|
|
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
this.selectingSitePlan = item |
|
|
|
|
this.selectSitePlanIndex = index |
|
|
|
|
this.canvasData.selectStorey = item //服务中 存一份数据
|
|
|
|
|
if (this.checkedBuildingIndex==-1) { //总平面图时
|
|
|
|
|
this.getSitePlanStorey(item) //获取 平面图 楼层数据
|
|
|
|
|
} else { //楼层/区域时
|
|
|
|
|
this.getBuildingStorey(item) //获取 建筑 楼层数据
|
|
|
|
|
} |
|
|
|
|
isTrue? this.saveSite() : //true的时候 先保存数据
|
|
|
|
|
|
|
|
|
|
this.selectingSitePlan = item |
|
|
|
|
this.selectSitePlanIndex = index |
|
|
|
|
this.canvasData.selectStorey = item //服务中 存一份数据
|
|
|
|
|
if (this.checkedBuildingIndex==-1) { //总平面图时
|
|
|
|
|
this.getSitePlanStorey(item) //获取 平面图 楼层数据
|
|
|
|
|
} else { //楼层/区域时
|
|
|
|
|
this.getBuildingStorey(item) //获取 建筑 楼层数据
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} else { //false 数据没被改动
|
|
|
|
|
this.selectingSitePlan = item |
|
|
|
|
this.selectSitePlanIndex = index |
|
|
|
|