diff --git a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue index 5e9a2f4942..3f5668a6ad 100644 --- a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue @@ -65,7 +65,7 @@ :disabled="isReadOnly" v-model="threadGroup.threadNumber" @change="calculateTotalChart()" - :min="resourcePoolResourceLength" + :min="1" :max="maxThreadNumbers" size="mini"/> @@ -245,7 +245,6 @@ export default { resourcePools: [], activeNames: ["0"], threadGroups: [], - resourcePoolResourceLength: 1, maxThreadNumbers: 5000, serializeThreadGroups: false, autoStop: false, @@ -403,11 +402,6 @@ export default { if (handler.rampUpTime < handler.step) { handler.step = handler.rampUpTime; } - // 线程数不能小于资源池节点的数量 - let resourcePool = this.resourcePools.filter(v => v.id === this.resourcePool)[0]; - if (resourcePool) { - this.resourcePoolResourceLength = resourcePool.resources.length; - } let color = ['#60acfc', '#32d3eb', '#5bc49f', '#feb64d', '#ff7c7c', '#9287e7', '#ca8622', '#bda29a', '#6e7074', '#546570', '#c4ccd3']; handler.options = { color: color, @@ -528,11 +522,7 @@ export default { if (handler.rampUpTime < handler.step) { handler.step = handler.rampUpTime; } - // 线程数不能小于资源池节点的数量 - let resourcePool = this.resourcePools.filter(v => v.id === this.resourcePool)[0]; - if (resourcePool) { - this.resourcePoolResourceLength = resourcePool.resources.length; - } + handler.options = { xAxis: { type: 'category',