From f031dddf4c5eefb3ccf0e12664b2955b242cd1ea Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Tue, 18 May 2021 14:05:57 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8E=8B=E5=8A=9B=E9=A2=84=E4=BC=B0=E5=9B=BE=E6=97=B6=E6=8E=92?= =?UTF-8?q?=E9=99=A4=E6=8C=89=E7=85=A7=E8=BF=AD=E4=BB=A3=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/PerformancePressureConfig.vue | 80 ++++++++++--------- 1 file changed, 41 insertions(+), 39 deletions(-) diff --git a/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue index 5b6475e955..57db4e43f3 100644 --- a/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue @@ -48,11 +48,11 @@
+ :disabled="true" + v-model="threadGroup.duration" + :min="1" + @change="calculateTotalChart()" + size="mini"/> @@ -66,31 +66,31 @@   + :disabled="true" + v-model="threadGroup.rpsLimit" + @change="calculateTotalChart()" + :min="1" + size="mini"/>
+ :disabled="true" + :min="1" + :max="threadGroup.duration" + v-model="threadGroup.rampUpTime" + @change="calculateTotalChart()" + size="mini"/> + :disabled="true" + :min="1" + :max="Math.min(threadGroup.threadNumber, threadGroup.rampUpTime)" + v-model="threadGroup.step" + @change="calculateTotalChart()" + size="mini"/>
@@ -110,31 +110,31 @@
+ :disabled="true" + v-model="threadGroup.iterateNum" + :min="1" + @change="calculateTotalChart()" + size="mini"/>
  + :disabled="true || !threadGroup.rpsLimitEnable" + v-model="threadGroup.rpsLimit" + @change="calculateTotalChart()" + :min="1" + size="mini"/>
+ :disabled="true" + :min="1" + v-model="threadGroup.iterateRampUp" + @change="calculateTotalChart()" + size="mini"/>
@@ -256,7 +256,7 @@ export default { break; } }); - this.calculateTotalChart(this.threadGroups[i]); + this.calculateTotalChart(); } }, getLoadConfig() { @@ -340,7 +340,9 @@ export default { for (let i = 0; i < handler.threadGroups.length; i++) { - if (handler.threadGroups[i].enabled === 'false' || handler.threadGroups[i].deleted === 'true') { + if (handler.threadGroups[i].enabled === 'false' || + handler.threadGroups[i].deleted === 'true' || + handler.threadGroups[i].threadType === 'ITERATION') { continue; } let seriesData = {