From 78d843157bc15b44d1cda2e4e163517a2f10ef4b Mon Sep 17 00:00:00 2001 From: "Captain.B" Date: Thu, 4 Feb 2021 17:42:32 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2=E6=8A=A5=E5=91=8A?= =?UTF-8?q?=E7=9A=84=E6=97=B6=E5=80=99=E5=8E=8B=E5=8A=9B=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E6=B2=A1=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 + }, } } From 6bad2e75dfcaecc08e8906db0bc03e59b95560db Mon Sep 17 00:00:00 2001 From: chenjianxing Date: Thu, 4 Feb 2021 17:43:13 +0800 Subject: [PATCH 2/2] =?UTF-8?q?fix:=20=E6=8B=96=E6=8B=BD=E8=8A=82=E7=82=B9?= =?UTF-8?q?=E5=88=B0=E6=A0=B9=E8=8A=82=E7=82=B9=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../automation/scenario/ApiScenarioModule.vue | 35 +++++++++-------- .../components/module/ApiModule.vue | 39 ++++++++++--------- .../components/track/common/NodeTree.vue | 4 ++ .../track/common/TestCaseNodeTree.vue | 29 +++++++------- 4 files changed, 57 insertions(+), 50 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/ApiScenarioModule.vue b/frontend/src/business/components/api/automation/scenario/ApiScenarioModule.vue index 0e1401ebc6..62d0ed0ff8 100644 --- a/frontend/src/business/components/api/automation/scenario/ApiScenarioModule.vue +++ b/frontend/src/business/components/api/automation/scenario/ApiScenarioModule.vue @@ -11,6 +11,7 @@ @edit="edit" @drag="drag" @remove="remove" + @refresh="list" @nodeSelectEvent="nodeChange" ref="nodeTree"> @@ -34,24 +35,24 @@