fix(性能测试): 压力配置中资源池无效时有时会显示uuid
--bug=1012469 --user=李玉号 【系统设置】配额列表,修改可用资源池,添加性能测试时资源池显示uuid https://www.tapd.cn/55049933/s/1145166
This commit is contained in:
parent
76abd781e2
commit
1183cddd71
|
@ -328,6 +328,7 @@ export default {
|
||||||
rpsLimitEnable: false,
|
rpsLimitEnable: false,
|
||||||
options: {},
|
options: {},
|
||||||
resourcePool: null,
|
resourcePool: null,
|
||||||
|
setPoolNull: false,
|
||||||
resourcePools: [],
|
resourcePools: [],
|
||||||
resourceNodes: [],
|
resourceNodes: [],
|
||||||
resourcePoolType: null,
|
resourcePoolType: null,
|
||||||
|
@ -371,7 +372,10 @@ export default {
|
||||||
test: {
|
test: {
|
||||||
handler(n) {
|
handler(n) {
|
||||||
if (n.testResourcePoolId) {
|
if (n.testResourcePoolId) {
|
||||||
this.resourcePool = n.testResourcePoolId;
|
// 如果已经因为资源池无效将资源池ID置空,则不再进行赋值操作
|
||||||
|
if (!this.setPoolNull) {
|
||||||
|
this.resourcePool = n.testResourcePoolId;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deep: true,
|
deep: true,
|
||||||
|
@ -407,6 +411,8 @@ export default {
|
||||||
// 如果当前的资源池无效 设置 null
|
// 如果当前的资源池无效 设置 null
|
||||||
if (response.data.filter(p => p.id === this.resourcePool).length === 0) {
|
if (response.data.filter(p => p.id === this.resourcePool).length === 0) {
|
||||||
this.resourcePool = null;
|
this.resourcePool = null;
|
||||||
|
// 标记因资源池无效而将资源池ID置为null
|
||||||
|
this.setPoolNull = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.resourcePoolChange();
|
this.resourcePoolChange();
|
||||||
|
|
Loading…
Reference in New Issue