Browse Source

电井点击高亮不回复得问题

YaolongHan 4 years ago
parent
commit
9db8e363e4
2 changed files with 1067 additions and 923 deletions
  1. 1060 923
      src/components/floorMap/darkColorIndex.vue
  2. 7 0
      src/components/floorMap/index.vue

File diff suppressed because it is too large
+ 1060 - 923
src/components/floorMap/darkColorIndex.vue


+ 7 - 0
src/components/floorMap/index.vue

@@ -339,6 +339,9 @@ export default {
           ) {
             //判断是否为电井
             this.showBtnWell = true;
+            setTimeout(()=>{
+              item.selected = true
+            },300)
           }
           setTimeout(() => {
             this.visible = true;
@@ -866,6 +869,10 @@ export default {
     },
     // 清除电井关联商铺的高亮状态
     clearHightLight() {
+           // 所有电井置为 select = false
+      this.topologyParser.imageLegendList.forEach((eqItem) => {
+        eqItem.selected = false;
+      });
       ItemColor.spaceHighColor = new SColor("#FBF2CC");
       // for (let key in this.wellMap) {
       //     this.wellMap[key].forEach((item) => {