From 5f1ff0753fd3135af03f54285602b6dd0011326d Mon Sep 17 00:00:00 2001 From: shiziyuan9527 Date: Tue, 16 Jun 2020 15:29:33 +0800 Subject: [PATCH] =?UTF-8?q?=E6=80=A7=E8=83=BD=E6=B5=8B=E8=AF=95=E5=8E=8B?= =?UTF-8?q?=E5=8A=9B=E9=85=8D=E7=BD=AE=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../test/components/PerformancePressureConfig.vue | 6 ++++++ frontend/src/i18n/en-US.js | 1 + frontend/src/i18n/zh-CN.js | 1 + frontend/src/i18n/zh-TW.js | 1 + 4 files changed, 9 insertions(+) diff --git a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue index 1d17af9dec..c8d62366e6 100644 --- a/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue +++ b/frontend/src/business/components/performance/test/components/PerformancePressureConfig.vue @@ -304,6 +304,12 @@ return false; } + if (!this.threadNumber || !this.duration || !this.rampUpTime || !this.step || !this.rpsLimit) { + this.$warning(this.$t('load_test.pressure_config_params_is_empty')); + this.$emit('changeActive', '1'); + return false; + } + return true; }, convertProperty() { diff --git a/frontend/src/i18n/en-US.js b/frontend/src/i18n/en-US.js index 371a083dad..4c5b2e4305 100644 --- a/frontend/src/i18n/en-US.js +++ b/frontend/src/i18n/en-US.js @@ -268,6 +268,7 @@ export default { 'download_log_file': 'Download', 'user_name': 'Creator', 'special_characters_are_not_supported': 'Test name does not support special characters', + 'pressure_config_params_is_empty': 'Pressure configuration parameters cannot be empty!' }, api_test: { creator: "Creator", diff --git a/frontend/src/i18n/zh-CN.js b/frontend/src/i18n/zh-CN.js index eb9616bb20..019733f087 100644 --- a/frontend/src/i18n/zh-CN.js +++ b/frontend/src/i18n/zh-CN.js @@ -268,6 +268,7 @@ export default { 'pressure_prediction_chart': '压力预估图', 'user_name': '创建人', 'special_characters_are_not_supported': '测试名称不支持特殊字符', + 'pressure_config_params_is_empty': '压力配置参数不能为空!' }, api_test: { creator: "创建人", diff --git a/frontend/src/i18n/zh-TW.js b/frontend/src/i18n/zh-TW.js index eab2504f44..ffe86c83ec 100644 --- a/frontend/src/i18n/zh-TW.js +++ b/frontend/src/i18n/zh-TW.js @@ -266,6 +266,7 @@ export default { 'pressure_prediction_chart': '壓力預估圖', 'user_name': '創建人', 'special_characters_are_not_supported': '測試名稱不支持特殊字符', + 'pressure_config_params_is_empty': '壓力配置參數不能為空!' }, api_test: { title: "測試",