fix(UI自动化): 关联UI用例提示问题

--bug=1021701 --user=张大海 【测试跟踪】测试计划-关联UI用例-未选择用例和选择用例未选择环境提示信息不符 https://www.tapd.cn/55049933/s/1324194
This commit is contained in:
zhangdahai112 2023-01-09 11:05:31 +08:00 committed by zhangdahai112
parent dc23cee80a
commit c396a50c64
2 changed files with 8 additions and 4 deletions

View File

@ -281,6 +281,9 @@ export default {
}); });
}); });
}, },
closeEnv(){
this.$refs.envPopover.close();
}
} }
}; };
</script> </script>

View File

@ -150,10 +150,6 @@ export default {
let map = this.$refs.apiScenarioList.map; let map = this.$refs.apiScenarioList.map;
let envGroupId = this.$refs.apiScenarioList.envGroupId; let envGroupId = this.$refs.apiScenarioList.envGroupId;
if (!envMap || envMap.size == 0) {
this.$warning(this.$t('api_test.environment.select_environment'));
return;
}
selectRows.forEach(row => { selectRows.forEach(row => {
selectIds.push(row.id); selectIds.push(row.id);
}) })
@ -162,6 +158,11 @@ export default {
return; return;
} }
if (!envMap || envMap.size == 0) {
this.$warning(this.$t('api_test.environment.select_environment'));
return;
}
let param = {}; let param = {};
param.planId = this.planId; param.planId = this.planId;
param.mapping = strMapToObj(map); param.mapping = strMapToObj(map);