fix(性能测试): 修复查询已结束的报告时日志下拉框没有备选资源池的问题
--bug=1008070 --user=刘瑞斌 【性能测试】-压力配置选择固定节点(local资源池有三个node)-执行后,日志仅显示一个node的日志+监控详情中一个节点监控数据没有 https://www.tapd.cn/55049933/s/1069993
This commit is contained in:
parent
c3ad2c1c9d
commit
c822aff9c2
|
@ -47,7 +47,6 @@ export default {
|
||||||
page: {},
|
page: {},
|
||||||
pageCount: 5,
|
pageCount: 5,
|
||||||
loading: false,
|
loading: false,
|
||||||
init: false,
|
|
||||||
logStatus: {},
|
logStatus: {},
|
||||||
currentInstance: ''
|
currentInstance: ''
|
||||||
};
|
};
|
||||||
|
@ -69,9 +68,6 @@ export default {
|
||||||
},
|
},
|
||||||
handleGetLogResource(data) {
|
handleGetLogResource(data) {
|
||||||
this.resource = data;
|
this.resource = data;
|
||||||
if (!this.resource || this.resource.length === 0) {
|
|
||||||
this.init = false;
|
|
||||||
}
|
|
||||||
if (!this.currentInstance) {
|
if (!this.currentInstance) {
|
||||||
this.currentInstance = this.resource[0]?.resourceId;
|
this.currentInstance = this.resource[0]?.resourceId;
|
||||||
}
|
}
|
||||||
|
@ -151,7 +147,6 @@ export default {
|
||||||
'$route'(to) {
|
'$route'(to) {
|
||||||
if (to.name === "perReportView") {
|
if (to.name === "perReportView") {
|
||||||
this.id = to.path.split('/')[4];
|
this.id = to.path.split('/')[4];
|
||||||
this.init = false;
|
|
||||||
this.getResource();
|
this.getResource();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -160,15 +155,10 @@ export default {
|
||||||
if (!val.status || !val.id) {
|
if (!val.status || !val.id) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (this.init) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let status = val.status;
|
let status = val.status;
|
||||||
this.id = val.id;
|
this.id = val.id;
|
||||||
if (status === "Running") {
|
if (status === "Running") {
|
||||||
this.getResource();
|
this.getResource();
|
||||||
} else {
|
|
||||||
this.resource = [];
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
deep: true
|
deep: true
|
||||||
|
|
Loading…
Reference in New Issue