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: {