From 9eb752a510a21d4b444d198f3eb728e26cb24eed Mon Sep 17 00:00:00 2001 From: caill <815519168@qq.com> Date: Wed, 13 Jul 2022 10:49:55 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=A7=E5=B1=8F=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/TaskScreen.vue | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/pages/TaskScreen.vue b/src/pages/TaskScreen.vue index 2d6d42a..25f1919 100644 --- a/src/pages/TaskScreen.vue +++ b/src/pages/TaskScreen.vue @@ -308,7 +308,7 @@ export default { show: false, // 为true滚动条出现 type: 'slider', // type:'inside',滚动条在最下面,鼠标点击滚动 startValue: 0, // 从头开始。 - endValue: 4 // end百分比显示范围,endValue具体显示几个数值 + endValue: 5 // end百分比显示范围,endValue具体显示几个数值 } ], xAxis: { @@ -324,12 +324,13 @@ export default { } }, axisLabel: { + interval: 0, textStyle: { color: '#fff', fontSize: 16 } }, - data: this.array1.map((it) => it.material_code) + data: this.array1.map((it) => it.material_name) }, yAxis: { axisTick: { @@ -435,7 +436,7 @@ export default { autoMove (option) { this.timeOut = setInterval(() => { if (Number(option.dataZoom[0].endValue) === option.series[0].data.length - 1) { - option.dataZoom[0].endValue = 4 + option.dataZoom[0].endValue = 5 option.dataZoom[0].startValue = 0 } else { option.dataZoom[0].endValue = option.dataZoom[0].endValue + 1