fix(性能测试): 查看测试报告报错修改
This commit is contained in:
parent
39a8803d17
commit
8c393684e8
|
@ -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);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,9 +6,9 @@
|
||||||
<el-select v-model="currentInstance" placeholder="" size="small" style="width: 100%"
|
<el-select v-model="currentInstance" placeholder="" size="small" style="width: 100%"
|
||||||
@change="getResource(currentInstance)">
|
@change="getResource(currentInstance)">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in instances"
|
v-for="item in instances"
|
||||||
:key="item.ip+item.port"
|
:key="item.ip+item.port"
|
||||||
:value="item.ip+':'+item.port">
|
:value="item.ip+':'+item.port">
|
||||||
{{ item.ip }} {{ item.name }}
|
{{ item.ip }} {{ item.name }}
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
|
@ -36,47 +36,47 @@
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :offset="2" :span="20">
|
<el-col :offset="2" :span="20">
|
||||||
<el-table
|
<el-table
|
||||||
:data="tableData"
|
:data="tableData"
|
||||||
stripe
|
stripe
|
||||||
border
|
border
|
||||||
style="width: 100%">
|
style="width: 100%">
|
||||||
<el-table-column label="Label" align="center">
|
<el-table-column label="Label" align="center">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="label"
|
prop="label"
|
||||||
label="Label"
|
label="Label"
|
||||||
sortable>
|
sortable>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="Aggregate" align="center">
|
<el-table-column label="Aggregate" align="center">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="avg"
|
prop="avg"
|
||||||
label="Avg."
|
label="Avg."
|
||||||
width="100"
|
width="100"
|
||||||
sortable
|
sortable
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="min"
|
prop="min"
|
||||||
label="Min."
|
label="Min."
|
||||||
width="100"
|
width="100"
|
||||||
sortable
|
sortable
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="max"
|
prop="max"
|
||||||
label="Max."
|
label="Max."
|
||||||
width="100"
|
width="100"
|
||||||
sortable
|
sortable
|
||||||
/>
|
/>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="Range" align="center">
|
<el-table-column label="Range" align="center">
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="startTime"
|
prop="startTime"
|
||||||
label="Start"
|
label="Start"
|
||||||
width="160"
|
width="160"
|
||||||
/>
|
/>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
prop="endTime"
|
prop="endTime"
|
||||||
label="End"
|
label="End"
|
||||||
width="160"
|
width="160"
|
||||||
/>
|
/>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
</el-table>
|
</el-table>
|
||||||
|
@ -226,13 +226,13 @@ 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 => {
|
||||||
this.checkList.push(mc.name);
|
this.checkList.push(mc.name);
|
||||||
return {key: mc.name, label: mc.name,};
|
return {key: mc.name, label: mc.name,};
|
||||||
});
|
});
|
||||||
if (this.checkList.length === 0) {
|
if (this.checkList.length === 0) {
|
||||||
this.checkList = checkList;
|
this.checkList = checkList;
|
||||||
this.checkOptions = checkOptions;
|
this.checkOptions = checkOptions;
|
||||||
|
|
Loading…
Reference in New Issue