You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by wu...@apache.org on 2019/12/10 02:22:43 UTC

[skywalking-rocketbot-ui] branch master updated: Use URL parameters to visit specified trace (#217)

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 fa91402  Use URL parameters to visit specified trace (#217)
fa91402 is described below

commit fa914020d8c52164ac8291eafaa0db32c52325db
Author: QHWG67 <e_...@163.com>
AuthorDate: Tue Dec 10 10:22:37 2019 +0800

    Use URL parameters to visit specified trace (#217)
    
    * Use URL parameters to visit specified trace
    
    People want to use URL with parameter to visit the specified trace information, it is useful for some performance managment tool to use hyperlink to skywalking page.
---
 src/views/components/trace/trace-search.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/views/components/trace/trace-search.vue b/src/views/components/trace/trace-search.vue
index 3555f9e..3c23b94 100644
--- a/src/views/components/trace/trace-search.vue
+++ b/src/views/components/trace/trace-search.vue
@@ -100,7 +100,7 @@
     private traceState: Option = {label: 'All', key: 'ALL'};
     @Prop({default: false, type: Boolean})
     private inTopo!: boolean;
-
+  
     private dateFormat = (date: Date, step: string) => {
       const year = date.getFullYear();
       const monthTemp = date.getMonth() + 1;
@@ -236,6 +236,8 @@
     }
 
     private created() {
+      this.endpointName = this.$route.query.endpointname? this.$route.query.endpointname.toString() : this.endpointName;
+      this.traceId = this.$route.query.traceid? this.$route.query.traceid.toString() : this.traceId;
       this.time = [this.rocketbotGlobal.durationRow.start, this.rocketbotGlobal.durationRow.end];
     }