refactor(性能测试): 查看测试详情和监控详情时时间轴支持选择

This commit is contained in:
Captain.B 2021-06-30 16:23:05 +08:00 committed by 刘瑞斌
parent eac6b3caeb
commit b65afe97a7
2 changed files with 39 additions and 21 deletions

View File

@ -8,9 +8,11 @@
<el-collapse-item :title="$t('Monitor')" name="0">
<el-checkbox-group v-model="checkList"
@change="handleChecked(item)">
<el-checkbox :label="op.label" v-for="op in checkOptions"
:key="op.key"
:content="op.label"/>
<div v-for="op in checkOptions"
:key="op.key"
:content="op.label">
<el-checkbox :label="op.label"/>
</div>
</el-checkbox-group>
</el-collapse-item>
</el-collapse>
@ -56,21 +58,16 @@ export default {
grid: {
// right: '35%' //
},
title: {
text: 'Monitor',
left: 'center',
top: 20,
textStyle: {
color: '#99743C'
},
},
title: {},
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'cross'
},
},
legend: {},
legend: {
y: 'top'
},
xAxis: {type: 'category'},
yAxis: [{
name: 'Usage(%)',
@ -82,6 +79,17 @@ export default {
name: 'kb/s',
min: 0,
}],
dataZoom: [
{
type: 'inside',
start: 0,
end: 100
},
{
start: 0,
end: 20
}
],
series: []
},
totalOption: {}
@ -200,4 +208,8 @@ export default {
height: calc(100vh - 375px);
overflow: auto;
}
/deep/ .el-checkbox__label {
font-size: 10px !important;
}
</style>

View File

@ -284,14 +284,7 @@ export default {
grid: {
// right: '35%' //
},
title: {
text: 'Test Details',
left: 'center',
top: 20,
textStyle: {
color: '#99743C'
},
},
title: {},
tooltip: {
show: true,
trigger: 'axis',
@ -316,9 +309,22 @@ export default {
return result;
}
},
legend: {},
legend: {
y: 'top',
},
xAxis: {},
yAxis: [],
dataZoom: [
{
type: 'inside',
start: 0,
end: 100
},
{
start: 0,
end: 20
}
],
series: []
},
seriesData: [],