refactor(性能测试): 压力配置时间设置修改

This commit is contained in:
Captain.B 2021-10-18 10:28:22 +08:00 committed by 刘瑞斌
parent 98de9231f6
commit 9e773d20be
1 changed files with 6 additions and 3 deletions

View File

@ -98,7 +98,7 @@
</el-form-item> </el-form-item>
<br> <br>
<div v-if="threadGroup.threadType === 'DURATION'"> <div v-if="threadGroup.threadType === 'DURATION'">
<el-form-item :label="$t('schedule.cron.hours')"> <el-form-item>
<el-input-number controls-position="right" <el-input-number controls-position="right"
:disabled="isReadOnly" :disabled="isReadOnly"
v-model="threadGroup.durationHours" v-model="threadGroup.durationHours"
@ -107,7 +107,8 @@
@change="calculateTotalChart()" @change="calculateTotalChart()"
size="mini"/> size="mini"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('schedule.cron.minutes')"> <el-form-item :label="$t('schedule.cron.hours')"/>
<el-form-item>
<el-input-number controls-position="right" <el-input-number controls-position="right"
:disabled="isReadOnly" :disabled="isReadOnly"
v-model="threadGroup.durationMinutes" v-model="threadGroup.durationMinutes"
@ -116,7 +117,8 @@
@change="calculateTotalChart()" @change="calculateTotalChart()"
size="mini"/> size="mini"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('schedule.cron.seconds')"> <el-form-item :label="$t('schedule.cron.minutes')"/>
<el-form-item>
<el-input-number controls-position="right" <el-input-number controls-position="right"
:disabled="isReadOnly" :disabled="isReadOnly"
v-model="threadGroup.durationSeconds" v-model="threadGroup.durationSeconds"
@ -125,6 +127,7 @@
@change="calculateTotalChart()" @change="calculateTotalChart()"
size="mini"/> size="mini"/>
</el-form-item> </el-form-item>
<el-form-item :label="$t('schedule.cron.seconds')"/>
<br> <br>
<el-form-item :label="$t('load_test.rps_limit')"> <el-form-item :label="$t('load_test.rps_limit')">
<el-switch v-model="threadGroup.rpsLimitEnable" @change="calculateTotalChart()"/> <el-switch v-model="threadGroup.rpsLimitEnable" @change="calculateTotalChart()"/>