fix(性能测试): --bug=1007382 --user=刘瑞斌 【性能测试】执行提示参数不能为空,但是都填写了 https://www.tapd.cn/55049933/s/1060870

This commit is contained in:
CaptainB 2021-10-28 14:22:03 +08:00 committed by 刘瑞斌
parent 7fc0ce913b
commit b454e625f9
1 changed files with 17 additions and 15 deletions

View File

@ -223,7 +223,6 @@
</template> </template>
<script> <script>
import echarts from "echarts";
import MsChart from "@/business/components/common/chart/MsChart"; import MsChart from "@/business/components/common/chart/MsChart";
import {findThreadGroup} from "@/business/components/performance/test/model/ThreadGroup"; import {findThreadGroup} from "@/business/components/performance/test/model/ThreadGroup";
import {hasPermission} from "@/common/js/utils"; import {hasPermission} from "@/common/js/utils";
@ -594,6 +593,9 @@ export default {
} }
for (let i = 0; i < this.threadGroups.length; i++) { for (let i = 0; i < this.threadGroups.length; i++) {
let tg = this.threadGroups[i]; let tg = this.threadGroups[i];
if (tg.enabled === 'false' ) {
continue;
}
tg.durationHours = tg.durationHours || 0; tg.durationHours = tg.durationHours || 0;
tg.durationMinutes = tg.durationMinutes || 0; tg.durationMinutes = tg.durationMinutes || 0;
tg.durationSeconds = tg.durationSeconds || 0; tg.durationSeconds = tg.durationSeconds || 0;