diff --git a/src/app/ui/collection-tools-building/collection-tools.component.html b/src/app/ui/collection-tools-building/collection-tools.component.html index d1f2efc..50c6ff2 100644 --- a/src/app/ui/collection-tools-building/collection-tools.component.html +++ b/src/app/ui/collection-tools-building/collection-tools.component.html @@ -83,8 +83,8 @@ add -
-
+
+
diff --git a/src/app/ui/collection-tools-building/collection-tools.component.ts b/src/app/ui/collection-tools-building/collection-tools.component.ts index 134dff5..29788be 100644 --- a/src/app/ui/collection-tools-building/collection-tools.component.ts +++ b/src/app/ui/collection-tools-building/collection-tools.component.ts @@ -1728,6 +1728,25 @@ export class CollectionToolsBuildingComponent implements OnInit { } //if } + if (this.element.nativeElement.querySelector('#rightOperate')) { + setTimeout(() => { + this.element.nativeElement.querySelector('#rightOperate').style.position = 'fixed' + this.element.nativeElement.querySelector('#rightOperate').style.left = document.getElementsByClassName('sitePlanContentBox')[0].children[this.selectSitePlanIndex].getBoundingClientRect().left + document.getElementById("leftDiv").offsetWidth + 'px' + this.element.nativeElement.querySelector('#rightOperate').style.top = document.getElementsByClassName('sitePlanContentBox')[0].children[this.selectSitePlanIndex].getBoundingClientRect().top - 32 + 'px' + }, 0); + } + } + + hoverSitePlan(item, key) { + if (key == this.selectSitePlanIndex) { + if (this.element.nativeElement.querySelector('#rightOperate')) { + setTimeout(() => { + this.element.nativeElement.querySelector('#rightOperate').style.position = 'fixed' + this.element.nativeElement.querySelector('#rightOperate').style.left = document.getElementsByClassName('sitePlanContentBox')[0].children[this.selectSitePlanIndex].getBoundingClientRect().left + document.getElementById("leftDiv").offsetWidth + 'px' + this.element.nativeElement.querySelector('#rightOperate').style.top = document.getElementsByClassName('sitePlanContentBox')[0].children[this.selectSitePlanIndex].getBoundingClientRect().top - 32 + 'px' + }, 0); + } + } } //新增平面图 楼层/区域 diff --git a/src/app/ui/collection-tools-plan/collection-tools.component.html b/src/app/ui/collection-tools-plan/collection-tools.component.html index 633c521..e64ef22 100644 --- a/src/app/ui/collection-tools-plan/collection-tools.component.html +++ b/src/app/ui/collection-tools-plan/collection-tools.component.html @@ -71,10 +71,10 @@ add
-
+
+ (click)='selectSitePlan(item,key)' (mouseenter)="hoverSitePlan(item,key)"> diff --git a/src/app/ui/collection-tools-plan/collection-tools.component.ts b/src/app/ui/collection-tools-plan/collection-tools.component.ts index c0d1811..eea6b0b 100644 --- a/src/app/ui/collection-tools-plan/collection-tools.component.ts +++ b/src/app/ui/collection-tools-plan/collection-tools.component.ts @@ -1684,6 +1684,25 @@ export class CollectionToolsPlanComponent implements OnInit { } //if } + if (this.element.nativeElement.querySelector('#rightOperate')) { + setTimeout(() => { + this.element.nativeElement.querySelector('#rightOperate').style.position = 'fixed' + this.element.nativeElement.querySelector('#rightOperate').style.left = document.getElementsByClassName('sitePlanContentBox')[0].children[this.selectSitePlanIndex].getBoundingClientRect().left + document.getElementById("leftDiv").offsetWidth + 'px' + this.element.nativeElement.querySelector('#rightOperate').style.top = document.getElementsByClassName('sitePlanContentBox')[0].children[this.selectSitePlanIndex].getBoundingClientRect().top - 32 + 'px' + }, 0); + } + } + + hoverSitePlan(item, key) { + if (key == this.selectSitePlanIndex) { + if (this.element.nativeElement.querySelector('#rightOperate')) { + setTimeout(() => { + this.element.nativeElement.querySelector('#rightOperate').style.position = 'fixed' + this.element.nativeElement.querySelector('#rightOperate').style.left = document.getElementsByClassName('sitePlanContentBox')[0].children[this.selectSitePlanIndex].getBoundingClientRect().left + document.getElementById("leftDiv").offsetWidth + 'px' + this.element.nativeElement.querySelector('#rightOperate').style.top = document.getElementsByClassName('sitePlanContentBox')[0].children[this.selectSitePlanIndex].getBoundingClientRect().top - 32 + 'px' + }, 0); + } + } } //新增平面图 楼层/区域