fix(项目设置): 修复资源池配额限制问题

--bug=1026267 --user=赵勇 【项目设置】应用管理-接口测试-接口执行资源池显示错误 https://www.tapd.cn/55049933/s/1372534

Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
fit2-zhao 2023-05-17 19:07:18 +08:00 committed by fit2-zhao
parent f44b4dca25
commit 1ec400068d
2 changed files with 4 additions and 8 deletions

View File

@ -365,9 +365,6 @@ public class MsHashTreeService {
public void caseFormatting(JSONObject element, List<String> caseIds, ParameterConfig msParameter) {
List<ApiTestCaseInfo> caseInfos = apiTestCaseService.selectByCaseIds(caseIds);
if(CollectionUtils.isEmpty(caseInfos)){
return;
}
Map<String, ApiTestCaseInfo> caseMap = caseInfos.stream()
.collect(Collectors.toMap(ApiTestCase::getId, a -> a, (k1, k2) -> k1));
if (element != null && ElementConstants.REQUESTS.contains(element.optString(TYPE))) {

View File

@ -695,7 +695,6 @@ export default {
},
created() {
this.init();
this.getBase();
this.selectUserInProject();
this.getResourcePools();
this.isXpack = !!hasLicense();
@ -714,11 +713,11 @@ export default {
if (item.id === this.config.resourcePoolId) {
isDelPool = false;
}
if (isDelPool) {
this.config.resourcePoolId = undefined;
this.config.poolEnable = false;
}
});
if (isDelPool) {
this.config.resourcePoolId = undefined;
this.config.poolEnable = false;
}
});
},
runModeChange(value, other) {