fix(性能测试): 查看测试报告报错修改
This commit is contained in:
parent
39a8803d17
commit
8c393684e8
|
@ -93,11 +93,11 @@ export default {
|
|||
if (this.planReportTemplate) {
|
||||
// this.handleGetLogResourceDetail(this.planReportTemplate.logResourceDetail, resourceId);
|
||||
} 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);
|
||||
});
|
||||
} else {
|
||||
getPerformanceReportLogResourceDetail(this.id, resourceId, this.page[resourceId], data => {
|
||||
getPerformanceReportLogResourceDetail(this.id, resourceId, this.page[resourceId] || 1, data => {
|
||||
this.handleGetLogResourceDetail(data, resourceId);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -226,7 +226,7 @@ export default {
|
|||
},
|
||||
handleChecked(id) {
|
||||
let curr = this.instances.filter(instance => id === instance.ip + ":" + instance.port)[0];
|
||||
if (curr.monitorConfig) {
|
||||
if (curr && curr.monitorConfig) {
|
||||
this.checkList = [];
|
||||
this.checkOptions = curr.monitorConfig.filter(mc => mc.value && mc.name)
|
||||
.map(mc => {
|
||||
|
|
Loading…
Reference in New Issue