货位分析、库存平面图

This commit is contained in:
猫猫guowen
2025-05-23 17:55:43 +08:00
parent 7a0f4606dc
commit 9559511e56
6 changed files with 607 additions and 9 deletions

View File

@@ -45,12 +45,13 @@ export default {
chart: null,
// 图表数据(模拟数据,注意删除后echarts图初始化会报一下错)
chartData:[
{
"巷道2": 1,
"巷道1": 0,
"status": "出库分配"
}
]
{
"巷道2": 1,
"巷道1": 0,
"status": "出库分配"
}
],
dimensions:[]
}
}
,
@@ -102,6 +103,12 @@ export default {
,
/** 更新图表数据 */
updateChart() {
this.dimensions=[]
if (this.chartData[0].巷道1!=undefined&&this.chartData[0].巷道1!=null){
this.dimensions=['status', '巷道1', '巷道2']
}else {
this.dimensions=['status', '巷道3', '巷道4']
}
const option = {
title: {
text: '货位状态分析',
@@ -121,7 +128,7 @@ export default {
}
},
dataset: {
dimensions: ['status', '巷道1', '巷道2'],
dimensions: this.dimensions,
source: this.chartData
},
xAxis: {