fix(项目管理): 修复应用设置资源池根据配额过滤反显问题

--bug=1026340 --user=赵勇 【项目设置】新建项目-系统配额资源池由node改为无限制-项目设置资源池显示为空 https://www.tapd.cn/55049933/s/1373201

Signed-off-by: fit2-zhao <yong.zhao@fit2cloud.com>
This commit is contained in:
fit2-zhao 2023-05-19 14:42:15 +08:00 committed by fit2-zhao
parent e28b86a17e
commit 9cdba005b0
1 changed files with 6 additions and 10 deletions

View File

@ -725,16 +725,12 @@ export default {
getResourcePools() {
this.result = getTestResourcePools().then((response) => {
this.resourcePools = response.data;
let isDelPool = true;
this.resourcePools.forEach((item) => {
if (item.id === this.config.resourcePoolId) {
isDelPool = false;
}
if (isDelPool) {
this.config.resourcePoolId = undefined;
this.config.poolEnable = false;
}
});
let delIndex = this.resourcePools.findIndex(item =>
item.id === this.config.resourcePoolId);
if (delIndex === -1) {
this.config.resourcePoolId = undefined;
this.config.poolEnable = false;
}
});
},
runModeChange(value, other) {