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 905b896  bugfix: trace table (#280)
905b896 is described below

commit 905b89687a74a306e89f3fbafe43dd3d7ff80eaf
Author: Qiuxia Fan <[email protected]>
AuthorDate: Wed Apr 8 20:12:47 2020 +0800

    bugfix: trace table (#280)
    
    * fix: trace table
    
    * fix: add type
---
 src/views/components/common/trace-chart-table/trace-item.vue | 4 ++--
 src/views/components/common/trace-detail-chart-table.vue     | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/views/components/common/trace-chart-table/trace-item.vue 
b/src/views/components/common/trace-chart-table/trace-item.vue
index 1b02dcb..9791923 100644
--- a/src/views/components/common/trace-chart-table/trace-item.vue
+++ b/src/views/components/common/trace-chart-table/trace-item.vue
@@ -49,7 +49,7 @@ limitations under the License. -->
       <div class="application">
         <span v-tooltip:bottom="data.serviceCode || '-'">{{ data.serviceCode 
}}</span>
       </div>
-      <div class="application">
+      <div class="application" v-show="type === 'profile'">
         <span @click="viewSpanDetail">{{ this.$t('view') }}</span>
       </div>
     </div>
@@ -61,7 +61,7 @@ limitations under the License. -->
 <script lang="js">
   export default {
     name: 'item',
-    props: ['data'],
+    props: ['data', 'type'],
     watch: {
       data() {
         const items = document.querySelectorAll('.trace-item');
diff --git a/src/views/components/common/trace-detail-chart-table.vue 
b/src/views/components/common/trace-detail-chart-table.vue
index 95681cc..0c5716e 100644
--- a/src/views/components/common/trace-detail-chart-table.vue
+++ b/src/views/components/common/trace-detail-chart-table.vue
@@ -20,7 +20,7 @@ limitations under the License. -->
       </svg>
     </div>
     <TraceContainer :type="HeaderType">
-      <Item v-for="(item, index) in tableData" :data="item" :key="'key' + 
index" />
+      <Item v-for="(item, index) in tableData" :data="item" :key="'key' + 
index" :type="HeaderType" />
       <div class="trace-tips" v-if="!tableData.length">{{ $t('noData') }}</div>
     </TraceContainer>
     <rk-sidebox :width="'50%'" :show.sync="showDetail" :title="$t('spanInfo')">

Reply via email to