diff --git a/ruoyi-admin/src/main/resources/static/js/echartsCommon.js b/ruoyi-admin/src/main/resources/static/js/echartsCommon.js index 6413be8..7ff58cc 100644 --- a/ruoyi-admin/src/main/resources/static/js/echartsCommon.js +++ b/ruoyi-admin/src/main/resources/static/js/echartsCommon.js @@ -1,5 +1,5 @@ const vw = (document.documentElement.clientWidth || document.body.clientWidth) / 100 - +let time1 =() =>{} // 随机数 const random = (val = 1) => { return Math.ceil(Math.random() * val) @@ -138,8 +138,7 @@ const horizontalRoundedBarChartWithBackground = function (data, id) { $(window).resize(charts.resize); } const horizontalRoundedBarChartWithBackgroundTwo = function (data, id) { - let time =() =>{} - clearInterval(time) + clearInterval(time1) let charts = echarts.init(id); if (!data) { data = { @@ -253,7 +252,7 @@ const horizontalRoundedBarChartWithBackgroundTwo = function (data, id) { }) let step = 1 / (data.yNameOne.length / 9) * 100 - time = setInterval(() => { + time1 = setInterval(() => { option.dataZoom[0].end += step option.dataZoom[0].start += step if (option.dataZoom[0].start >= 100) {