From e25f6164afb559eda673c91f29f409cf5fbbc6db Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 24 Aug 2022 17:08:23 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=8F=98=E9=87=8F=E7=9B=B8?= =?UTF-8?q?=E5=85=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1016095 --user=王孝刚 【系统设置】工作空间 - 环境管理 - 创建环境页面,通用配置处,点击"高级设置"的相关问题 https://www.tapd.cn/55049933/s/1233087 --- .../api/automation/scenario/variable/EditConstant.vue | 10 ++++++---- .../test/components/environment/ApiVariableAdvance.vue | 4 ++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/variable/EditConstant.vue b/frontend/src/business/components/api/automation/scenario/variable/EditConstant.vue index be5c780a28..19e5b61a76 100644 --- a/frontend/src/business/components/api/automation/scenario/variable/EditConstant.vue +++ b/frontend/src/business/components/api/automation/scenario/variable/EditConstant.vue @@ -1,6 +1,7 @@ @@ -50,7 +51,8 @@ name: [ {required: true, message: this.$t('test_track.case.input_name'), trigger: 'blur'}, ], - } + }, + isActive: true } }, computed:{ @@ -60,8 +62,8 @@ }, methods: { advanced(item) { - this.$refs.variableAdvance.open(); this.editData.value = item; + this.$refs.variableAdvance.open() }, createFilter(queryString) { return (variable) => { diff --git a/frontend/src/business/components/api/test/components/environment/ApiVariableAdvance.vue b/frontend/src/business/components/api/test/components/environment/ApiVariableAdvance.vue index a84a840e95..144af92c53 100644 --- a/frontend/src/business/components/api/test/components/environment/ApiVariableAdvance.vue +++ b/frontend/src/business/components/api/test/components/environment/ApiVariableAdvance.vue @@ -250,7 +250,7 @@ export default { } }, addFunc() { - if (this.itemValue.indexOf('@') == -1) { + if (this.currentTab === 0 && this.itemValue.indexOf('@') == -1) { this.itemValue = '@' + this.itemValue; } else { this.itemValue = this.itemValue; @@ -277,7 +277,7 @@ export default { this.mockVariableFuncs.push({name: '', params: []}); }, saveAdvanced() { - if (this.itemValue && this.itemValue.indexOf('@') == -1) { + if (this.currentTab === 0 && this.itemValue && this.itemValue.indexOf('@') == -1) { this.currentItem.value = '@' + this.itemValue; } else { this.currentItem.value = this.itemValue;