fix(测试跟踪): 测试计划只关联UI用例添加定时任务不需要校验资源池

--bug=1029935 --user=宋昌昌 【测试跟踪】测试计划只关联UI用例-应用管理接口执行资源池按钮关闭-执行测试计划提示选择资源池 https://www.tapd.cn/55049933/s/1413401
This commit is contained in:
song-cc-rock 2023-09-06 16:03:04 +08:00 committed by 刘瑞斌
parent 930476f914
commit cebeb1003a
1 changed files with 5 additions and 12 deletions

View File

@ -489,12 +489,9 @@ export default {
});
},
saveCron() {
if (
this.runConfig.resourcePoolId == null
) {
this.$warning(
this.$t("workspace.env_group.please_select_run_within_resource_pool")
);
if ((this.haveOtherExecCase && this.testType === 'API') && this.runConfig.resourcePoolId == null) {
// Cron,
this.$warning(this.$t("workspace.env_group.please_select_run_within_resource_pool"));
return;
}
this.$refs["from"].validate((valid) => {
@ -522,12 +519,8 @@ export default {
if (!param.workspaceId) {
param.workspaceId = getCurrentWorkspaceId();
}
if (
this.runConfig.resourcePoolId == null
) {
this.$warning(
this.$t("workspace.env_group.please_select_run_within_resource_pool")
);
if ((this.haveOtherExecCase && this.testType === 'API') && this.runConfig.resourcePoolId == null) {
this.$warning(this.$t("workspace.env_group.please_select_run_within_resource_pool"));
return;
}
param.config = JSON.stringify(this.runConfig);