style(性能测试): 测试详情图表选中范围样式修改
This commit is contained in:
parent
3329a1c96e
commit
45ff9e133e
|
@ -367,7 +367,7 @@ export default {
|
||||||
legend: {
|
legend: {
|
||||||
y: 'top',
|
y: 'top',
|
||||||
},
|
},
|
||||||
xAxis: {},
|
xAxis: {boundaryGap: false},
|
||||||
yAxis: [],
|
yAxis: [],
|
||||||
dataZoom: [
|
dataZoom: [
|
||||||
{
|
{
|
||||||
|
@ -526,25 +526,23 @@ export default {
|
||||||
item.groupName = this.$t('load_test.report.' + reportKey) + ': ' + item.groupName;
|
item.groupName = this.$t('load_test.report.' + reportKey) + ': ' + item.groupName;
|
||||||
});
|
});
|
||||||
|
|
||||||
let yAxisList = data.map(m => m.yAxis);
|
|
||||||
let yAxisListMax = this._getChartMax(yAxisList);
|
|
||||||
if (this.baseOption.yAxis.length === 0) {
|
if (this.baseOption.yAxis.length === 0) {
|
||||||
this.baseOption.yAxis.push({
|
this.baseOption.yAxis.push({
|
||||||
name: this.$t('load_test.report.' + reportKey),
|
name: this.$t('load_test.report.' + reportKey),
|
||||||
type: 'value',
|
type: 'value',
|
||||||
min: 0,
|
min: 0,
|
||||||
max: yAxisListMax,
|
|
||||||
position: 'left',
|
position: 'left',
|
||||||
|
boundaryGap: [0, '100%']
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
this.baseOption.yAxis.push({
|
this.baseOption.yAxis.push({
|
||||||
name: this.$t('load_test.report.' + reportKey),
|
name: this.$t('load_test.report.' + reportKey),
|
||||||
type: 'value',
|
type: 'value',
|
||||||
min: 0,
|
min: 0,
|
||||||
max: yAxisListMax,
|
|
||||||
position: 'right',
|
position: 'right',
|
||||||
nameRotate: 20,
|
nameRotate: 20,
|
||||||
offset: (this.baseOption.yAxis.length - 1) * 50,
|
offset: (this.baseOption.yAxis.length - 1) * 50,
|
||||||
|
boundaryGap: [0, '100%']
|
||||||
});
|
});
|
||||||
this.baseOption.grid.right = (this.baseOption.yAxis.length - 1) * 5 + '%';
|
this.baseOption.grid.right = (this.baseOption.yAxis.length - 1) * 5 + '%';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue