refactor(性能测试): 修改测试详情和监控页面的显示图表

This commit is contained in:
Captain.B 2021-06-22 18:26:35 +08:00 committed by 刘瑞斌
parent 221b45f9ab
commit dc0bd51ab9
2 changed files with 3 additions and 4 deletions

View File

@ -1,7 +1,7 @@
<template>
<div v-loading="result.loading">
<el-tabs @tab-click="clickTabs">
<el-tab-pane v-for="(item) in instances" :key="item" :label="item" class="logging-content">
<el-tab-pane v-for="(item, index) in instances" :key="item + index" :label="item" class="logging-content">
<el-row>
<el-col :span="6">
<el-collapse v-model="activeNames" class="monitor-detail">

View File

@ -217,7 +217,6 @@ export default {
},
methods: {
resetDefault() {
this.seriesData = [];
this.checkList['ActiveThreadsChart'] = ['ALL'];
this.checkList['TransactionsChart'] = ['ALL'];
@ -422,8 +421,8 @@ export default {
if (this.init) {
return;
}
if (status === "Completed" || status === "Running") {
this.initTableData();
if (status === "Running") {
this.getTotalChart();
}
},
deep: true