From 6a7c3c588e624d33d53fb185817363bb97a60cdd Mon Sep 17 00:00:00 2001 From: suixy <2277317060@qq.com> Date: Mon, 18 May 2026 11:12:53 +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 | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/board/board4/index.vue b/src/views/board/board4/index.vue index d31dee5..5031783 100644 --- a/src/views/board/board4/index.vue +++ b/src/views/board/board4/index.vue @@ -920,7 +920,8 @@ export default { // }) let productionMax = Math.max(...this.deviceProductionList.map(e => e.production)) let num1 = Math.ceil(productionMax / 10) - let productionArr = this.deviceProductionList.map(e => e.production < (productionMax / 10) ? num1 : e.production) + let productionArr = this.deviceProductionList.map(e => e.production) + let productionArr1 = 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), @@ -1018,7 +1019,10 @@ export default { borderWidth: 1 }, tooltip: { - valueFormatter: (e) => e === num1 ? 0 : e + valueFormatter: (e, i) => { + return productionArr[i] + + } // show: false, }, label: {