YaolongHan пре 4 година
родитељ
комит
cd008ff09c
3 измењених фајлова са 10 додато и 3 уклоњено
  1. 1 1
      package.json
  2. 8 1
      src/components/floorMap/index.vue
  3. 1 1
      src/views/equipment/index.vue

+ 1 - 1
package.json

@@ -6,7 +6,7 @@
         "host": "60.205.177.43",
         "path": "/root/apps/web/wandaBmGuide",
         "user": "root",
-        "password": "cGVyc2FneV8yMDIwbGFic2wlIyQ=",
+        "password": "persagy_2021Persagy%#$=",
         "local": "wandaBmGuide"
     },
     "scripts": {

+ 8 - 1
src/components/floorMap/index.vue

@@ -20,6 +20,7 @@
       placeholder="搜索商铺名称或商铺编号"
       :remote-method="serchShop"
       @change="serchShopChange"
+      @focus="getShopFocus"
       :clearable="true"
       @clear="clearShop"
       prefix-icon="el-icon-search"
@@ -343,7 +344,12 @@ export default {
           //  高亮商铺
            this.clickMapPlace(shopItem.item);
          } 
-       })
+       });
+     
+    },
+    // 获取焦点
+    getShopFocus(){
+      document.getElementsByClassName('serchShop')[0].style.zIndex = "999"
     },
     /**
      * 点击图标事件
@@ -892,6 +898,7 @@ export default {
       // 清空搜索框
       this.options = [];
       this.serchmsg = '';
+      document.getElementsByClassName('serchShop')[0].style.zIndex = "2"
     },
     // 选中电井关联的商铺高亮
     setHightLight(arr) {

+ 1 - 1
src/views/equipment/index.vue

@@ -852,8 +852,8 @@ export default {
   position: relative;
   height: 408px;
   overflow-y: auto;
+  overflow-x: auto;
   table {
-    width: 100%;
     border-collapse: collapse;
   }
   th,