From 78d843157bc15b44d1cda2e4e163517a2f10ef4b Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 4 Feb 2021 17:42:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2=E6=8A=A5=E5=91=8A=E7=9A=84?= =?UTF-8?q?=E6=97=B6=E5=80=99=E5=8E=8B=E5=8A=9B=E9=85=8D=E7=BD=AE=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=8F=98=E5=8C=96=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/PerformancePressureConfig.vue | 93 ++++++++++--------- 1 file changed, 47 insertions(+), 46 deletions(-) diff --git a/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue index ee34766b45..234783b9d2 100644 --- a/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/report/components/PerformancePressureConfig.vue @@ -14,11 +14,11 @@ + :disabled="true" + :placeholder="$t('load_test.input_thread_num')" + v-model="threadGroup.threadNumber" + :min="1" + size="mini"/>
@@ -31,72 +31,72 @@
+ :disabled="true" + v-model="threadGroup.duration" + :min="1" + @change="calculateChart(threadGroup)" + size="mini"/>
  + :disabled="true " + v-model="threadGroup.rpsLimit" + @change="calculateChart(threadGroup)" + :min="1" + size="mini"/>
+ :disabled="true" + :min="1" + :max="threadGroup.duration" + v-model="threadGroup.rampUpTime" + @change="calculateChart(threadGroup)" + size="mini"/> + :disabled="true" + :min="1" + :max="Math.min(threadGroup.threadNumber, threadGroup.rampUpTime)" + v-model="threadGroup.step" + @change="calculateChart(threadGroup)" + size="mini"/>
+ :disabled="true" + v-model="threadGroup.iterateNum" + :min="1" + @change="calculateChart(threadGroup)" + size="mini"/>
  + :disabled="true || !threadGroup.rpsLimitEnable" + v-model="threadGroup.rpsLimit" + @change="calculateChart(threadGroup)" + :min="1" + size="mini"/>
+ :disabled="true" + :min="1" + v-model="threadGroup.iterateRampUp" + @change="calculateChart(threadGroup)" + size="mini"/>
@@ -129,11 +129,11 @@ const ITERATE_RAMP_UP = "iterateRampUpTime"; const hexToRgba = function (hex, opacity) { return 'rgba(' + parseInt('0x' + hex.slice(1, 3)) + ',' + parseInt('0x' + hex.slice(3, 5)) + ',' - + parseInt('0x' + hex.slice(5, 7)) + ',' + opacity + ')'; + + parseInt('0x' + hex.slice(5, 7)) + ',' + opacity + ')'; } const hexToRgb = function (hex) { return 'rgb(' + parseInt('0x' + hex.slice(1, 3)) + ',' + parseInt('0x' + hex.slice(3, 5)) - + ',' + parseInt('0x' + hex.slice(5, 7)) + ')'; + + ',' + parseInt('0x' + hex.slice(5, 7)) + ')'; } export default { @@ -469,11 +469,12 @@ export default { }, }, watch: { - 'report.testId': { + report: { handler() { this.getJmxContent(); }, - } + deep: true + }, } }