From c698774e4a9735ec847051218f047152e1cedf69 Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Mon, 18 May 2026 11:09:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E7=9C=8B=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/board/board4/index.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/views/board/board4/index.vue b/src/views/board/board4/index.vue index 585e159..d31dee5 100644 --- a/src/views/board/board4/index.vue +++ b/src/views/board/board4/index.vue @@ -919,7 +919,8 @@ export default { // ] // }) let productionMax = Math.max(...this.deviceProductionList.map(e => e.production)) - let productionArr = this.deviceProductionList.map(e => e.production < (productionMax / 10) ? Math.ceil((productionMax / 10) + ((Math.random() > 0.5 ? 1 : -1) * Math.random() * (productionMax / 10) + (productionMax / 10))) : e.production) + let num1 = Math.ceil(productionMax / 10) + let productionArr = this.deviceProductionList.map(e => e.production < (productionMax / 10) ? num1 : e.production) this.$refs.chart2.setData({ xAxis: { data: this.form.isSimulate ? this.form.chart2.map(e => e.value1) : this.deviceProductionList.map(e => e.deviceName), @@ -947,6 +948,7 @@ export default { } }, yAxis: { + splitNumber: 3, axisLine: { show: true, lineStyle: { @@ -1016,6 +1018,7 @@ export default { borderWidth: 1 }, tooltip: { + valueFormatter: (e) => e === num1 ? 0 : e // show: false, }, label: {