修改数据获取

master
夜笙歌 4 years ago
parent ba44508314
commit a5088e42f0

@ -572,22 +572,22 @@
// 预装箱体库存 // 预装箱体库存
autoUpdate('/broad/box/selectStock/S004', INTERVAL, data => { autoUpdate('/broad/fp/selectFpStock', INTERVAL, data => {
console.log() console.log()
repertoryChart.setOption({ repertoryChart.setOption({
xAxis: { xAxis: {
data: data[`xAxisInfo`], data: data.map(val => val.name),
axisLabel: { axisLabel: {
// rotate: -30, // rotate: -30,
}, },
}, },
yAxis: { yAxis: {
max: Math.max(...data[`seriesInfo`]) + 5 // max: Math.max(...data.map(val => val.qty)) + 5
}, },
series: [ series: [
{ {
name: '数量', name: '数量',
data: data[`seriesInfo`], data: data.map(val => val.qty),
}, },
] ]
}) })
@ -916,7 +916,6 @@
} }
const total = () => { const total = () => {
const html = ` const html = `
<!-- ["5%", '10%', "7%", "5%", "5%", "5%", "8%", "4%", "4%", "4%", "4%", "4%", "4%", "4%", "4%", "4%", "4%", "4%", "4%"]-->
<span style="margin: auto 0px;text-align:center;width:5%;font-size: 1vw;">-</span> <span style="margin: auto 0px;text-align:center;width:5%;font-size: 1vw;">-</span>
<span style="margin: auto 0px;text-align:center;width:10%;font-size: 1vw;">-</span> <span style="margin: auto 0px;text-align:center;width:10%;font-size: 1vw;">-</span>
<span style="margin: auto 0px;text-align:center;width:7%;font-size: 1vw;">-</span> <span style="margin: auto 0px;text-align:center;width:7%;font-size: 1vw;">-</span>

Loading…
Cancel
Save