You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by GitBox <gi...@apache.org> on 2021/05/13 09:37:59 UTC

[GitHub] [skywalking-rocketbot-ui] Visbin commented on a change in pull request #488: Add a function which show the statistics infomation during the trace query

Visbin commented on a change in pull request #488:
URL: https://github.com/apache/skywalking-rocketbot-ui/pull/488#discussion_r631689273



##########
File path: src/views/components/common/trace-detail-statistics-table.vue
##########
@@ -0,0 +1,314 @@
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements.  See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License.  You may obtain a copy of the License at
+
+  http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License. -->
+<template>
+  <div class="trace-detail-chart-table">
+    <div class="rk-trace-t-loading" v-show="loading">
+      <svg class="icon loading">
+        <use xlink:href="#spinner"></use>
+      </svg>
+    </div>
+    <TraceContainer :tableData="tableData" :type="HeaderType">
+      <div class="trace-tips" v-if="!tableData.length">{{ $t('noData') }}</div>
+    </TraceContainer>
+  </div>
+</template>
+<style lang="scss">
+  .rk-tooltip-popper.trace-table-tooltip .rk-tooltip-inner {
+    max-width: 600px;
+  }
+  .trace-detail-chart-table {
+    position: relative;
+    min-height: 300px;
+    border-bottom: 1px solid #ccc;
+  }
+</style>
+
+<script lang="js">
+  import copy from '@/utils/copy';
+  import TraceContainer from './trace-chart-table/trace-statistics-container';
+  import _ from 'lodash';
+  /* eslint-disable */
+  /* tslint:disable */
+  export default {
+    components: {
+      TraceContainer,
+    },
+    props: ['data', 'traceId', 'showBtnDetail', 'HeaderType'],
+    watch: {
+      data(val, oldVal) {
+        if (!this.data.length) {
+          this.tableData = [];
+          return;
+        }
+        this.tableData = this.compute(this.changeTree());
+        this.loading = false;
+      },
+    },
+    data() {
+      return {
+        tableData: [],
+        diaplay: true,
+        list: [],
+        loading: true,
+      };
+    },
+    methods: {
+      copy,
+      compute(data){

Review comment:
       Yeap. It doesn't seem necessary




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org