|
|
|
@ -416,7 +416,15 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
this.getAllLibrary() |
|
|
|
|
this.getSitePlan() |
|
|
|
|
this.getAllBuildings() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let that = this |
|
|
|
|
window.setTimeout(()=>{ |
|
|
|
|
document.getElementById("functionalDomainContent").oncontextmenu = function (event) { |
|
|
|
|
that.selectImageIndex = -1 |
|
|
|
|
event.preventDefault(); |
|
|
|
|
}; |
|
|
|
|
}) |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -931,7 +939,9 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
backGroundScale () { |
|
|
|
|
let that = this |
|
|
|
|
let dad = document.querySelector('.functionalDomainContent').clientWidth |
|
|
|
|
let imgWidth = dad - 460 //可是区域内 宽度
|
|
|
|
|
let left = document.querySelector('.functionalDomainLeft').clientWidth |
|
|
|
|
let right = document.querySelector('.functionalDomainRight').clientWidth |
|
|
|
|
let imgWidth = dad - left - right//可是区域内 宽度
|
|
|
|
|
let img = new Image() |
|
|
|
|
img.src = this.selectingSitePlan.imageUrl;
|
|
|
|
|
img.onload = function(){ |
|
|
|
@ -946,7 +956,7 @@ export class CollectionToolsComponent implements OnInit {
|
|
|
|
|
isRefresh? this.canvasData.isChange = false : null //服务中 数据是否改动 改为false
|
|
|
|
|
isRefresh? this.isShowProperty = true : null |
|
|
|
|
isRefresh? this.isShowAttribute = true : null |
|
|
|
|
this.selectingSitePlan.imageUrl? this.backGroundScale() : null |
|
|
|
|
isRefresh && this.selectingSitePlan.imageUrl? this.backGroundScale() : null |
|
|
|
|
|
|
|
|
|
let beforeOneId = this.selectingSitePlan.id || '' //当前 选中 平面图 楼层/区域 id
|
|
|
|
|
let companyBuildingData = JSON.parse(JSON.stringify( this.canvasData.originalcompanyBuildingData || {} )) // 当前 单位/建筑 数据
|
|
|
|
|