From b14abedb88993ce00cf04647436f9981b84c7050 Mon Sep 17 00:00:00 2001 From: song-tianyang Date: Thu, 10 Jun 2021 16:18:48 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E8=B7=A8=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=BC=95=E7=94=A8=E5=9C=BA=E6=99=AF=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E5=90=8C=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E5=BC=95=E8=B5=B7?= =?UTF-8?q?=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 场景中存在引用无权限的项目,展开运行环境直接报错。现在改为没有权限的用户环境展开时只能进行选择,不能进行配置 --- .../track/case/components/BatchEdit.vue | 2 + .../components/track/common/EnvPopover.vue | 7 ++++ .../components/track/common/EnvSelect.vue | 38 +++++++++++++++++-- .../comonents/api/RelevanceScenarioList.vue | 3 +- 4 files changed, 46 insertions(+), 4 deletions(-) diff --git a/frontend/src/business/components/track/case/components/BatchEdit.vue b/frontend/src/business/components/track/case/components/BatchEdit.vue index 12bfb34c06..0709023625 100644 --- a/frontend/src/business/components/track/case/components/BatchEdit.vue +++ b/frontend/src/business/components/track/case/components/BatchEdit.vue @@ -17,6 +17,7 @@ @@ -61,6 +62,7 @@ data() { return { dialogVisible: false, + showConfigButtonWithOutPermission:false, form: {}, size: 0, rules: { diff --git a/frontend/src/business/components/track/common/EnvPopover.vue b/frontend/src/business/components/track/common/EnvPopover.vue index 1e89bfa545..3b826df056 100644 --- a/frontend/src/business/components/track/common/EnvPopover.vue +++ b/frontend/src/business/components/track/common/EnvPopover.vue @@ -7,6 +7,7 @@ @show="showPopover" trigger="click"> {{ $t('api_test.definition.request.run_env') }} @@ -25,6 +26,12 @@ export default { envMap: Map, projectIds: Set, projectList: Array, + showConfigButtonWithOutPermission:{ + type: Boolean, + default() { + return true; + } + }, isReadOnly: { type: Boolean, default() { diff --git a/frontend/src/business/components/track/common/EnvSelect.vue b/frontend/src/business/components/track/common/EnvSelect.vue index d1172e0894..a8c7ba5d7e 100644 --- a/frontend/src/business/components/track/common/EnvSelect.vue +++ b/frontend/src/business/components/track/common/EnvSelect.vue @@ -5,11 +5,11 @@ - + {{ $t('api_test.environment.environment_config') }} @@ -92,6 +92,7 @@ data() { return { result: {}, + showConfigButtonWithOutPermission:false, condition: {}, currentScenario: {}, schedule: {},