+ (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);
+ }
+ }
}
//新增平面图 楼层/区域