diff --git a/src/app/pages/left-domain/left-domain.component.html b/src/app/pages/left-domain/left-domain.component.html index c5b558b..d0782a8 100644 --- a/src/app/pages/left-domain/left-domain.component.html +++ b/src/app/pages/left-domain/left-domain.component.html @@ -18,7 +18,11 @@
-
+
+ +
+
+

@@ -46,7 +50,11 @@
-
+
+ +
+
+

diff --git a/src/app/pages/left-domain/left-domain.component.scss b/src/app/pages/left-domain/left-domain.component.scss index 6bfca9a..5f39ec6 100644 --- a/src/app/pages/left-domain/left-domain.component.scss +++ b/src/app/pages/left-domain/left-domain.component.scss @@ -47,7 +47,11 @@ .textImage{ margin-bottom: 15px; height: auto; line-height: normal; img{ width: auto; height: 130px; } } } .refueller{ //加油机 - .interval{ margin-top: 10px; } //分隔div + .interval{ margin-top: 10px; position: relative; cursor: pointer; } //分隔div + .positionLeftTop { position: absolute; width: 10px; height: 10px; left: -5px; top: -5px; border-left: 1px solid #fff; border-top: 1px solid #fff; } //左上角 + .positionLeftBottom { position: absolute; width: 10px; height: 10px; left: -5px; bottom: -5px; border-left: 1px solid #fff; border-bottom: 1px solid #fff; } //左下角 + .positionRightTop { position: absolute; width: 10px; height: 10px; right: -5px; top: -5px; border-right: 1px solid #fff; border-top: 1px solid #fff; } //右上角 + .positionRightBottom { position: absolute; width: 10px; height: 10px; right: -5px; bottom: -5px; border-right: 1px solid #fff; border-bottom: 1px solid #fff; } //右下角 .table{ width: 100%; border: 1px solid #91CCFF; diff --git a/src/app/pages/left-domain/left-domain.component.ts b/src/app/pages/left-domain/left-domain.component.ts index 351f80a..e6dd912 100644 --- a/src/app/pages/left-domain/left-domain.component.ts +++ b/src/app/pages/left-domain/left-domain.component.ts @@ -56,6 +56,17 @@ export class LeftDomainComponent implements OnInit { } } + //选中 设备 + selectFacility(item: FacilityInfoUIItem) { + if (this.selectFacilityId != item.getID()) { + this.selectFacilityId = item.getID() + FacilityInfoInSceneWindow.instance.selectFacilityItem(item); + } else { + this.selectFacilityId = null + item.onSelect(false) + } + } + //处理 treeData handleTreeData(list: FacilityInfoUIItem[]) { this.treeData = []