Browse Source

feat(服务解析/业务解析字段)

liujing 3 weeks ago
parent
commit
16efcb0d71
2 changed files with 14 additions and 15 deletions
  1. 5 3
      src/views/service/InterfaceSublist/index.vue
  2. 9 12
      src/views/service/service/index.vue

+ 5 - 3
src/views/service/InterfaceSublist/index.vue

@@ -176,7 +176,7 @@
             <el-table-column v-if="colData[5].istrue" header-align="center" label="请求总数" sortable prop="total" align="right" :show-overflow-tooltip="true">
               <template slot-scope="scope">
                 <div :class="scope.row.total!=0&&scope.row.total!= undefined?'table_bg':'table_bg_yellow'">
-                  {{ scope.row.total== undefined?0:Number(scope.row.total).toFixed(2) }}
+                  {{ scope.row.total== undefined?0:Number(scope.row.total) }}
                 </div>
               </template>
             </el-table-column>
@@ -325,7 +325,9 @@ export default {
         '接口名',
         'URL',
         '请求总数',
-        '错误率'
+        '错误率',
+        '服务名称',
+        '方法'
         // '中位延迟',
         // '90分位延迟',
         // '99分位延迟'
@@ -339,7 +341,7 @@ export default {
         { title: '所属模块', istrue: false },
         { title: '请求总数', istrue: false },
         { title: '错误率', istrue: false },
-        { title: '业务概述', istrue: false },
+        { title: '业务概述', istrue: false }
         // { title: '中位延迟', istrue: false },
         // { title: '90分位延迟', istrue: false },
         // { title: '99分位延迟', istrue: false }

+ 9 - 12
src/views/service/service/index.vue

@@ -79,8 +79,7 @@
             <el-table-column v-if="colData[4].istrue" header-align="center" label="请求总数" sortable prop="total" align="right" :show-overflow-tooltip="true">
               <template slot-scope="scope">
                 <div :class="scope.row.total!=0&&scope.row.total!= undefined?'table_bg':'table_bg_yellow'">
-                  <!-- <el-tag>{{ scope.row.total== undefined?0:Number(scope.row.total).toFixed(2)}}</el-tag> -->
-                  {{ scope.row.total== undefined?0:Number(scope.row.total).toFixed(2) }}
+                  {{ scope.row.total== undefined?0:Number(scope.row.total) }}
                 </div>
               </template>
             </el-table-column>
@@ -249,11 +248,10 @@ export default {
         // "kind",
         // "rpm",
         '请求总数',
-        '最大延迟(ms)',
-        // "延迟比例",
-        '中位延迟',
-        '90分位延迟',
-        '99分位延迟'
+        '最大延迟(ms)'
+        // '中位延迟',
+        // '90分位延迟',
+        // '99分位延迟'
       ],
       colData: [
         { title: '服务别名', istrue: false },
@@ -263,11 +261,10 @@ export default {
         { title: '请求总数', istrue: false },
         { title: '错误率', istrue: false },
         { title: '最大延迟(ms)', istrue: false },
-        { title: '平均延迟(ms)', istrue: false },
-        // { title: "延迟比例", istrue: false },
-        { title: '中位延迟', istrue: false },
-        { title: '90分位延迟', istrue: false },
-        { title: '99分位延迟', istrue: false }
+        { title: '平均延迟(ms)', istrue: false }
+        // { title: '中位延迟', istrue: false },
+        // { title: '90分位延迟', istrue: false },
+        // { title: '99分位延迟', istrue: false }
       ],
       appItem: {},
       form: {