修改看板

master
suixy 6 days ago
parent f171ed040a
commit c698774e4a

@ -919,7 +919,8 @@ export default {
// ] // ]
// }) // })
let productionMax = Math.max(...this.deviceProductionList.map(e => e.production)) 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({ this.$refs.chart2.setData({
xAxis: { xAxis: {
data: this.form.isSimulate ? this.form.chart2.map(e => e.value1) : this.deviceProductionList.map(e => e.deviceName), data: this.form.isSimulate ? this.form.chart2.map(e => e.value1) : this.deviceProductionList.map(e => e.deviceName),
@ -947,6 +948,7 @@ export default {
} }
}, },
yAxis: { yAxis: {
splitNumber: 3,
axisLine: { axisLine: {
show: true, show: true,
lineStyle: { lineStyle: {
@ -1016,6 +1018,7 @@ export default {
borderWidth: 1 borderWidth: 1
}, },
tooltip: { tooltip: {
valueFormatter: (e) => e === num1 ? 0 : e
// show: false, // show: false,
}, },
label: { label: {

Loading…
Cancel
Save