mirror of
https://gitee.com/fit2cloud-feizhiyun/MeterSphere.git
synced 2024-12-05 13:38:58 +08:00
fix(测试跟踪): 系统配置的默认资源池不可用时,执行测试计划弹窗中资源池的下拉框设置为空
--bug=1026439 --user=宋天阳 【测试跟踪】测试计划之前保存的资源池被禁用后会显示成ID https://www.tapd.cn/55049933/s/1374332
This commit is contained in:
parent
b9844c40c1
commit
037d23b8e9
@ -304,6 +304,7 @@ export default {
|
||||
getProjectApplication() {
|
||||
getProjectConfig(getCurrentProjectID(), "").then((res) => {
|
||||
let hasPool = false;
|
||||
//判断之前配置的资源池是否在可用资源池中
|
||||
this.resourcePools.forEach((item) => {
|
||||
if (item.id === this.runConfig.resourcePoolId) {
|
||||
hasPool = true;
|
||||
@ -311,8 +312,15 @@ export default {
|
||||
});
|
||||
if (!hasPool) {
|
||||
if (res.data && res.data.poolEnable && res.data.resourcePoolId) {
|
||||
this.runConfig.resourcePoolId = res.data.resourcePoolId;
|
||||
hasPool = true;
|
||||
//判断系统配置的默认资源池是否可用
|
||||
this.resourcePools.forEach((item) => {
|
||||
if (item.id === res.data.resourcePoolId) {
|
||||
hasPool = true;
|
||||
}
|
||||
});
|
||||
if (hasPool) {
|
||||
this.runConfig.resourcePoolId = res.data.resourcePoolId;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!hasPool) {
|
||||
|
Loading…
Reference in New Issue
Block a user