You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2020/12/21 06:08:39 UTC

[skywalking-rocketbot-ui] branch master updated: fix: topo of all services (#404)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking-rocketbot-ui.git


The following commit(s) were added to refs/heads/master by this push:
     new 075b29f  fix: topo of all services (#404)
075b29f is described below

commit 075b29fce4f9a1aa50165385f0b30e61dfb9896d
Author: Qiuxia Fan <fi...@outlook.com>
AuthorDate: Mon Dec 21 14:08:30 2020 +0800

    fix: topo of all services (#404)
---
 src/views/components/topology/topo-services.vue | 25 +++++++++++++------------
 1 file changed, 13 insertions(+), 12 deletions(-)

diff --git a/src/views/components/topology/topo-services.vue b/src/views/components/topology/topo-services.vue
index 7a28770..c1208f3 100644
--- a/src/views/components/topology/topo-services.vue
+++ b/src/views/components/topology/topo-services.vue
@@ -77,24 +77,14 @@ limitations under the License. -->
     private changeService(i: { key: string; label: string; group: string }) {
       this.service = i;
       this.UNSELECT_GROUP();
-      if (this.service.key) {
-        this.GET_TOPO({
-          serviceId: this.service.key,
-          duration: this.durationTime,
-        });
-      } else {
-        this.getServicesTopo();
-      }
+      this.changeTopo();
     }
 
     private changeGroup(i: { key: string; label: string }) {
       this.group = i;
       this.currentServices = this.currentServiceList;
       this.service = this.currentServices[0];
-      this.GET_TOPO({
-        serviceId: this.service.key,
-        duration: this.durationTime,
-      });
+      this.changeTopo();
     }
 
     private renderTopo() {
@@ -118,6 +108,17 @@ limitations under the License. -->
       });
     }
 
+    private changeTopo() {
+      if (this.service.key) {
+        this.GET_TOPO({
+          serviceId: this.service.key,
+          duration: this.durationTime,
+        });
+      } else {
+        this.getServicesTopo();
+      }
+    }
+
     @Watch('durationTime')
     private watchDurationTime(newValue: DurationTime, oldValue: DurationTime) {
       // Avoid repeating fetchData() after enter the component for the first time.