wang_xy 2 lat temu
rodzic
commit
8d2dc4c0e1
1 zmienionych plików z 8 dodań i 4 usunięć
  1. 8 4
      src/views/datacenter.vue

+ 8 - 4
src/views/datacenter.vue

@@ -367,8 +367,10 @@ export default {
         if(this.showSearch == true){
           this.dataChat();
         }
-        that.$refs.supermap.clearM()
-        that.$refs.supermap.setMarkers(that.markersList)
+        setTimeout(() => {
+          that.$refs.supermap.clearM()
+          that.$refs.supermap.setMarkers(that.markersList)
+        }, 3000)
       })
     },
     indentleftByDeptIdSetMarkers(deptId) {
@@ -393,8 +395,10 @@ export default {
             that.markersList.push(this.getMarkersMap(that.resourceTable, markersMap, res.data.resourceList[i]));
           }
         }
-        that.$refs.supermap.clearM()
-        that.$refs.supermap.setMarkers(that.markersList)
+        setTimeout(() => {
+          that.$refs.supermap.clearM()
+          that.$refs.supermap.setMarkers(that.markersList)
+        }, 3000)
       })
     },
     getMarkersMap(resourceTable, markersMap, item){