|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div style="padding:16px;">
|
|
|
- <el-row :gutter="10" class="mb8">
|
|
|
+ <el-row :gutter="10" class="mb8" style="display: flex;align-items: center;">
|
|
|
<el-col :span="5">
|
|
|
<div class="flex">
|
|
|
<span class="seach-title">涉及的服务</span>
|
|
@@ -17,20 +17,20 @@
|
|
|
<el-col :span="5">
|
|
|
<div class="flex">
|
|
|
<span class="seach-title">延迟范围 >=</span>
|
|
|
- <el-input v-model="queryParams.duration" style="width: 70%" type="number" size="small" clearable placeholder="请输入延迟范围" @keyup.enter.native="handleQuery" @clear="handleQuery" />
|
|
|
+ <el-input v-model="queryParams.duration" style="width: 70%" size="small" clearable placeholder="请输入延迟范围" @keyup.enter.native="handleQuery" @clear="handleQuery" />
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
<div class="flex">
|
|
|
<span class="seach-title">错误率 >=</span>
|
|
|
- <!-- <el-input v-model="queryParams.error_rate" style="width: 70%" type="number" size="small" clearable placeholder="请输入0-1之间的小数" @keyup.enter.native="handleQuery" @clear="handleQuery" /> -->
|
|
|
- <el-input-number size="small" controls-position="right" style="width: 70%" v-model="queryParams.error_rate" :step="0.1" :min="0" :max="1" clearable placeholder="请输入0-1之间的小数" @keyup.enter.native="handleQuery" ></el-input-number>
|
|
|
+ <el-input v-model="queryParams.error_rate" style="width: 70%" size="small" clearable placeholder="请输入0-1之间的小数" @keyup.enter.native="handleQuery" @clear="handleQuery" />
|
|
|
+ <!-- <el-input-number size="small" controls-position="right" style="width: 70%" v-model="queryParams.error_rate" :step="0.1" :min="0" :max="1" clearable placeholder="请输入0-1之间的小数" @keyup.enter.native="handleQuery" ></el-input-number> -->
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="5">
|
|
|
<div class="flex">
|
|
|
<span class="seach-title">请求量 >=</span>
|
|
|
- <el-input v-model="queryParams.request_total" style="width: 70%" type="number" size="small" clearable placeholder="请输入请求量" @keyup.enter.native="handleQuery" @clear="handleQuery" />
|
|
|
+ <el-input v-model="queryParams.request_total" style="width: 70%" size="small" clearable placeholder="请输入请求量" @keyup.enter.native="handleQuery" @clear="handleQuery" />
|
|
|
</div>
|
|
|
</el-col>
|
|
|
<el-col :span="4">
|
|
@@ -122,7 +122,7 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
- <el-table-column v-if="colData[5].istrue" header-align="center" align="center" label="错误率" sortable prop="error_rate" :show-overflow-tooltip="true">
|
|
|
+ <el-table-column v-if="colData[5].istrue" header-align="center" align="center" label="错误率" prop="error_rate" :show-overflow-tooltip="true">
|
|
|
<template slot-scope="scope">
|
|
|
<div :class="scope.row.error_rate==0?'table_bg':'table_bg_red'">
|
|
|
<div class="table-num-box">
|
|
@@ -175,7 +175,7 @@
|
|
|
</div>
|
|
|
<span v-if="scope.row.quantiles!=undefined" style="display:flex;">
|
|
|
{{ drawEchartsp5(scope.row, scope.$index, 'five') }}
|
|
|
- <div :id="`tiger-five-trend-index` + scope.$index" style="flex:1;padding-left:10px" class="tiger-trend-charts" />
|
|
|
+ <div :id="`allBussiness-five-trend-index` + scope.$index" style="flex:1;padding-left:10px; height: 40px;width: 120px; max-width: 200px;" class="tiger-trend-charts" />
|
|
|
</span>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -196,7 +196,7 @@
|
|
|
</div>
|
|
|
<span v-if="scope.row.quantiles!=undefined" style="display:flex;">
|
|
|
{{ drawEchartsp90(scope.row, scope.$index, 'nine') }}
|
|
|
- <div :id="`tiger-nine-trend-index` + scope.$index" style="flex:1;padding-left:10px" class="tiger-trend-charts" />
|
|
|
+ <div :id="`allBussiness-nine-trend-index` + scope.$index" style="flex:1;padding-left:10px" class="tiger-trend-charts" />
|
|
|
</span>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -217,7 +217,7 @@
|
|
|
</div>
|
|
|
<span v-if="scope.row.quantiles!=undefined" style="display:flex;">
|
|
|
{{ drawEchartsp99(scope.row, scope.$index, 'hundred') }}
|
|
|
- <div :id="`tiger-hundred-trend-index` + scope.$index" style="flex:1;padding-left:10px" class="tiger-trend-charts" />
|
|
|
+ <div :id="`allBussiness-hundred-trend-index` + scope.$index" style="flex:1;padding-left:10px" class="tiger-trend-charts" />
|
|
|
</span>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -287,19 +287,17 @@
|
|
|
|
|
|
<script>
|
|
|
import ServiceSpaceDrawer from './ServiceSpaceDrawer.vue'
|
|
|
-import { addUrlMapping, getNewBusinessList, listBizStats, getBizDetail, listBizGraph, updateBiz, delBiz, favorBiz } from '@/api/mapping'
|
|
|
+import { addUrlMapping, getNewBusinessList, listBizStats, listBizGraph, updateBiz, delBiz, favorBiz } from '@/api/mapping'
|
|
|
import { formatJson } from '@/utils'
|
|
|
import storage from '@/utils/storage'
|
|
|
// import bus from '@/utils/bus'
|
|
|
import { listService } from '@/api/service'
|
|
|
import { getToken } from '@/utils/auth'
|
|
|
import resize from '../../mixins/resize'
|
|
|
-import Topo from './Topo'
|
|
|
import BigNumber from 'bignumber.js'
|
|
|
export default {
|
|
|
name: 'allBusinessCon',
|
|
|
components: {
|
|
|
- Topo,
|
|
|
ServiceSpaceDrawer
|
|
|
},
|
|
|
mixins: [resize],
|
|
@@ -316,7 +314,7 @@ export default {
|
|
|
'错误率',
|
|
|
// '最大延迟(ms)',
|
|
|
// "延迟比例",
|
|
|
- // '中位延迟'
|
|
|
+ '中位延迟'
|
|
|
// '90分位延迟',
|
|
|
// '99分位延迟'
|
|
|
],
|
|
@@ -1012,7 +1010,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
setTimeout(() => { // tiger-five-trend-index
|
|
|
- const chartId = 'tiger-' + 'five' + '-trend-index' + index
|
|
|
+ const chartId = 'allBussiness-' + 'five' + '-trend-index' + index
|
|
|
|
|
|
let myChart = that.$echarts5.getInstanceByDom(document.getElementById(chartId))
|
|
|
if (myChart == null) {
|
|
@@ -1078,7 +1076,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
setTimeout(() => {
|
|
|
- const chartId = 'tiger-' + arguments[2] + '-trend-index' + arguments[1]
|
|
|
+ const chartId = 'allBussiness-' + arguments[2] + '-trend-index' + arguments[1]
|
|
|
let myChartbox = this.$echarts5.getInstanceByDom(document.getElementById(chartId))
|
|
|
if (myChartbox == null) {
|
|
|
myChartbox = that.$echarts5.init(document.getElementById(chartId), 'ninebox')
|
|
@@ -1144,7 +1142,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
setTimeout(() => {
|
|
|
- const chartId = 'tiger-' + arguments[2] + '-trend-index' + arguments[1]
|
|
|
+ const chartId = 'allBussiness-' + arguments[2] + '-trend-index' + arguments[1]
|
|
|
let myChartBox2 = this.$echarts5.getInstanceByDom(document.getElementById(chartId))
|
|
|
if (myChartBox2 == null) {
|
|
|
myChartBox2 = that.$echarts5.init(document.getElementById(chartId), 'hundredbox')
|
|
@@ -1287,6 +1285,9 @@ export default {
|
|
|
::v-deep .el-input--suffix .el-input__inner{
|
|
|
padding-right: 0;
|
|
|
}
|
|
|
+::v-deep .el-checkbox__label{
|
|
|
+ font-size: 12px;
|
|
|
+}
|
|
|
.flex{
|
|
|
display: flex;
|
|
|
align-items: center;
|