+ (click)='selectSitePlan(item,key)' (mouseenter)="hoverSitePlan(item,key)">
-
-
-
-
-
-
@@ -96,7 +90,7 @@
-
keyboard_arrow_up
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 f7d8d32..cd34d19 100644
--- a/src/app/ui/collection-tools-plan/collection-tools.component.ts
+++ b/src/app/ui/collection-tools-plan/collection-tools.component.ts
@@ -1642,7 +1642,7 @@ export class CollectionToolsPlanComponent implements OnInit {
//点击选中 平面图 楼层/区域 时
isGis: boolean
selectSitePlan(item, index) {
- console.log('点击楼层', item)
+ // console.log('点击楼层', item)
if (item.isGis) {
this.isGis = true
} else {
@@ -1691,8 +1691,26 @@ 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);
+ }
+ }
+
}
-
//新增平面图 楼层/区域
foundPanel(e) {
e.stopPropagation()
diff --git a/src/app/ui/collection-tools-plan/panel.scss b/src/app/ui/collection-tools-plan/panel.scss
index ef131fc..a55f935 100644
--- a/src/app/ui/collection-tools-plan/panel.scss
+++ b/src/app/ui/collection-tools-plan/panel.scss
@@ -130,9 +130,6 @@
#rightOperate{
width: 50px;
height: 100px;
- position: absolute;
- top: -32px;
- right: -48px;
z-index: 99999;
border-radius: 0 100px 100px 0;
background-color: #F0F4F7;
diff --git a/src/index.html b/src/index.html
index 5060ae3..db6e7cb 100644
--- a/src/index.html
+++ b/src/index.html
@@ -23,13 +23,13 @@