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

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

View File

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