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