From c396a50c64d88fd43b40f7a78aa265f4e7d3e940 Mon Sep 17 00:00:00 2001 From: zhangdahai112 Date: Mon, 9 Jan 2023 11:05:31 +0800 Subject: [PATCH] =?UTF-8?q?fix(UI=E8=87=AA=E5=8A=A8=E5=8C=96):=20=E5=85=B3?= =?UTF-8?q?=E8=81=94UI=E7=94=A8=E4=BE=8B=E6=8F=90=E7=A4=BA=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=1021701 --user=张大海 【测试跟踪】测试计划-关联UI用例-未选择用例和选择用例未选择环境提示信息不符 https://www.tapd.cn/55049933/s/1324194 --- .../plan/view/comonents/ui/RelevanceUiScenarioList.vue | 3 +++ .../view/comonents/ui/TestCaseUiScenarioRelevance.vue | 9 +++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue b/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue index 0e6c09f61a..4004303b15 100644 --- a/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue +++ b/test-track/frontend/src/business/plan/view/comonents/ui/RelevanceUiScenarioList.vue @@ -281,6 +281,9 @@ export default { }); }); }, + closeEnv(){ + this.$refs.envPopover.close(); + } } }; diff --git a/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue b/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue index 603da17b79..b8ff701d72 100644 --- a/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue +++ b/test-track/frontend/src/business/plan/view/comonents/ui/TestCaseUiScenarioRelevance.vue @@ -150,10 +150,6 @@ export default { let map = this.$refs.apiScenarioList.map; let envGroupId = this.$refs.apiScenarioList.envGroupId; - if (!envMap || envMap.size == 0) { - this.$warning(this.$t('api_test.environment.select_environment')); - return; - } selectRows.forEach(row => { selectIds.push(row.id); }) @@ -162,6 +158,11 @@ export default { return; } + if (!envMap || envMap.size == 0) { + this.$warning(this.$t('api_test.environment.select_environment')); + return; + } + let param = {}; param.planId = this.planId; param.mapping = strMapToObj(map);