fix(性能测试): 禁用线程组后刷新压力图

This commit is contained in:
Captain.B 2021-06-10 15:58:49 +08:00 committed by 刘瑞斌
parent 7972994500
commit 71d41b6ba3
1 changed files with 6 additions and 1 deletions

View File

@ -33,7 +33,7 @@
</el-row>
<el-tabs class="testplan-config" v-model="active">
<el-tabs class="testplan-config" v-model="active" @tab-click="clickTab">
<el-tab-pane :label="$t('load_test.basic_config')" class="advanced-config">
<performance-basic-config :is-read-only="isReadOnly" :test="test" ref="basicConfig"
@tgTypeChange="tgTypeChange"
@ -337,6 +337,11 @@ export default {
tgTypeChange(threadGroup) {
let handler = this.$refs.pressureConfig;
handler.calculateTotalChart();
},
clickTab(tab) {
if (tab.index === '1') {
this.$refs.pressureConfig.calculateTotalChart();
}
}
}
};