fix(性能测试): 查看测试报告报错修改

This commit is contained in:
CaptainB 2021-11-12 18:26:39 +08:00 committed by 刘瑞斌
parent 39a8803d17
commit 8c393684e8
2 changed files with 35 additions and 35 deletions

View File

@ -93,11 +93,11 @@ export default {
if (this.planReportTemplate) { if (this.planReportTemplate) {
// this.handleGetLogResourceDetail(this.planReportTemplate.logResourceDetail, resourceId); // this.handleGetLogResourceDetail(this.planReportTemplate.logResourceDetail, resourceId);
} else if (this.isShare) { } else if (this.isShare) {
getSharePerformanceReportLogResourceDetail(this.shareId, this.id, resourceId, this.page[resourceId], data => { getSharePerformanceReportLogResourceDetail(this.shareId, this.id, resourceId, this.page[resourceId] || 1, data => {
this.handleGetLogResourceDetail(data, resourceId); this.handleGetLogResourceDetail(data, resourceId);
}); });
} else { } else {
getPerformanceReportLogResourceDetail(this.id, resourceId, this.page[resourceId], data => { getPerformanceReportLogResourceDetail(this.id, resourceId, this.page[resourceId] || 1, data => {
this.handleGetLogResourceDetail(data, resourceId); this.handleGetLogResourceDetail(data, resourceId);
}); });
} }

View File

@ -226,7 +226,7 @@ export default {
}, },
handleChecked(id) { handleChecked(id) {
let curr = this.instances.filter(instance => id === instance.ip + ":" + instance.port)[0]; let curr = this.instances.filter(instance => id === instance.ip + ":" + instance.port)[0];
if (curr.monitorConfig) { if (curr && curr.monitorConfig) {
this.checkList = []; this.checkList = [];
this.checkOptions = curr.monitorConfig.filter(mc => mc.value && mc.name) this.checkOptions = curr.monitorConfig.filter(mc => mc.value && mc.name)
.map(mc => { .map(mc => {