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:
parent
e28b86a17e
commit
9cdba005b0
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue