From 5f380c4c1cdf6b2018a30cd027dcc2f4c6c4294d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E7=BB=A7=E7=BB=AD=E5=90=B9?= <17611323298@163.com> Date: Wed, 17 May 2023 17:38:23 +0800 Subject: [PATCH] =?UTF-8?q?bi=E5=A4=A7=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/page/bi/bi.vue | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/src/page/bi/bi.vue b/src/page/bi/bi.vue index ca493da..e3e8f6f 100644 --- a/src/page/bi/bi.vue +++ b/src/page/bi/bi.vue @@ -1527,7 +1527,7 @@ export default { // 固定截取7个 const index = 7; let total = this.allOverdueProject.length; - + this.timer && clearInterval(this.timer); this.timer = setInterval(() => { if (this.timerIndex < total) { this.timerIndex += index; @@ -1821,6 +1821,7 @@ export default { xAxis: [], legend: [], series: [], + minInterval: 'auto', }; let par1 = { @@ -1858,7 +1859,7 @@ export default { }; this.equipmentMonitoringCenter.forEach((org) => { - par.data.push(org["openActionTime"] || 0); + par1.data.push(org["openActionTime"] || 0); obj2.xAxis.push(org.date); @@ -2307,6 +2308,7 @@ export default { console.log(res); if (res.code == 10000) { this.$message.success(res.message); + this.initPage() } else { this.$message.error(res.message); } @@ -3430,7 +3432,6 @@ export default { lineStyle: { color: "#fff", }, - minInterval: 5, axisLabel: { textStyle: { color: "#fff", //字体颜色 @@ -3467,6 +3468,9 @@ export default { }, ]; } + if (!obj.minInterval) { + option.yAxis[0].minInterval = 5 + } // 使用刚指定的配置项和数据显示图表。 option && myChart.setOption(option); @@ -4896,6 +4900,16 @@ export default { height: 270px; overflow: auto; + &::-webkit-scrollbar { + // 整个滚动条 + width: 0; // 纵向滚动条的宽度 + background: rgba(213, 215, 220, 0.3); + border: none; + } + &::-webkit-scrollbar-track { + // 滚动条轨道 + border: none; + } /deep/ .box-grow { display: flex; flex-direction: column;