|
@@ -165,8 +165,8 @@
|
|
|
@row-click="handleRowClickBusiness"
|
|
|
>
|
|
|
<el-table-column header-align="left" label="业务名称" prop="biz_name" align="left" :show-overflow-tooltip="true"/>
|
|
|
- <el-table-column header-align="left" label="错误率" prop="error_rate" align="left" :show-overflow-tooltip="true">
|
|
|
- <template slot-scope="scope">{{scope.row.error_rate.toFixed(2) }}</template>
|
|
|
+ <el-table-column header-align="left" label="错误率(%)" prop="error_rate" align="left" :show-overflow-tooltip="true">
|
|
|
+ <template slot-scope="scope">{{(scope.row.error_rate*100).toFixed(2) }}%</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column header-align="left" label="平均延迟(ms)" prop="duration" align="left">
|
|
|
<template slot-scope="scope">
|
|
@@ -324,7 +324,7 @@
|
|
|
import storage from '@/utils/storage'
|
|
|
import NoData from "@/views/NoData/nodata"
|
|
|
import {serviceBar} from "@/api/service"
|
|
|
-import { slowTopUrlMapping, getSlowInterfaceData } from "@/api/mapping"
|
|
|
+import { slowTopUrlMapping, getSlowInterfaceData, listBizStats } from "@/api/mapping"
|
|
|
import {dbslowtop} from '@/api/trace'
|
|
|
import { appsScore } from '@/api/apps'
|
|
|
export default {
|
|
@@ -592,14 +592,27 @@ export default {
|
|
|
})
|
|
|
window.open(window.location.origin+"/"+href.href,"_blank")
|
|
|
},
|
|
|
- handleRowClickBusiness(row){
|
|
|
- this.$router.push({
|
|
|
- path:'/business-analysis/analysisDetail/index',
|
|
|
- query:{
|
|
|
- id:row.biz_id,
|
|
|
- name:row.biz_name,
|
|
|
- }
|
|
|
- })
|
|
|
+ async handleRowClickBusiness(row){
|
|
|
+ row.name = row.biz_name
|
|
|
+ row.id = row.biz_id
|
|
|
+ let obj = {
|
|
|
+ biz_id: row.biz_id,
|
|
|
+ start_time: this.appItem.start_time,
|
|
|
+ end_time: this.appItem.end_time
|
|
|
+ }
|
|
|
+ const res = await listBizStats(obj)
|
|
|
+ if (res.code == 200){
|
|
|
+ row.quantiles = res.data.quantiles
|
|
|
+ storage.set('detailObj',row);
|
|
|
+ this.$router.push({
|
|
|
+ path:'/business-analysis/analysisDetail/index',
|
|
|
+ query:{
|
|
|
+ id:row.biz_id,
|
|
|
+ name:row.biz_name,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
goPath(path){
|
|
|
this.$router.push({
|