fix(性能测试): 修复查询已结束的报告时日志下拉框没有备选资源池的问题

--bug=1008070 --user=刘瑞斌 【性能测试】-压力配置选择固定节点(local资源池有三个node)-执行后,日志仅显示一个node的日志+监控详情中一个节点监控数据没有 https://www.tapd.cn/55049933/s/1069993
This commit is contained in:
CaptainB 2021-11-18 17:28:09 +08:00 committed by 刘瑞斌
parent c3ad2c1c9d
commit c822aff9c2
1 changed files with 0 additions and 10 deletions

View File

@ -47,7 +47,6 @@ export default {
page: {},
pageCount: 5,
loading: false,
init: false,
logStatus: {},
currentInstance: ''
};
@ -69,9 +68,6 @@ export default {
},
handleGetLogResource(data) {
this.resource = data;
if (!this.resource || this.resource.length === 0) {
this.init = false;
}
if (!this.currentInstance) {
this.currentInstance = this.resource[0]?.resourceId;
}
@ -151,7 +147,6 @@ export default {
'$route'(to) {
if (to.name === "perReportView") {
this.id = to.path.split('/')[4];
this.init = false;
this.getResource();
}
},
@ -160,15 +155,10 @@ export default {
if (!val.status || !val.id) {
return;
}
if (this.init) {
return;
}
let status = val.status;
this.id = val.id;
if (status === "Running") {
this.getResource();
} else {
this.resource = [];
}
},
deep: true