修改吸附内胆库存

master
夜笙歌 2 years ago
parent 828748abdf
commit 471ace6a31

@ -238,6 +238,7 @@
top: 73%;
left: 2%;
}
.scrollTable {
/*font-size: 127.8px;*/
}
@ -335,16 +336,19 @@
//库存统计
autoUpdate("/system/AbsorbDeviceMes/getinventory", INTERVAL, data => {
console.log(JSON.stringify(data));
data.forEach((item) => {
xAxisData.push(item.name);
let name = ''
if(item.name.length >= 15){
name = item.name.split(',')[0]
}else{
name = item.name
}
xAxisData.push(name);
seriesData1.push(parseInt(item.value));
sum += parseInt(item.value);
});
console.log("xAxisData:"+xAxisData);
console.log("seriesData1:"+seriesData1);
console.log("sum:"+sum);
})
console.log(xAxisData)
option = {
@ -615,6 +619,8 @@
],
};
option && mycharts.setOption(option);
})
})
</script>
<script>
@ -627,7 +633,6 @@
type: 'POST',
dataType: 'JSON',
success: function (result) {
console.log(result)
let Res = {data: []}
for (let item of result) {
Res.data.push(

Loading…
Cancel
Save