Browse Source

feat:慢业务top5 table得label 更改名称

liujing 11 months ago
parent
commit
aa057a0115
1 changed files with 6 additions and 1 deletions
  1. 6 1
      src/views/business-analysis/topology/index.vue

+ 6 - 1
src/views/business-analysis/topology/index.vue

@@ -166,7 +166,12 @@
                             >
                               <el-table-column header-align="left" label="业务名称" prop="biz_name" align="left" :show-overflow-tooltip="true"/>
                               <el-table-column header-align="left" label="起始服务" prop="service_name" align="left" :show-overflow-tooltip="true"/>
-                              <el-table-column header-align="left" label="延迟" prop="duration" align="left" :show-overflow-tooltip="true"/>
+                              <el-table-column header-align="left" label="平均延迟(ms)" prop="duration" align="left">
+                                <template slot-scope="scope">
+                                  <el-tag v-if="scope.row.duration>=2000" type="danger">{{ Number(scope.row.duration).toFixed(2) }}</el-tag>
+                                  <el-tag v-if="scope.row.duration<2000" type="info">{{ Number(scope.row.duration).toFixed(2) }}</el-tag>
+                                </template>
+                              </el-table-column>
                             </el-table>
                             <div class='look-more' @click='goPath("/business-analysis/analysis/index")'>查看更多<i class="el-icon-d-arrow-right"></i></div>
                           </div>