浏览代码

数据中心

wangzhe 2 年之前
父节点
当前提交
4370d9e74e
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/datacenter.vue

+ 4 - 2
src/views/datacenter.vue

@@ -50,7 +50,7 @@
       <!--      <button @click="showEventInfo1" style="position: absolute; right: 50%;top: 45%;z-index: 1000;">弹层事件演示用按钮-->
       <!--      <button @click="showEventInfo1" style="position: absolute; right: 50%;top: 45%;z-index: 1000;">弹层事件演示用按钮-->
       <!--      </button>-->
       <!--      </button>-->
       <!-- 右侧 -->
       <!-- 右侧 -->
-      <div class="rightbar" :class="indentright" ref="right" v-show="showSearch == true">
+      <div class="rightbar" :class="indentright" ref="right" v-if="showSearch == true">
         <div class="forthis">
         <div class="forthis">
           <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
           <dv-border-box-13 backgroundColor="rgba(12, 19, 38, .90)" style="padding-bottom: 1rem;">
             <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
             <img src="../assets/images/integrated/light.png" style="width: 100%; margin-top: .4rem;"/>
@@ -389,7 +389,9 @@
               // that.markersList.push(markersMap)
               // that.markersList.push(markersMap)
             }
             }
           }
           }
-          this.dataChat();
+          if(this.showSearch == true){
+            this.dataChat();
+          }
           that.$refs.supermap.clearM(false)
           that.$refs.supermap.clearM(false)
           that.$refs.supermap.setMarkers(that.markersList)
           that.$refs.supermap.setMarkers(that.markersList)
         })
         })