diff --git a/src/components/ServiceConfigurationActionLog.vue b/src/components/ServiceConfigurationActionLog.vue index d449758..6c19919 100644 --- a/src/components/ServiceConfigurationActionLog.vue +++ b/src/components/ServiceConfigurationActionLog.vue @@ -108,7 +108,16 @@ async function handleLogChange() { xAxis: { type: response.xtype, axisLabel: { show: true } }, yAxis: { type: response.ytype, axisLabel: { show: true }, min: response.minY, max: response.maxY }, grid: { left: '3%', right: '4%', bottom: '3%', top: '3%', containLabel: true }, - dataZoom: [{ type: 'inside' }, { type: 'inside', orient: 'vertical' }], + dataZoom: [{ + type: 'slider', // 滑动条缩放 + show: true, + xAxisIndex: [0], // 只作用于x轴 + + }, { + type: 'slider', // 滑动条缩放 + show: true, + yAxisIndex: [0], // 只作用于y轴 + }], tooltip: { trigger: 'axis' }, series: [{ name: response.name,