From ad689949aedef48cbce8c1625843efb010228df2 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Tue, 4 Apr 2023 17:19:02 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E9=A1=B9=E7=9B=AE=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=8E=AF=E5=A2=83=E7=9B=B8=E5=85=B3=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1025127 --user=王孝刚 【项目设置】项目环境-创建环境页面显示错误 https://www.tapd.cn/55049933/s/1359460 --- .../automation/scenario/variable/VariableList.vue | 13 +++++++------ .../frontend/src/components/MsDialogHeader.vue | 1 + .../environment/commons/ApiScenarioVariables.vue | 2 +- .../environment/commons/variable/VariableImport.vue | 4 ++-- 4 files changed, 11 insertions(+), 9 deletions(-) diff --git a/api-test/frontend/src/business/automation/scenario/variable/VariableList.vue b/api-test/frontend/src/business/automation/scenario/variable/VariableList.vue index f9d176e7b2..8f52f08c7e 100644 --- a/api-test/frontend/src/business/automation/scenario/variable/VariableList.vue +++ b/api-test/frontend/src/business/automation/scenario/variable/VariableList.vue @@ -148,7 +148,7 @@ {{ $t('commons.confirm') }} {{ $t('commons.cancel') }} + >{{ $t('commons.cancel') }} {{ $t('commons.delete') }} @@ -167,7 +167,7 @@ placement="top-start" slot="label"> {{ $t('api_test.request.headers') }} + >{{ $t('api_test.request.headers') }}
{{ headers.length - 1 }} @@ -468,10 +468,10 @@ export default { if (messages !== '') { this.$alert( this.$t('api_test.scenario.variables') + - '【' + - messages.substr(0, messages.length - 1) + - '】' + - this.$t('load_test.param_is_duplicate') + '【' + + messages.substr(0, messages.length - 1) + + '】' + + this.$t('load_test.param_is_duplicate') ); } }); @@ -485,6 +485,7 @@ export default { this.variables.forEach((item) => { item.hidden = undefined; if (item.name && item.name != '') { + item.showMore = false; saveVariables.push(item); } }); diff --git a/framework/sdk-parent/frontend/src/components/MsDialogHeader.vue b/framework/sdk-parent/frontend/src/components/MsDialogHeader.vue index 839dd1dedc..59518d0787 100644 --- a/framework/sdk-parent/frontend/src/components/MsDialogHeader.vue +++ b/framework/sdk-parent/frontend/src/components/MsDialogHeader.vue @@ -85,6 +85,7 @@ export default { this.icon= ['fa', 'expand-alt']; } this.$emit("update:isFullScreen",bool); + this.$emit("fullScreen"); }, }, }; diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue index edc4e796d7..b4c205de28 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue @@ -90,7 +90,7 @@ v-if="!scope.row.scope || scope.row.scope == 'api'" :placeholder="$t('commons.please_select')" size="mini" - @change="changeType(scope.row)"> + @change="changeType(scope.row)"> diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/variable/VariableImport.vue b/framework/sdk-parent/frontend/src/components/environment/commons/variable/VariableImport.vue index 79962290f7..2cafb0751a 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/variable/VariableImport.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/variable/VariableImport.vue @@ -1,10 +1,10 @@