refactor(性能测试): 设置定时任务时间隔不能小于压测时长的提示
--bug=1011623 --user=刘瑞斌 【性能测试】-定时任务执行时间3分钟一次,小于该性能测试执行时间5分钟,建议提示不能小于性能测试执行时间 https://www.tapd.cn/55049933/s/1124645
This commit is contained in:
parent
9fc331c4fb
commit
a78f8591f8
|
@ -463,8 +463,14 @@ export default {
|
|||
return true;
|
||||
},
|
||||
durationValidate(intervalTime) {
|
||||
let duration = this.$refs.pressureConfig.duration * 60 * 1000;
|
||||
if (intervalTime < duration) {
|
||||
let duration = 0;
|
||||
this.$refs.pressureConfig.threadGroups.forEach(tg => {
|
||||
let d = this.$refs.pressureConfig.getDuration(tg);
|
||||
if (duration < d) {
|
||||
duration = d;
|
||||
}
|
||||
});
|
||||
if (intervalTime < duration * 1000) {
|
||||
return {
|
||||
pass: false,
|
||||
info: this.$t('load_test.schedule_tip')
|
||||
|
|
|
@ -33,18 +33,9 @@
|
|||
<el-table-column
|
||||
prop="num"
|
||||
label="ID"
|
||||
width="100"
|
||||
show-overflow-tooltip>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="versionEnable"
|
||||
:label="$t('project.version.name')"
|
||||
:filters="versionFilters"
|
||||
column-key="versionId"
|
||||
min-width="100px"
|
||||
prop="versionId">
|
||||
width="100">
|
||||
<template v-slot:default="scope">
|
||||
<span>{{ scope.row.versionName }}</span>
|
||||
<span @click="link(scope.row)" style="cursor: pointer;">{{ scope.row.num }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
|
@ -55,6 +46,16 @@
|
|||
<span @click="link(scope.row)" style="cursor: pointer;">{{ scope.row.name }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
v-if="versionEnable"
|
||||
:label="$t('project.version.name')"
|
||||
:filters="versionFilters"
|
||||
column-key="versionId"
|
||||
prop="versionId">
|
||||
<template v-slot:default="scope">
|
||||
<span>{{ scope.row.versionName }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
prop="userName"
|
||||
sortable="custom"
|
||||
|
|
Loading…
Reference in New Issue