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

View File

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